Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.001319, allocations: 95.73 kB / 16.31 MB, free: 6.461 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.001362/0.001362, allocations: 174.1 kB / 17.19 MB, free: 6.348 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.426/1.426, allocations: 223.2 MB / 241.1 MB, free: 5.367 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000246/0.000246, allocations: 6.094 kB / 300.7 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09308/0.09334, allocations: 50.42 MB / 351.1 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01535/0.1087, allocations: 14.97 MB / 366.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009998/0.1188, allocations: 5.536 MB / 371.6 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002651/0.1215, allocations: 63.81 kB / 371.7 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00375/0.1252, allocations: 1.073 MB / 372.8 MB, free: 5.988 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004196/0.1295, allocations: 1.254 MB / 374 MB, free: 4.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001565/0.131, allocations: 423.4 kB / 374.4 MB, free: 4.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005012/0.1361, allocations: 2.789 MB / 377.2 MB, free: 1.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001951/0.138, allocations: 1.167 MB / 378.4 MB, free: 316 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001676/0.1397, allocations: 1.136 MB / 379.5 MB, free: 15.17 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001976/0.1417, allocations: 1.279 MB / 380.8 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005887/0.1423, allocations: 168 kB / 381 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009323/0.1433, allocations: 211.9 kB / 381.2 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005474/0.1438, allocations: 489.9 kB / 381.7 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008688/0.1447, allocations: 0.6406 MB / 382.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003438/0.1481, allocations: 3.564 MB / 385.9 MB, free: 8.809 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.1482, allocations: 0 / 385.9 MB, free: 8.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1482, allocations: 0 / 385.9 MB, free: 8.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001771/0.1484, allocations: 0 / 385.9 MB, free: 8.809 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.005921/0.1543, allocations: 2.829 MB / 388.7 MB, free: 5.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.1543, allocations: 11.97 kB / 388.7 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002033/0.1564, allocations: 487.7 kB / 389.2 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00336/0.1597, allocations: 1.678 MB / 390.9 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001343/0.1599, allocations: 197.2 kB / 391.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003169/0.1602, allocations: 263.9 kB / 391.3 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004142/0.1644, allocations: 2.435 MB / 393.7 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.195e-05/0.1645, allocations: 11.91 kB / 393.8 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001898/0.1647, allocations: 108 kB / 393.9 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.633e-05/0.1647, allocations: 64 kB / 393.9 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002961/0.1677, allocations: 1.642 MB / 395.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0147/0.1824, allocations: 10.63 MB / 406.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.1839, allocations: 1.054 MB / 407.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.249e-05/0.184, allocations: 16.64 kB / 407.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.884e-05/0.184, allocations: 47.22 kB / 407.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of pre-optimization done (n=81): time 3.506e-06/0.184, allocations: 0 / 407.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.005525/0.1896, allocations: 2.947 MB / 410.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.909e-05/0.1897, allocations: 167.2 kB / 410.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002749/0.1924, allocations: 2.135 MB / 412.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.592e-05/0.1925, allocations: 45.7 kB / 412.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000999/0.1935, allocations: 1.466 MB / 414.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.1938, allocations: 335.4 kB / 414.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.323e-05/0.1938, allocations: 36 kB / 414.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.194, allocations: 369.9 kB / 414.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006456/0.1946, allocations: 367.8 kB / 415.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001191/0.1958, allocations: 1.223 MB / 416.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008729/0.1967, allocations: 0.5806 MB / 417 MB, free: 8.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/0.1967, allocations: 12 kB / 417 MB, free: 8.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.00269/0.1994, allocations: 1.827 MB / 418.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.1527/0.3521, allocations: 12.29 MB / 431.1 MB, free: 53.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-05/0.3522, allocations: 29.97 kB / 431.1 MB, free: 53.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005958/0.3528, allocations: 167.9 kB / 431.3 MB, free: 53.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/0.3541, allocations: 412.9 kB / 431.7 MB, free: 53.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002574/0.3566, allocations: 5.379 MB / 437.1 MB, free: 48.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/0.3581, allocations: 98.28 kB / 437.2 MB, free: 48.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.517e-05/0.3583, allocations: 93.72 kB / 437.3 MB, free: 48.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.194e-06/0.3583, allocations: 8.844 kB / 437.3 MB, free: 48.21 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002108/0.3604, allocations: 1.572 MB / 438.8 MB, free: 47.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.033e-05/0.3604, allocations: 35.61 kB / 438.9 MB, free: 47.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003572/0.3608, allocations: 159.3 kB / 439 MB, free: 47.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.3619, allocations: 415.5 kB / 439.4 MB, free: 47.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002749/0.3647, allocations: 5.378 MB / 444.8 MB, free: 42.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/0.3661, allocations: 83.86 kB / 444.9 MB, free: 42.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.3662, allocations: 95.03 kB / 445 MB, free: 42.88 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 219 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009396/0.3672, allocations: 0.5848 MB / 445.6 MB, free: 42.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002589/0.3675, allocations: 237.1 kB / 445.8 MB, free: 42.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/0.369, allocations: 0.9231 MB / 446.7 MB, free: 42.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.369, allocations: 8.75 kB / 446.7 MB, free: 42.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.369, allocations: 1.969 kB / 446.7 MB, free: 42.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.3691, allocations: 4.828 kB / 446.7 MB, free: 42.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004354/0.3734, allocations: 3.095 MB / 449.8 MB, free: 41.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.3734, allocations: 5.594 kB / 449.8 MB, free: 41.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006589/0.3741, allocations: 165.8 kB / 450 MB, free: 41.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004356/0.3746, allocations: 128.4 kB / 450.1 MB, free: 41.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.931e-05/0.3746, allocations: 27.86 kB / 450.2 MB, free: 41.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003128/0.3778, allocations: 5.336 MB / 455.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/0.3778, allocations: 15.12 kB / 455.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002585/0.3804, allocations: 1.963 MB / 457.5 MB, free: 35.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006935/0.3811, allocations: 379.4 kB / 457.8 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002345/0.3813, allocations: 25.89 kB / 457.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008407/0.3822, allocations: 65.53 kB / 457.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.3823, allocations: 75.06 kB / 458 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.592e-05/0.3824, allocations: 27.97 kB / 458 MB, free: 35.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001927/0.3843, allocations: 1.411 MB / 459.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3843, allocations: 3.938 kB / 459.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00283/0.3872, allocations: 0.9314 MB / 460.4 MB, free: 35.12 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002366/0.3874, allocations: 155.7 kB / 460.5 MB, free: 35.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00342/0.3908, allocations: 2.694 MB / 463.2 MB, free: 33.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.3909, allocations: 0 / 463.2 MB, free: 33.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008018/0.3917, allocations: 0.8212 MB / 464 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.3937, allocations: 0.5554 MB / 464.6 MB, free: 32.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005229/0.3989, allocations: 5.081 MB / 469.7 MB, free: 29.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008189/0.3998, allocations: 1.619 MB / 471.3 MB, free: 28.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001186/0.401, allocations: 333.3 kB / 471.6 MB, free: 28.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002376/0.4012, allocations: 135.4 kB / 471.8 MB, free: 28.39 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4012, allocations: 0 / 471.8 MB, free: 28.39 MB / 350.1 MB Notification: Performance of Templates: time 0.03634/0.4376, allocations: 25.43 MB / 497.2 MB, free: 3.223 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches