Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009663/0.0009662, allocations: 97.25 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.001187/0.001187, allocations: 178.6 kB / 16.92 MB, free: 6.68 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.72/1.72, allocations: 205.4 MB / 223.1 MB, free: 5.508 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.3986/0.3986, allocations: 43.58 MB / 315 MB, free: 9.055 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.0005777/0.0005781, allocations: 19.98 kB / 384.6 MB, free: 7.871 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1494, allocations: 58.87 MB / 443.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.00232/0.1518, allocations: 1.365 MB / 444.8 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004024/0.1522, allocations: 111.6 kB / 444.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.1523, allocations: 0 / 444.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 6.401e-05/0.1524, allocations: 11.92 kB / 444.9 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001566/0.1526, allocations: 27.78 kB / 445 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001604/0.1527, allocations: 23.91 kB / 445 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000222/0.153, allocations: 123.5 kB / 445.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.1532, allocations: 29.09 kB / 445.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.1533, allocations: 47.78 kB / 445.2 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.1535, allocations: 43.8 kB / 445.2 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.909e-05/0.1535, allocations: 4 kB / 445.2 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.618e-05/0.1535, allocations: 8 kB / 445.2 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.149e-05/0.1536, allocations: 19.92 kB / 445.3 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.1537, allocations: 85.42 kB / 445.3 MB, free: 10.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001917/0.1539, allocations: 115.8 kB / 445.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1539, allocations: 0 / 445.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1539, allocations: 3.938 kB / 445.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.1539, allocations: 0 / 445.5 MB, free: 10.88 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006049/0.1545, allocations: 383.4 kB / 445.8 MB, free: 10.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.1546, allocations: 8.031 kB / 445.8 MB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.767e-05/0.1547, allocations: 20.73 kB / 445.9 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.1549, allocations: 184.3 kB / 446 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.488e-05/0.155, allocations: 8.609 kB / 446 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.599e-05/0.155, allocations: 28.2 kB / 446.1 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00032/0.1554, allocations: 125.6 kB / 446.2 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.1554, allocations: 4.125 kB / 446.2 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.1554, allocations: 7.938 kB / 446.2 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.1554, allocations: 4 kB / 446.2 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001421/0.1556, allocations: 55.97 kB / 446.3 MB, free: 9.961 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009859/0.1566, allocations: 0.5411 MB / 446.8 MB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001582/0.1568, allocations: 97.08 kB / 446.9 MB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.851e-05/0.1568, allocations: 29.89 kB / 446.9 MB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.14e-05/0.1568, allocations: 3.938 kB / 446.9 MB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.1569, allocations: 30.56 kB / 447 MB, free: 9.168 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.1569, allocations: 0 / 447 MB, free: 9.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006932/0.1576, allocations: 313.4 kB / 447.3 MB, free: 8.812 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.815e-05/0.1577, allocations: 81.05 kB / 447.4 MB, free: 8.715 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.1578, allocations: 117.8 kB / 447.5 MB, free: 8.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.1578, allocations: 25.7 kB / 447.5 MB, free: 8.559 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.15e-05/0.1579, allocations: 131.5 kB / 447.6 MB, free: 8.426 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.409e-05/0.158, allocations: 35.53 kB / 447.7 MB, free: 8.391 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.402e-05/0.158, allocations: 25.7 kB / 447.7 MB, free: 8.359 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1582, allocations: 318.8 kB / 448 MB, free: 8.039 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.281e-05/0.1582, allocations: 23.98 kB / 448 MB, free: 8.016 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.417e-05/0.1583, allocations: 84.58 kB / 448.1 MB, free: 7.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.1585, allocations: 124.5 kB / 448.2 MB, free: 7.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1585, allocations: 0 / 448.2 MB, free: 7.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002866/0.1588, allocations: 167 kB / 448.4 MB, free: 7.574 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.1588, allocations: 8 kB / 448.4 MB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.1588, allocations: 0 / 448.4 MB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001961/0.159, allocations: 49.83 kB / 448.4 MB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.685e-05/0.1591, allocations: 20 kB / 448.5 MB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/0.1613, allocations: 2.541 MB / 451 MB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.788e-05/0.1613, allocations: 15.88 kB / 451 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.1614, allocations: 11.98 kB / 451 MB, free: 4.656 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001335/0.1615, allocations: 125.8 kB / 451.1 MB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.089e-05/0.1616, allocations: 11.84 kB / 451.2 MB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.907e-05/0.1616, allocations: 11.84 kB / 451.2 MB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.1616, allocations: 3.938 kB / 451.2 MB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.1616, allocations: 8.062 kB / 451.2 MB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1616, allocations: 0 / 451.2 MB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000301/0.1619, allocations: 201.5 kB / 451.4 MB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.162, allocations: 4 kB / 451.4 MB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.815e-05/0.1621, allocations: 11.98 kB / 451.4 MB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001033/0.1622, allocations: 37.7 kB / 451.4 MB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.1622, allocations: 0 / 451.4 MB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002141/0.1643, allocations: 2.54 MB / 454 MB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1644, allocations: 0 / 454 MB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000388/0.1648, allocations: 312.4 kB / 454.3 MB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.804e-05/0.1648, allocations: 85.02 kB / 454.4 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.1649, allocations: 8 kB / 454.4 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.344e-05/0.165, allocations: 0 / 454.4 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.717e-05/0.165, allocations: 8.031 kB / 454.4 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-06/0.165, allocations: 4 kB / 454.4 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.602e-05/0.1651, allocations: 95.27 kB / 454.5 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1651, allocations: 0 / 454.5 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003753/0.1655, allocations: 39.84 kB / 454.5 MB, free: 0.7969 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.0001221/0.1656, allocations: 103.1 kB / 454.6 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004465/0.1661, allocations: 301.2 kB / 454.9 MB, free: 376 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1661, allocations: 0.5 kB / 454.9 MB, free: 376 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002442/0.1663, allocations: 261.3 kB / 455.2 MB, free: 88 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.1668, allocations: 23.98 kB / 455.2 MB, free: 64 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2328/0.3997, allocations: 0.564 MB / 455.7 MB, free: 45.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.3999, allocations: 0.7119 MB / 456.5 MB, free: 44.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.293e-05/0.4, allocations: 9.406 kB / 456.5 MB, free: 44.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.746e-05/0.4, allocations: 15.14 kB / 456.5 MB, free: 44.9 MB / 382.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4, allocations: 0 / 456.5 MB, free: 44.9 MB / 382.1 MB Notification: Performance of Templates: time 0.003903/0.4039, allocations: 1.453 MB / 457.9 MB, free: 44.82 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches