Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001678/0.001678, allocations: 106.9 kB / 17.21 MB, free: 6.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001659/0.001659, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2183/0.2183, allocations: 44.17 MB / 336.1 MB, free: 3.016 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 68.8 kB / 407.7 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1356, allocations: 60.83 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003639/0.1393, allocations: 1.705 MB / 470.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002816/0.1396, allocations: 103.6 kB / 470.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.349e-05/0.1397, allocations: 8 kB / 470.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.203e-05/0.1398, allocations: 7.922 kB / 470.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.1399, allocations: 35.75 kB / 470.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001329/0.1401, allocations: 16 kB / 470.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001538/0.1402, allocations: 127.4 kB / 470.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.1404, allocations: 32.91 kB / 470.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.989e-05/0.1405, allocations: 43.8 kB / 470.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.324e-05/0.1406, allocations: 47.78 kB / 470.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.316e-05/0.1406, allocations: 8 kB / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.746e-05/0.1407, allocations: 4 kB / 470.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.881e-05/0.1407, allocations: 23.91 kB / 470.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.205e-05/0.1408, allocations: 59.73 kB / 470.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000182/0.141, allocations: 111.9 kB / 470.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.141, allocations: 0 / 470.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.141, allocations: 3.938 kB / 470.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.141, allocations: 4 kB / 470.9 MB, free: 12.51 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005788/0.1416, allocations: 411.4 kB / 471.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.1417, allocations: 8.031 kB / 471.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.531e-05/0.1417, allocations: 12.75 kB / 471.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002081/0.1419, allocations: 192.2 kB / 471.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.1419, allocations: 8.609 kB / 471.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.805e-05/0.142, allocations: 16.28 kB / 471.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002427/0.1422, allocations: 137.5 kB / 471.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.1423, allocations: 4.188 kB / 471.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.1423, allocations: 7.938 kB / 471.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.1423, allocations: 4 kB / 471.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001066/0.1424, allocations: 55.95 kB / 471.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007706/0.1432, allocations: 0.5372 MB / 472.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.1433, allocations: 85.22 kB / 472.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.375e-05/0.1434, allocations: 25.72 kB / 472.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.1434, allocations: 15.88 kB / 472.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.1434, allocations: 30.56 kB / 472.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.512e-06/0.1434, allocations: 0 / 472.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005901/0.144, allocations: 305.5 kB / 472.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/0.1441, allocations: 85.11 kB / 472.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.1442, allocations: 113.8 kB / 472.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.1443, allocations: 33.69 kB / 472.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.29e-05/0.1444, allocations: 131.5 kB / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.919e-05/0.1445, allocations: 31.55 kB / 473.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.221e-05/0.1445, allocations: 25.72 kB / 473.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1447, allocations: 326.8 kB / 473.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.688e-05/0.1447, allocations: 23.94 kB / 473.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.1449, allocations: 92.56 kB / 473.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.145, allocations: 116.5 kB / 473.6 MB, free: 9.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1451, allocations: 0 / 473.6 MB, free: 9.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002637/0.1453, allocations: 171 kB / 473.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.1454, allocations: 4 kB / 473.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.1454, allocations: 4 kB / 473.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002095/0.1456, allocations: 41.64 kB / 473.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.452e-05/0.1457, allocations: 23.92 kB / 473.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002025/0.1477, allocations: 2.545 MB / 476.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.598e-05/0.1478, allocations: 19.78 kB / 476.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.1478, allocations: 4 kB / 476.4 MB, free: 6.27 MB / 350.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.0001015/0.1479, allocations: 129.9 kB / 476.6 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.254e-05/0.1479, allocations: 7.906 kB / 476.6 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.52e-05/0.148, allocations: 15.83 kB / 476.6 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.148, allocations: 4 kB / 476.6 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.148, allocations: 0 / 476.6 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.148, allocations: 0 / 476.6 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002425/0.1482, allocations: 201.5 kB / 476.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1483, allocations: 0 / 476.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.799e-05/0.1483, allocations: 15.98 kB / 476.8 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.476e-05/0.1484, allocations: 41.64 kB / 476.9 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.1485, allocations: 4 kB / 476.9 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002452/0.1509, allocations: 2.529 MB / 479.4 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1509, allocations: 4.062 kB / 479.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003144/0.1513, allocations: 308.3 kB / 479.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.985e-05/0.1513, allocations: 85.02 kB / 479.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.1513, allocations: 4 kB / 479.8 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.362e-05/0.1514, allocations: 0 / 479.8 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.883e-05/0.1515, allocations: 15.97 kB / 479.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.1515, allocations: 7.938 kB / 479.8 MB, free: 2.539 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.531e-05/0.1515, allocations: 95.27 kB / 479.9 MB, free: 2.445 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1516, allocations: 0 / 479.9 MB, free: 2.445 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003493/0.1519, allocations: 39.84 kB / 479.9 MB, free: 2.406 MB / 350.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.000105/0.152, allocations: 103.2 kB / 480 MB, free: 2.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004216/0.1524, allocations: 301.2 kB / 480.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1525, allocations: 0 / 480.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002407/0.1527, allocations: 253.6 kB / 480.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004819/0.1532, allocations: 31.61 kB / 480.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009195/0.1541, allocations: 0.5125 MB / 481.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003693/0.1545, allocations: 0.7044 MB / 481.8 MB, free: 408 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.755e-05/0.1546, allocations: 12.86 kB / 481.8 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.157e-05/0.1546, allocations: 11.44 kB / 481.8 MB, free: 384 kB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1546, allocations: 4 kB / 481.8 MB, free: 380 kB / 350.1 MB Notification: Performance of Templates: time 0.004016/0.1586, allocations: 1.472 MB / 483.3 MB, free: 14.91 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches