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.001424/0.001424, allocations: 98.33 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001906/0.001906, allocations: 200.6 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2167/0.2167, allocations: 45.92 MB / 344 MB, free: 12.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003039/0.0003039, allocations: 12 kB / 417.9 MB, free: 20.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.157, allocations: 63.46 MB / 481.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002339/0.1594, allocations: 1.544 MB / 482.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008344/0.1603, allocations: 0.4992 MB / 483.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.824e-05/0.1604, allocations: 7.938 kB / 483.4 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.965e-05/0.1604, allocations: 11.92 kB / 483.4 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001032/0.1605, allocations: 43.84 kB / 483.5 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001535/0.1607, allocations: 31.91 kB / 483.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.1609, allocations: 99.8 kB / 483.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.161, allocations: 41.78 kB / 483.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.1611, allocations: 63.77 kB / 483.7 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.064e-05/0.1612, allocations: 47.78 kB / 483.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.795e-05/0.1613, allocations: 8 kB / 483.8 MB, free: 3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.546e-05/0.1613, allocations: 8 kB / 483.8 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.111e-05/0.1613, allocations: 19.92 kB / 483.8 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.556e-05/0.1614, allocations: 49.64 kB / 483.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.1615, allocations: 111.9 kB / 484 MB, free: 2.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.1615, allocations: 0 / 484 MB, free: 2.809 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1615, allocations: 0 / 484 MB, free: 2.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.1615, allocations: 0 / 484 MB, free: 2.809 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.0006737/0.1622, allocations: 422.8 kB / 484.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.1623, allocations: 12.03 kB / 484.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.1624, allocations: 23.8 kB / 484.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.1627, allocations: 194.9 kB / 484.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.834e-05/0.1627, allocations: 12 kB / 484.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.986e-05/0.1628, allocations: 19.88 kB / 484.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002541/0.163, allocations: 130.1 kB / 484.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.1631, allocations: 11.84 kB / 484.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.1631, allocations: 8 kB / 484.8 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.1631, allocations: 4 kB / 484.8 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.1633, allocations: 79.94 kB / 484.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006597/0.1639, allocations: 480.1 kB / 485.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000207/0.1642, allocations: 126.5 kB / 485.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.1642, allocations: 0 / 485.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.1642, allocations: 34.56 kB / 485.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.042e-06/0.1642, allocations: 0 / 485.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001532/0.1658, allocations: 0.8161 MB / 486.3 MB, free: 220 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.1658, allocations: 55.41 kB / 486.4 MB, free: 152 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.1659, allocations: 136.6 kB / 486.5 MB, free: 8 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.166, allocations: 33.7 kB / 486.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.833e-05/0.1661, allocations: 116.3 kB / 486.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.939e-05/0.1661, allocations: 67 kB / 486.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-06/0.1661, allocations: 4 kB / 486.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1663, allocations: 326.8 kB / 487 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.44e-05/0.1664, allocations: 44.34 kB / 487.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.1665, allocations: 79.16 kB / 487.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.1666, allocations: 59.94 kB / 487.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-06/0.1666, allocations: 0 / 487.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003588/0.167, allocations: 214.2 kB / 487.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.167, allocations: 8.031 kB / 487.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.167, allocations: 0 / 487.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001542/0.1672, allocations: 44.83 kB / 487.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.1674, allocations: 31.98 kB / 487.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001445/0.1688, allocations: 1.569 MB / 489.1 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.76e-05/0.1689, allocations: 4.438 kB / 489.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.1689, allocations: 8 kB / 489.1 MB, free: 13.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001136/0.1691, allocations: 133.8 kB / 489.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.773e-05/0.1691, allocations: 19.8 kB / 489.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.607e-05/0.1692, allocations: 21.19 kB / 489.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1692, allocations: 0 / 489.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.1692, allocations: 8 kB / 489.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.1692, allocations: 0 / 489.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007937/0.17, allocations: 0.5468 MB / 489.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.17, allocations: 3.938 kB / 489.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.1702, allocations: 35.97 kB / 489.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001124/0.1703, allocations: 36.78 kB / 489.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.1703, allocations: 8.031 kB / 489.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00102/0.1713, allocations: 1.386 MB / 491.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1713, allocations: 4.062 kB / 491.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004958/0.1718, allocations: 361.1 kB / 491.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.124e-05/0.1719, allocations: 93.02 kB / 491.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.1719, allocations: 0 / 491.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.382e-05/0.172, allocations: 12.22 kB / 491.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.539e-05/0.1721, allocations: 15.97 kB / 491.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.1721, allocations: 8 kB / 491.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.221e-05/0.1722, allocations: 105.5 kB / 491.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1722, allocations: 0 / 491.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.1725, allocations: 40 kB / 491.9 MB, free: 10.18 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000142/0.1727, allocations: 103.2 kB / 492 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004701/0.1732, allocations: 266.4 kB / 492.3 MB, free: 9.793 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1732, allocations: 3.938 kB / 492.3 MB, free: 9.789 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002492/0.1734, allocations: 194.7 kB / 492.4 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.1737, allocations: 15.98 kB / 492.5 MB, free: 9.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007947/0.1745, allocations: 0.5059 MB / 493 MB, free: 9.035 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.1748, allocations: 0.7285 MB / 493.7 MB, free: 8.277 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.875e-05/0.1749, allocations: 13.42 kB / 493.7 MB, free: 8.266 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.4e-05/0.1749, allocations: 19.38 kB / 493.7 MB, free: 8.246 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1749, allocations: 0 / 493.7 MB, free: 8.246 MB / 366.1 MB Notification: Performance of Templates: time 0.00433/0.1793, allocations: 1.445 MB / 495.2 MB, free: 6.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches