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.001887/0.001887, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.002116/0.002116, allocations: 185.1 kB / 24.49 MB, free: 3.961 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.38/1.38, allocations: 225.7 MB / 253.3 MB, free: 12.86 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.0015/0.0015, allocations: 43.92 kB / 371.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.242, allocations: 52.18 MB / 423.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01073/0.2528, allocations: 8.439 MB / 431.8 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005318/0.2581, allocations: 2.905 MB / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009313/0.259, allocations: 35.81 kB / 434.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001579/0.2606, allocations: 0.5589 MB / 435.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00148/0.2621, allocations: 0.5893 MB / 435.9 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006462/0.2627, allocations: 319.5 kB / 436.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001987/0.2647, allocations: 1.761 MB / 438 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000705/0.2654, allocations: 449.4 kB / 438.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000822/0.2662, allocations: 0.7005 MB / 439.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009442/0.2672, allocations: 0.7428 MB / 439.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002081/0.2674, allocations: 156 kB / 440 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003776/0.2678, allocations: 204 kB / 440.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000313/0.2681, allocations: 330.8 kB / 440.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006852/0.2687, allocations: 0.6612 MB / 441.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002193/0.2709, allocations: 2.004 MB / 443.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2709, allocations: 4 kB / 443.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2709, allocations: 0 / 443.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.256e-05/0.271, allocations: 0 / 443.2 MB, free: 10.46 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.003205/0.2742, allocations: 1.759 MB / 445 MB, free: 8.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.2742, allocations: 8.031 kB / 445 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.902e-05/0.2743, allocations: 38.25 kB / 445 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001924/0.2745, allocations: 164.9 kB / 445.2 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000587/0.275, allocations: 207.9 kB / 445.4 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.2765, allocations: 0.7641 MB / 446.1 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001883/0.2766, allocations: 171.5 kB / 446.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001692/0.2768, allocations: 112 kB / 446.4 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002261/0.2791, allocations: 1.569 MB / 448 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.625e-05/0.2791, allocations: 11.89 kB / 448 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.2792, allocations: 48 kB / 448 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.679e-05/0.2792, allocations: 28 kB / 448.1 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.2808, allocations: 0.7574 MB / 448.8 MB, free: 4.523 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.005779/0.2866, allocations: 3.368 MB / 452.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.2881, allocations: 0.5477 MB / 452.7 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004948/0.2886, allocations: 236.1 kB / 453 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.722e-05/0.2886, allocations: 8.5 kB / 453 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006859/0.2893, allocations: 324 kB / 453.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 3.016e-06/0.2893, allocations: 4 kB / 453.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004732/0.294, allocations: 1.857 MB / 455.2 MB, free: 13.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002777/0.2943, allocations: 479.3 kB / 455.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001565/0.2959, allocations: 1.109 MB / 456.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.281e-05/0.296, allocations: 41.7 kB / 456.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005771/0.2965, allocations: 0.656 MB / 457.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.2967, allocations: 242 kB / 457.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003002/0.297, allocations: 206.8 kB / 457.9 MB, free: 11.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.2972, allocations: 345.9 kB / 458.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005757/0.2978, allocations: 305.8 kB / 458.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001222/0.299, allocations: 1.169 MB / 459.7 MB, free: 8.969 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.3004, allocations: 0.9334 MB / 460.6 MB, free: 7.859 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.3004, allocations: 4 kB / 460.6 MB, free: 7.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002242/0.3027, allocations: 1.212 MB / 461.8 MB, free: 6.605 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.686e-05/0.3028, allocations: 65.91 kB / 461.9 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.3028, allocations: 12 kB / 461.9 MB, free: 6.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006175/0.3034, allocations: 169.8 kB / 462.1 MB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006714/0.3041, allocations: 199.7 kB / 462.3 MB, free: 6.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004634/0.3087, allocations: 3.655 MB / 465.9 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000975/0.3097, allocations: 59.92 kB / 466 MB, free: 2.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-05/0.3097, allocations: 44 kB / 466 MB, free: 2.176 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.0004894/0.3102, allocations: 293.6 kB / 466.3 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001767/0.3104, allocations: 143.1 kB / 466.4 MB, free: 1.738 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0015/0.3119, allocations: 0.7023 MB / 467.1 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.3119, allocations: 8 kB / 467.2 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3119, allocations: 4 kB / 467.2 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00145/0.3134, allocations: 0.9512 MB / 468.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002851/0.3162, allocations: 1.616 MB / 469.7 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3162, allocations: 0 / 469.7 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004829/0.3167, allocations: 107.9 kB / 469.8 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004408/0.3172, allocations: 129.8 kB / 470 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.892e-05/0.3172, allocations: 12 kB / 470 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003578/0.3208, allocations: 3.349 MB / 473.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/0.3208, allocations: 7.969 kB / 473.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.3227, allocations: 1.054 MB / 474.4 MB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004241/0.3231, allocations: 183.1 kB / 474.6 MB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.3233, allocations: 20 kB / 474.6 MB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000602/0.3239, allocations: 32.09 kB / 474.6 MB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.324, allocations: 68.27 kB / 474.7 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.813e-05/0.324, allocations: 20 kB / 474.7 MB, free: 9.012 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001045/0.3251, allocations: 0.7484 MB / 475.4 MB, free: 8.258 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3251, allocations: 4 kB / 475.4 MB, free: 8.254 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001008/0.3261, allocations: 308 kB / 475.7 MB, free: 7.953 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.002293/0.3284, allocations: 1.631 MB / 477.4 MB, free: 6.266 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002106/0.3305, allocations: 1.119 MB / 478.5 MB, free: 5.082 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3305, allocations: 4 kB / 478.5 MB, free: 5.078 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009575/0.3314, allocations: 0.5349 MB / 479 MB, free: 4.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001353/0.3328, allocations: 328.8 kB / 479.4 MB, free: 4.199 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01496/0.3478, allocations: 9.983 MB / 489.3 MB, free: 9.621 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005764/0.3483, allocations: 0.4935 MB / 489.8 MB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005819/0.3489, allocations: 149.8 kB / 490 MB, free: 8.941 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006062/0.3495, allocations: 475.3 kB / 490.4 MB, free: 8.477 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3495, allocations: 4 kB / 490.4 MB, free: 8.473 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07463/0.4242, allocations: 31.37 MB / 0.5096 GB, free: 9.633 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.97/15.4, allocations: 8 kB / 0.5096 GB, free: 9.625 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 643] Reference file matches [Calling sys.exit(0), Time elapsed: 54.31359791604336]