Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000849/0.000849, allocations: 87.62 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005102/0.005102, allocations: 166.1 kB / 24.7 MB, free: 9.414 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9524/0.9524, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 298.5 MB, free: 3.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.081e-05/1.198e-05, allocations: 2.281 kB / 298.5 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.1375/0.1376, allocations: 6.993 MB / 305.4 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005207/0.1428, allocations: 2.46 MB / 307.9 MB, free: 10.69 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.1439, allocations: 28.47 kB / 307.9 MB, free: 10.68 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001544/0.1455, allocations: 0.5209 MB / 308.5 MB, free: 10.43 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001211/0.1467, allocations: 0.5001 MB / 309 MB, free: 10.06 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005117/0.1472, allocations: 240.4 kB / 309.2 MB, free: 9.91 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00151/0.1487, allocations: 1.496 MB / 310.7 MB, free: 9.07 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005962/0.1493, allocations: 376.2 kB / 311.1 MB, free: 8.859 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001178/0.1505, allocations: 0.8323 MB / 311.9 MB, free: 8.469 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007408/0.1512, allocations: 432.3 kB / 312.3 MB, free: 8.309 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002347/0.1514, allocations: 135.2 kB / 312.4 MB, free: 8.309 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003959/0.1518, allocations: 180.9 kB / 312.6 MB, free: 8.293 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001588/0.152, allocations: 272.7 kB / 312.9 MB, free: 8.09 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005667/0.1526, allocations: 453.6 kB / 313.3 MB, free: 7.883 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002041/0.1546, allocations: 1.699 MB / 315 MB, free: 7.262 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.1546, allocations: 0 / 315 MB, free: 7.262 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1546, allocations: 0 / 315 MB, free: 7.262 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.015e-05/0.1547, allocations: 0 / 315 MB, free: 7.262 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002242/0.1569, allocations: 1.373 MB / 316.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/0.157, allocations: 19.58 kB / 316.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001473/0.1571, allocations: 155.1 kB / 316.6 MB, free: 6.238 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004146/0.1575, allocations: 177.2 kB / 316.7 MB, free: 6.168 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.1586, allocations: 0.6529 MB / 317.4 MB, free: 5.723 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.748e-05/0.1587, allocations: 73.72 kB / 317.5 MB, free: 5.688 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.1588, allocations: 99.73 kB / 317.6 MB, free: 5.652 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.16, allocations: 0.9936 MB / 318.6 MB, free: 5.141 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/0.16, allocations: 5.688 kB / 318.6 MB, free: 5.137 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.391e-05/0.1601, allocations: 41.03 kB / 318.6 MB, free: 5.105 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.621e-05/0.1601, allocations: 23.22 kB / 318.6 MB, free: 5.105 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009359/0.1611, allocations: 0.6245 MB / 319.3 MB, free: 4.875 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003474/0.1645, allocations: 3.485 MB / 322.7 MB, free: 2.148 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004253/0.165, allocations: 266.8 kB / 323 MB, free: 2 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001775/0.1651, allocations: 138 kB / 323.1 MB, free: 1.93 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.1652, allocations: 3.375 kB / 323.1 MB, free: 1.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.1652, allocations: 37.75 kB / 323.2 MB, free: 1.887 MB / 282.7 MB Notification: Performance of pre-optimization done (n=32): time 2.194e-06/0.1652, allocations: 0 / 323.2 MB, free: 1.887 MB / 282.7 MB Notification: Performance of matching and sorting (n=35): time 0.001948/0.1671, allocations: 1.062 MB / 324.2 MB, free: 1.203 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/0.1672, allocations: 80.98 kB / 324.3 MB, free: 1.109 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/0.1682, allocations: 0.841 MB / 325.2 MB, free: 0.625 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.1682, allocations: 32.27 kB / 325.2 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000241/0.1684, allocations: 0.5776 MB / 325.8 MB, free: 72 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.1685, allocations: 135.1 kB / 325.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.1687, allocations: 126.1 kB / 326 MB, free: 15.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1688, allocations: 331.2 kB / 326.3 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/0.169, allocations: 152.5 kB / 326.5 MB, free: 15.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004024/0.1694, allocations: 489.6 kB / 327 MB, free: 14.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007197/0.1701, allocations: 0.6385 MB / 327.6 MB, free: 14.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/0.1702, allocations: 3.156 kB / 327.6 MB, free: 14.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001063/0.1712, allocations: 0.6977 MB / 328.3 MB, free: 14.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.12e-05/0.1712, allocations: 9 kB / 328.3 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/0.1713, allocations: 10.25 kB / 328.3 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001962/0.1715, allocations: 35.53 kB / 328.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003842/0.1718, allocations: 156.1 kB / 328.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.1729, allocations: 1.289 MB / 329.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004753/0.1734, allocations: 34.62 kB / 329.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.241e-05/0.1735, allocations: 35.78 kB / 329.9 MB, free: 12.62 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003857/0.1738, allocations: 257.1 kB / 330.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.642e-05/0.1739, allocations: 87.3 kB / 330.2 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005748/0.1745, allocations: 381 kB / 330.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/0.1745, allocations: 4.844 kB / 330.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.1745, allocations: 3.328 kB / 330.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1745, allocations: 0 / 330.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.176, allocations: 1.146 MB / 331.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.176, allocations: 2.781 kB / 331.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001857/0.1762, allocations: 69.12 kB / 331.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.678e-05/0.1763, allocations: 23.94 kB / 331.8 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.1763, allocations: 11.09 kB / 331.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007665/0.1771, allocations: 1.27 MB / 333.1 MB, free: 9.957 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.1771, allocations: 3.984 kB / 333.1 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007324/0.1778, allocations: 0.6354 MB / 333.7 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/0.178, allocations: 115.3 kB / 333.9 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.155e-05/0.1781, allocations: 21.42 kB / 333.9 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.1783, allocations: 23.92 kB / 333.9 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.108e-05/0.1784, allocations: 30.48 kB / 333.9 MB, free: 9.383 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.1784, allocations: 8.656 kB / 333.9 MB, free: 9.383 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007145/0.1791, allocations: 0.562 MB / 334.5 MB, free: 9.066 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1791, allocations: 0 / 334.5 MB, free: 9.066 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008037/0.1799, allocations: 191.7 kB / 334.7 MB, free: 9.047 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001263/0.1812, allocations: 1.192 MB / 335.9 MB, free: 8.074 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008213/0.182, allocations: 497.6 kB / 336.4 MB, free: 7.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.182, allocations: 3.938 kB / 336.4 MB, free: 7.727 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002578/0.1823, allocations: 262.7 kB / 336.6 MB, free: 7.457 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007412/0.183, allocations: 219.6 kB / 336.8 MB, free: 7.254 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009419/0.1924, allocations: 7.057 MB / 343.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.1928, allocations: 409 kB / 344.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003561/0.1931, allocations: 94.89 kB / 344.4 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003435/0.1935, allocations: 376.3 kB / 344.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of SimCode: time 1.874e-06/0.1935, allocations: 3.938 kB / 344.8 MB, free: 14.83 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04387/0.2373, allocations: 19.63 MB / 364.4 MB, free: 11.13 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.752/7.99, allocations: 3.984 kB / 364.4 MB, free: 11.12 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.436294998973608]