Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001083/0.001088, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001121/0.001121, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2114/0.2114, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001422, allocations: 75.88 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.144, allocations: 62.43 MB / 481.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003752/0.1478, allocations: 1.93 MB / 483.4 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.1488, allocations: 0.5649 MB / 483.9 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.243e-05/0.1489, allocations: 4 kB / 483.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.1491, allocations: 19.78 kB / 484 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.206e-05/0.1492, allocations: 39.64 kB / 484 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.1494, allocations: 43.89 kB / 484 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001983/0.1497, allocations: 151.3 kB / 484.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.1498, allocations: 61.64 kB / 484.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.1501, allocations: 71.7 kB / 484.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.1502, allocations: 59.7 kB / 484.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.1502, allocations: 12 kB / 484.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.618e-05/0.1503, allocations: 24 kB / 484.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.681e-05/0.1503, allocations: 23.92 kB / 484.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.197e-05/0.1504, allocations: 71.66 kB / 484.5 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002688/0.1507, allocations: 155.4 kB / 484.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1507, allocations: 3.938 kB / 484.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1507, allocations: 0 / 484.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1507, allocations: 0 / 484.7 MB, free: 1.305 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007072/0.1514, allocations: 439 kB / 485.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.1515, allocations: 12.03 kB / 485.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001686/0.1516, allocations: 28.73 kB / 485.1 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.1519, allocations: 211.2 kB / 485.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.152, allocations: 8.375 kB / 485.3 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.523e-05/0.152, allocations: 16.38 kB / 485.4 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002726/0.1523, allocations: 133.7 kB / 485.5 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.1523, allocations: 0 / 485.5 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.1523, allocations: 4 kB / 485.5 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.1523, allocations: 8 kB / 485.5 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001832/0.1525, allocations: 79.95 kB / 485.6 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007169/0.1532, allocations: 468.1 kB / 486 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/0.1535, allocations: 118.5 kB / 486.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.1536, allocations: 56.84 kB / 486.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.1536, allocations: 4 kB / 486.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001103/0.1537, allocations: 38.48 kB / 486.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.182e-06/0.1537, allocations: 0 / 486.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001598/0.1553, allocations: 0.8115 MB / 487.1 MB, free: 14.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.1554, allocations: 51.41 kB / 487.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001353/0.1555, allocations: 137.8 kB / 487.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.1556, allocations: 29.7 kB / 487.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.782e-05/0.1557, allocations: 116.3 kB / 487.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.174e-05/0.1557, allocations: 67 kB / 487.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.498e-05/0.1558, allocations: 37.72 kB / 487.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.156, allocations: 326.8 kB / 487.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.49e-05/0.1561, allocations: 39.98 kB / 487.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.1562, allocations: 86.84 kB / 487.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.1564, allocations: 139.3 kB / 488.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1564, allocations: 0 / 488.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003629/0.1568, allocations: 202.2 kB / 488.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.1568, allocations: 7.938 kB / 488.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.108e-06/0.1568, allocations: 0 / 488.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001804/0.157, allocations: 52.83 kB / 488.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.1572, allocations: 36.02 kB / 488.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001878/0.1591, allocations: 1.729 MB / 490.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.682e-05/0.1592, allocations: 8.031 kB / 490.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.1592, allocations: 8 kB / 490.1 MB, free: 11.39 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001256/0.1593, allocations: 125.8 kB / 490.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.589e-05/0.1594, allocations: 15.84 kB / 490.2 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.976e-05/0.1594, allocations: 21.17 kB / 490.3 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.1594, allocations: 15.94 kB / 490.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.1595, allocations: 0 / 490.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1595, allocations: 0 / 490.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007706/0.1602, allocations: 0.5492 MB / 490.8 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1603, allocations: 192 / 490.8 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001581/0.1604, allocations: 36.02 kB / 490.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001055/0.1605, allocations: 44.77 kB / 490.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.1606, allocations: 48 / 490.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.1619, allocations: 1.478 MB / 492.4 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.1619, allocations: 3.938 kB / 492.4 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004723/0.1624, allocations: 347.2 kB / 492.7 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.801e-05/0.1624, allocations: 88.95 kB / 492.8 MB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.941e-05/0.1625, allocations: 4 kB / 492.8 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.143e-05/0.1626, allocations: 4 kB / 492.8 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.81e-05/0.1626, allocations: 23.86 kB / 492.8 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.1626, allocations: 7.984 kB / 492.9 MB, free: 8.387 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.707e-05/0.1627, allocations: 105.7 kB / 493 MB, free: 8.285 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1627, allocations: 0 / 493 MB, free: 8.285 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003199/0.1631, allocations: 44 kB / 493 MB, free: 8.242 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001149/0.1632, allocations: 103.2 kB / 493.1 MB, free: 8.133 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004856/0.1637, allocations: 254.6 kB / 493.4 MB, free: 7.871 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1637, allocations: 0 / 493.4 MB, free: 7.871 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002458/0.1639, allocations: 202.6 kB / 493.5 MB, free: 7.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.1643, allocations: 23.73 kB / 493.6 MB, free: 7.641 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008471/0.1651, allocations: 437.5 kB / 494 MB, free: 7.184 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.1655, allocations: 0.7243 MB / 494.7 MB, free: 6.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.607e-05/0.1656, allocations: 13.42 kB / 494.7 MB, free: 6.418 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.276e-05/0.1657, allocations: 11.44 kB / 494.7 MB, free: 6.406 MB / 366.1 MB Notification: Performance of SimCode: time 1.943e-06/0.1657, allocations: 0 / 494.7 MB, free: 6.406 MB / 366.1 MB Notification: Performance of Templates: time 0.004435/0.1701, allocations: 1.598 MB / 496.3 MB, free: 4.809 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches