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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 187.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 225.7 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 51.92 kB / 371.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.276, allocations: 52.19 MB / 423.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01304/0.289, allocations: 9.684 MB / 433.1 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007063/0.2961, allocations: 3.112 MB / 436.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001758/0.2978, allocations: 35.81 kB / 436.3 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001947/0.2998, allocations: 0.6251 MB / 436.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0019/0.3017, allocations: 0.5815 MB / 437.5 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007512/0.3024, allocations: 323.4 kB / 437.8 MB, free: 328 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002193/0.3046, allocations: 1.759 MB / 439.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000762/0.3054, allocations: 453.4 kB / 440 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009989/0.3064, allocations: 0.7005 MB / 440.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009741/0.3074, allocations: 0.7428 MB / 441.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000205/0.3076, allocations: 164 kB / 441.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003751/0.3079, allocations: 196 kB / 441.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002905/0.3082, allocations: 334.8 kB / 442.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00081/0.309, allocations: 0.7971 MB / 442.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002469/0.3115, allocations: 1.992 MB / 444.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3115, allocations: 0 / 444.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3115, allocations: 0 / 444.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.174e-05/0.3115, allocations: 4 kB / 444.9 MB, free: 9.148 MB / 350.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.00367/0.3152, allocations: 1.755 MB / 446.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.08e-05/0.3153, allocations: 12.03 kB / 446.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.535e-05/0.3153, allocations: 30.33 kB / 446.7 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002143/0.3155, allocations: 161 kB / 446.9 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006452/0.3162, allocations: 207.9 kB / 447.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001558/0.3177, allocations: 0.768 MB / 447.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/0.3179, allocations: 163.6 kB / 448 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.3181, allocations: 112 kB / 448.1 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002067/0.3202, allocations: 1.15 MB / 449.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.728e-05/0.3202, allocations: 3.953 kB / 449.3 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.89e-05/0.3203, allocations: 48 kB / 449.3 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/0.3203, allocations: 24 kB / 449.3 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/0.322, allocations: 0.7651 MB / 450.1 MB, free: 3.754 MB / 350.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.006599/0.3286, allocations: 3.817 MB / 453.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/0.3301, allocations: 0.5469 MB / 454.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005143/0.3307, allocations: 244.1 kB / 454.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.424e-05/0.3307, allocations: 12.48 kB / 454.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006873/0.3314, allocations: 290.2 kB / 455 MB, free: 14.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.605e-06/0.3314, allocations: 0 / 455 MB, free: 14.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004888/0.3363, allocations: 1.876 MB / 456.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003367/0.3366, allocations: 479.2 kB / 457.3 MB, free: 12.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001623/0.3382, allocations: 1.109 MB / 458.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.719e-05/0.3383, allocations: 41.64 kB / 458.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000643/0.339, allocations: 0.6638 MB / 459.1 MB, free: 10.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002386/0.3392, allocations: 234 kB / 459.4 MB, free: 10.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003057/0.3395, allocations: 202.8 kB / 459.6 MB, free: 9.879 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.3397, allocations: 349.9 kB / 459.9 MB, free: 9.531 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005541/0.3403, allocations: 246.5 kB / 460.2 MB, free: 9.289 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.3413, allocations: 0.7056 MB / 460.9 MB, free: 8.379 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/0.3428, allocations: 0.945 MB / 461.8 MB, free: 7.258 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.3428, allocations: 4 kB / 461.8 MB, free: 7.254 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002325/0.3452, allocations: 1.138 MB / 462.9 MB, free: 6.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.421e-05/0.3452, allocations: 71.39 kB / 463 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/0.3453, allocations: 12 kB / 463 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006297/0.3459, allocations: 169 kB / 463.2 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006831/0.3466, allocations: 203.6 kB / 463.4 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004867/0.3514, allocations: 3.684 MB / 467.1 MB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.3526, allocations: 59.92 kB / 467.1 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.887e-05/0.3527, allocations: 51.94 kB / 467.2 MB, free: 1.609 MB / 366.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.0005946/0.3533, allocations: 293.7 kB / 467.5 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.3535, allocations: 127.3 kB / 467.6 MB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001535/0.355, allocations: 0.706 MB / 468.3 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.355, allocations: 16 kB / 468.3 MB, free: 464 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.355, allocations: 0 / 468.3 MB, free: 464 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001474/0.3565, allocations: 0.9473 MB / 469.3 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/0.3594, allocations: 1.764 MB / 471 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.3594, allocations: 0 / 471 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004687/0.3599, allocations: 103.9 kB / 471.1 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004407/0.3603, allocations: 129.8 kB / 471.3 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.831e-05/0.3604, allocations: 12 kB / 471.3 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003531/0.3639, allocations: 3.388 MB / 474.7 MB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3639, allocations: 0 / 474.7 MB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/0.3658, allocations: 1.053 MB / 475.7 MB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004348/0.3662, allocations: 183.2 kB / 475.9 MB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.3663, allocations: 16 kB / 475.9 MB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005996/0.3669, allocations: 48.09 kB / 475.9 MB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.3671, allocations: 64.27 kB / 476 MB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.3671, allocations: 16 kB / 476 MB, free: 8.281 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00112/0.3682, allocations: 0.7484 MB / 476.8 MB, free: 7.527 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3682, allocations: 3.938 kB / 476.8 MB, free: 7.523 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001119/0.3694, allocations: 304 kB / 477.1 MB, free: 7.227 MB / 382.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.002386/0.3717, allocations: 1.64 MB / 478.7 MB, free: 5.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002253/0.374, allocations: 1.057 MB / 479.8 MB, free: 4.426 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.374, allocations: 256 / 479.8 MB, free: 4.426 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009752/0.375, allocations: 0.5466 MB / 480.3 MB, free: 3.855 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/0.3765, allocations: 332.4 kB / 480.6 MB, free: 3.531 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01626/0.3928, allocations: 9.766 MB / 490.4 MB, free: 9.211 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008611/0.3936, allocations: 1.089 MB / 491.5 MB, free: 8.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007035/0.3943, allocations: 149.8 kB / 491.6 MB, free: 7.941 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006429/0.395, allocations: 471.3 kB / 492.1 MB, free: 7.48 MB / 398.1 MB Notification: Performance of SimCode: time 1.463e-06/0.395, allocations: 0 / 492.1 MB, free: 7.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07887/0.4739, allocations: 30.02 MB / 0.5099 GB, free: 9.859 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.01/15.49, allocations: 12.03 kB / 0.5099 GB, free: 9.848 MB / 430.1 MB " [Timeout remaining time 644] (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 --stepSize=0.0001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 642] Reference file matches [Calling sys.exit(0), Time elapsed: 54.62771769595565]