Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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.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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008549/0.0008548, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001094, allocations: 176.7 kB / 16.91 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.591/1.591, allocations: 205.4 MB / 223.1 MB, free: 5.238 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4358/0.4358, allocations: 43.57 MB / 315 MB, free: 8.918 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005801/0.0005802, allocations: 12 kB / 384.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1484, allocations: 58.86 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002396/0.1508, allocations: 1.609 MB / 445 MB, free: 11.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009004/0.1517, allocations: 0.5231 MB / 445.6 MB, free: 10.53 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.1519, allocations: 0 / 445.6 MB, free: 10.53 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.152, allocations: 23.86 kB / 445.6 MB, free: 10.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.96e-05/0.1521, allocations: 31.7 kB / 445.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.1523, allocations: 31.95 kB / 445.7 MB, free: 10.44 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001902/0.1525, allocations: 147.3 kB / 445.8 MB, free: 10.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.1527, allocations: 53.91 kB / 445.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.1529, allocations: 51.78 kB / 445.9 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.153, allocations: 55.7 kB / 446 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.166e-05/0.153, allocations: 8 kB / 446 MB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.215e-05/0.153, allocations: 8 kB / 446 MB, free: 10.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.183e-05/0.1531, allocations: 19.92 kB / 446 MB, free: 10.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.854e-05/0.1532, allocations: 85.38 kB / 446.1 MB, free: 10 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.1534, allocations: 147.6 kB / 446.2 MB, free: 9.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1534, allocations: 0 / 446.2 MB, free: 9.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1534, allocations: 4 kB / 446.2 MB, free: 9.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.1534, allocations: 0 / 446.2 MB, free: 9.855 MB / 382.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.0005573/0.1539, allocations: 411 kB / 446.6 MB, free: 9.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.154, allocations: 12.03 kB / 446.6 MB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.557e-05/0.154, allocations: 16.73 kB / 446.7 MB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002061/0.1543, allocations: 196.2 kB / 446.8 MB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.033e-05/0.1543, allocations: 16.31 kB / 446.9 MB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.34e-05/0.1543, allocations: 12.38 kB / 446.9 MB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.1546, allocations: 133.8 kB / 447 MB, free: 8.984 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.1546, allocations: 3.938 kB / 447 MB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.1547, allocations: 4 kB / 447 MB, free: 8.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1547, allocations: 4 kB / 447 MB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.1549, allocations: 91.92 kB / 447.1 MB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006989/0.1556, allocations: 484 kB / 447.6 MB, free: 8.359 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002239/0.1558, allocations: 126.5 kB / 447.7 MB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.156, allocations: 56.84 kB / 447.8 MB, free: 8.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.156, allocations: 4 kB / 447.8 MB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.1561, allocations: 30.56 kB / 447.8 MB, free: 8.125 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.172e-06/0.1561, allocations: 0 / 447.8 MB, free: 8.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001459/0.1575, allocations: 0.8182 MB / 448.6 MB, free: 7.211 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.1576, allocations: 63.39 kB / 448.7 MB, free: 7.137 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.1577, allocations: 141.7 kB / 448.8 MB, free: 6.992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.1577, allocations: 33.7 kB / 448.8 MB, free: 6.953 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.755e-05/0.1578, allocations: 112.2 kB / 449 MB, free: 6.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.938e-05/0.1579, allocations: 63.09 kB / 449 MB, free: 6.777 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/0.1579, allocations: 25.7 kB / 449 MB, free: 6.746 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.158, allocations: 322.8 kB / 449.4 MB, free: 6.422 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.1581, allocations: 43.98 kB / 449.4 MB, free: 6.379 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/0.1583, allocations: 83.34 kB / 449.5 MB, free: 6.285 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.1585, allocations: 139.3 kB / 449.6 MB, free: 6.137 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.1585, allocations: 4 kB / 449.6 MB, free: 6.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003627/0.1589, allocations: 210.1 kB / 449.8 MB, free: 5.918 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.1589, allocations: 8 kB / 449.8 MB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1589, allocations: 3.938 kB / 449.8 MB, free: 5.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000167/0.1591, allocations: 40.78 kB / 449.9 MB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.1593, allocations: 44 kB / 449.9 MB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.1607, allocations: 1.557 MB / 451.5 MB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.145e-05/0.1608, allocations: 4.031 kB / 451.5 MB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.1608, allocations: 8 kB / 451.5 MB, free: 4.121 MB / 382.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.0001119/0.1609, allocations: 129.7 kB / 451.6 MB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.458e-05/0.1609, allocations: 15.91 kB / 451.6 MB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.369e-05/0.161, allocations: 17.17 kB / 451.6 MB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.161, allocations: 4 kB / 451.6 MB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.161, allocations: 4.062 kB / 451.7 MB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.161, allocations: 0 / 451.7 MB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008488/0.1619, allocations: 0.5622 MB / 452.2 MB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.1619, allocations: 3.984 kB / 452.2 MB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.162, allocations: 35.98 kB / 452.3 MB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001255/0.1622, allocations: 32.83 kB / 452.3 MB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.1622, allocations: 0 / 452.3 MB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.1633, allocations: 1.37 MB / 453.7 MB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/0.1633, allocations: 7.969 kB / 453.7 MB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004857/0.1638, allocations: 360.8 kB / 454 MB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.415e-05/0.1638, allocations: 88.95 kB / 454.1 MB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.1639, allocations: 3.984 kB / 454.1 MB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.822e-05/0.164, allocations: 8 kB / 454.1 MB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.632e-05/0.164, allocations: 11.98 kB / 454.1 MB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.164, allocations: 12.06 kB / 454.1 MB, free: 1.219 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.426e-05/0.1641, allocations: 111.2 kB / 454.2 MB, free: 1.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1641, allocations: 0 / 454.2 MB, free: 1.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000309/0.1644, allocations: 36 kB / 454.3 MB, free: 1.074 MB / 382.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.0001093/0.1645, allocations: 103.2 kB / 454.4 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004898/0.165, allocations: 266.5 kB / 454.6 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.165, allocations: 0 / 454.6 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002491/0.1653, allocations: 194 kB / 454.8 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003716/0.1657, allocations: 31.3 kB / 454.9 MB, free: 476 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2304/0.3961, allocations: 0.538 MB / 455.4 MB, free: 46.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001756/0.3963, allocations: 0.717 MB / 456.1 MB, free: 45.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.061e-05/0.3964, allocations: 12.03 kB / 456.1 MB, free: 45.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.786e-05/0.3965, allocations: 16.31 kB / 456.1 MB, free: 45.48 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3965, allocations: 0 / 456.1 MB, free: 45.48 MB / 382.1 MB Notification: Performance of Templates: time 0.004059/0.4005, allocations: 1.485 MB / 457.6 MB, free: 45.46 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches