Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 101.7 kB / 16.99 MB, free: 5.941 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.0009457/0.0009457, allocations: 181.9 kB / 17.88 MB, free: 5.609 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.424/1.424, allocations: 223.2 MB / 241.8 MB, free: 376 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2678/0.2678, allocations: 44.23 MB / 337.1 MB, free: 2.898 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003692/0.0003693, allocations: 8 kB / 409.5 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1323, allocations: 61.92 MB / 471.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003034/0.1354, allocations: 2.252 MB / 473.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009908/0.1364, allocations: 0.6939 MB / 474.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.1366, allocations: 7.938 kB / 474.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.329e-05/0.1366, allocations: 39.7 kB / 474.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002343/0.1369, allocations: 127.6 kB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000222/0.1371, allocations: 67.92 kB / 474.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004181/0.1375, allocations: 299.4 kB / 474.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002459/0.1378, allocations: 96.2 kB / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002127/0.138, allocations: 151.4 kB / 475.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002324/0.1383, allocations: 155.3 kB / 475.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.901e-05/0.1383, allocations: 20 kB / 475.3 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.267e-05/0.1384, allocations: 20 kB / 475.4 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.075e-05/0.1384, allocations: 55.78 kB / 475.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.1386, allocations: 97.52 kB / 475.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000328/0.1389, allocations: 311.3 kB / 475.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1389, allocations: 0 / 475.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1389, allocations: 0 / 475.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.914e-06/0.1389, allocations: 0 / 475.8 MB, free: 9.363 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0009715/0.1399, allocations: 0.5849 MB / 476.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.14, allocations: 8.031 kB / 476.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.646e-05/0.14, allocations: 47.52 kB / 476.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003052/0.1404, allocations: 267.3 kB / 476.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.1404, allocations: 33 kB / 476.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.616e-05/0.1405, allocations: 39.91 kB / 476.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005981/0.1411, allocations: 394.1 kB / 477.2 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/0.1411, allocations: 3.906 kB / 477.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.1411, allocations: 19.98 kB / 477.2 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.516e-05/0.1412, allocations: 12 kB / 477.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004022/0.1416, allocations: 223.7 kB / 477.4 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002253/0.1439, allocations: 1.735 MB / 479.2 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004538/0.1443, allocations: 262.4 kB / 479.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.1444, allocations: 4 kB / 479.4 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.1444, allocations: 42.5 kB / 479.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.373e-06/0.1444, allocations: 0 / 479.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006753/0.1451, allocations: 285.5 kB / 479.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.1452, allocations: 217.5 kB / 479.9 MB, free: 4.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002692/0.1455, allocations: 271 kB / 480.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/0.1455, allocations: 33.64 kB / 480.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.1457, allocations: 243.4 kB / 480.5 MB, free: 4.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.959e-05/0.1458, allocations: 118.3 kB / 480.6 MB, free: 4.191 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.685e-05/0.1458, allocations: 15.94 kB / 480.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.146, allocations: 342.8 kB / 480.9 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.1462, allocations: 97.27 kB / 481 MB, free: 3.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004266/0.1466, allocations: 428.8 kB / 481.5 MB, free: 3.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.1469, allocations: 175.8 kB / 481.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.1469, allocations: 4 kB / 481.6 MB, free: 2.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008517/0.1478, allocations: 0.5253 MB / 482.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.1478, allocations: 12 kB / 482.2 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.1479, allocations: 12.03 kB / 482.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.169e-05/0.1479, allocations: 23.95 kB / 482.2 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004541/0.1484, allocations: 151.7 kB / 482.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.176e-05/0.1484, allocations: 19.94 kB / 482.4 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003015/0.1487, allocations: 63.42 kB / 482.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.678e-05/0.1487, allocations: 35.94 kB / 482.5 MB, free: 2.141 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001946/0.1489, allocations: 178.1 kB / 482.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.1491, allocations: 31.62 kB / 482.7 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.217e-05/0.1492, allocations: 41.72 kB / 482.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.1492, allocations: 7.984 kB / 482.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.1492, allocations: 3.953 kB / 482.7 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.1492, allocations: 4 kB / 482.7 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/0.1504, allocations: 0.6437 MB / 483.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1504, allocations: 0 / 483.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004389/0.1509, allocations: 91.88 kB / 483.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.327e-06/0.1509, allocations: 7.953 kB / 483.5 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.426e-05/0.1509, allocations: 8 kB / 483.5 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.8e-06/0.1509, allocations: 7.938 kB / 483.5 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.151, allocations: 4 kB / 483.5 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008267/0.1518, allocations: 0.9412 MB / 484.4 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.1519, allocations: 108.9 kB / 484.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.152, allocations: 8 kB / 484.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003345/0.1523, allocations: 16 kB / 484.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.159e-05/0.1524, allocations: 23.92 kB / 484.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.1524, allocations: 8 kB / 484.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00018/0.1526, allocations: 186 kB / 484.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1526, allocations: 0 / 484.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007066/0.1533, allocations: 103.8 kB / 484.9 MB, free: 15.56 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001364/0.1534, allocations: 111.1 kB / 485 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005382/0.154, allocations: 298.2 kB / 485.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.154, allocations: 4.062 kB / 485.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001636/0.1542, allocations: 95.77 kB / 485.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007209/0.1549, allocations: 68.34 kB / 485.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.1574, allocations: 1.883 MB / 487.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.1579, allocations: 0.8033 MB / 488.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001775/0.1581, allocations: 47.25 kB / 488.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.561e-05/0.1581, allocations: 27.44 kB / 488.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1581, allocations: 0 / 488.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of Templates: time 0.006278/0.1644, allocations: 2.656 MB / 490.9 MB, free: 9.52 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches