Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 105.5 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 190.6 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.163/1.163, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009659/0.0009659, allocations: 42.66 kB / 300.1 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08308/0.08406, allocations: 49.45 MB / 349.5 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009763/0.09386, allocations: 9.526 MB / 359 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004867/0.09875, allocations: 3.108 MB / 362.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.09983, allocations: 27.94 kB / 362.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.1014, allocations: 0.5128 MB / 362.7 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001385/0.1028, allocations: 0.4887 MB / 363.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006509/0.1035, allocations: 275.7 kB / 363.4 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001666/0.1052, allocations: 1.668 MB / 365.1 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006991/0.1059, allocations: 0.5532 MB / 365.7 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007068/0.1066, allocations: 0.6108 MB / 366.3 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006528/0.1072, allocations: 0.7154 MB / 367 MB, free: 3.176 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001605/0.1074, allocations: 104 kB / 367.1 MB, free: 3.074 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003298/0.1078, allocations: 152 kB / 367.2 MB, free: 2.926 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002117/0.108, allocations: 282.8 kB / 367.5 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006153/0.1086, allocations: 0.7502 MB / 368.3 MB, free: 1.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1418/0.2504, allocations: 1.91 MB / 370.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.2504, allocations: 0 / 370.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2504, allocations: 0.7812 kB / 370.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.64e-05/0.2505, allocations: 0 / 370.2 MB, free: 13.57 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003018/0.2535, allocations: 1.8 MB / 372 MB, free: 12.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.2536, allocations: 10.69 kB / 372 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001664/0.2537, allocations: 165.6 kB / 372.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005326/0.2543, allocations: 199 kB / 372.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.2553, allocations: 0.818 MB / 373.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.2555, allocations: 115.1 kB / 373.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.2556, allocations: 113.5 kB / 373.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001752/0.2573, allocations: 1.144 MB / 374.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.081e-05/0.2574, allocations: 2.75 kB / 374.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-05/0.2575, allocations: 46.39 kB / 374.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.2575, allocations: 26.12 kB / 374.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.259, allocations: 0.7613 MB / 375.4 MB, free: 11.88 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004853/0.2638, allocations: 3.937 MB / 379.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.2653, allocations: 0.5887 MB / 379.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000467/0.2658, allocations: 266.1 kB / 380.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.441e-05/0.2658, allocations: 11.3 kB / 380.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006148/0.2664, allocations: 296.2 kB / 380.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.154e-06/0.2665, allocations: 0 / 380.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003966/0.2704, allocations: 2.078 MB / 382.5 MB, free: 9.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.664e-05/0.2705, allocations: 482.2 kB / 383 MB, free: 8.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.2718, allocations: 1.103 MB / 384.1 MB, free: 8.211 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.081e-05/0.2719, allocations: 38.52 kB / 384.1 MB, free: 8.172 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003429/0.2722, allocations: 0.6444 MB / 384.8 MB, free: 7.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.2724, allocations: 235.1 kB / 385 MB, free: 7.484 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002328/0.2726, allocations: 203.5 kB / 385.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.146e-05/0.2727, allocations: 342.8 kB / 385.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004827/0.2732, allocations: 246.5 kB / 385.8 MB, free: 6.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006585/0.2738, allocations: 0.7071 MB / 386.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.2749, allocations: 0.9424 MB / 387.4 MB, free: 5.566 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.2749, allocations: 4.062 kB / 387.4 MB, free: 5.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00182/0.2768, allocations: 1.143 MB / 388.6 MB, free: 5.105 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.157e-05/0.2768, allocations: 70.41 kB / 388.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/0.2768, allocations: 12.53 kB / 388.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005289/0.2774, allocations: 170.8 kB / 388.8 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006214/0.278, allocations: 201.2 kB / 389 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003059/0.2811, allocations: 3.553 MB / 392.6 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007988/0.2819, allocations: 69.39 kB / 392.7 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.14e-05/0.282, allocations: 45.56 kB / 392.7 MB, free: 1.875 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003331/0.2823, allocations: 304.2 kB / 393 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.2824, allocations: 127.9 kB / 393.1 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001228/0.2837, allocations: 0.704 MB / 393.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2837, allocations: 9.188 kB / 393.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.2837, allocations: 0 / 393.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001088/0.2848, allocations: 0.9608 MB / 394.8 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.2872, allocations: 1.785 MB / 396.6 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.2872, allocations: 2.75 kB / 396.6 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004501/0.2877, allocations: 108.6 kB / 396.7 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003921/0.2881, allocations: 131 kB / 396.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.707e-05/0.2881, allocations: 14.19 kB / 396.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002962/0.2911, allocations: 3.28 MB / 400.1 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.2911, allocations: 5.594 kB / 400.1 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001647/0.2928, allocations: 1.055 MB / 401.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003182/0.2931, allocations: 253.7 kB / 401.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001453/0.2933, allocations: 13.41 kB / 401.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000614/0.2939, allocations: 49.73 kB / 401.5 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.294, allocations: 57.89 kB / 401.5 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.341e-05/0.294, allocations: 18.75 kB / 401.6 MB, free: 11.59 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008585/0.2949, allocations: 0.7469 MB / 402.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.72e-07/0.2949, allocations: 0 / 402.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000895/0.2958, allocations: 316.3 kB / 402.6 MB, free: 11.13 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001993/0.2978, allocations: 1.616 MB / 404.2 MB, free: 9.676 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001745/0.2996, allocations: 1.092 MB / 405.3 MB, free: 8.574 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2996, allocations: 0 / 405.3 MB, free: 8.574 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008409/0.3004, allocations: 0.5449 MB / 405.9 MB, free: 8.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.3018, allocations: 317.3 kB / 406.2 MB, free: 7.715 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/0.3158, allocations: 11.19 MB / 417.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005617/0.3164, allocations: 1.082 MB / 418.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005183/0.3169, allocations: 149.8 kB / 418.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000496/0.3174, allocations: 471.3 kB / 419.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3175, allocations: 0 / 419.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9481/1.266, allocations: 27.5 MB / 446.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002449/1.266, allocations: 254.8 kB / 446.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.554/3.819, allocations: 0 / 446.8 MB, free: 14.83 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches