Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.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.1.0-beta.om_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.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001011/0.001011, allocations: 93.56 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 227.8 MB / 246.9 MB, free: 11.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2173/0.2173, allocations: 46.19 MB / 345.3 MB, free: 11.37 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0003664/0.0003664, allocations: 11.98 kB / 419.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1347, allocations: 63.56 MB / 483.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003948/0.1387, allocations: 2.525 MB / 485.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001757/0.1405, allocations: 0.7518 MB / 486.4 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002464/0.1408, allocations: 11.94 kB / 486.5 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001746/0.1409, allocations: 35.7 kB / 486.5 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003134/0.1413, allocations: 119.1 kB / 486.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.1416, allocations: 79.92 kB / 486.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005166/0.1421, allocations: 417.9 kB / 487.1 MB, free: 156 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002333/0.1424, allocations: 121.1 kB / 487.2 MB, free: 36 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002815/0.1427, allocations: 147.4 kB / 487.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002248/0.1429, allocations: 163.2 kB / 487.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.176e-05/0.143, allocations: 20 kB / 487.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.932e-05/0.1431, allocations: 28 kB / 487.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.627e-05/0.1431, allocations: 63.69 kB / 487.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001993/0.1433, allocations: 204.8 kB / 487.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004264/0.1438, allocations: 414.6 kB / 488.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1438, allocations: 4 kB / 488.2 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1438, allocations: 0 / 488.2 MB, free: 15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.1438, allocations: 3.938 kB / 488.2 MB, free: 15 MB / 366.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.000925/0.1447, allocations: 0.5851 MB / 488.8 MB, free: 14.37 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.1448, allocations: 8.875 kB / 488.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002669/0.1451, allocations: 68.44 kB / 488.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.1454, allocations: 275.5 kB / 489.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.714e-05/0.1455, allocations: 29.38 kB / 489.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.435e-05/0.1455, allocations: 48.27 kB / 489.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006797/0.1462, allocations: 398.5 kB / 489.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/0.1463, allocations: 15.83 kB / 489.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.422e-05/0.1463, allocations: 16 kB / 489.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.1463, allocations: 12 kB / 489.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004627/0.1468, allocations: 223.7 kB / 489.9 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002367/0.1492, allocations: 1.73 MB / 491.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004539/0.1496, allocations: 266.4 kB / 491.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.1498, allocations: 110 kB / 492 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.1499, allocations: 4 kB / 492 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.1499, allocations: 42.5 kB / 492 MB, free: 10.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.462e-06/0.1499, allocations: 0 / 492 MB, free: 10.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006935/0.1506, allocations: 277 kB / 492.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001323/0.1507, allocations: 218 kB / 492.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003296/0.1511, allocations: 279.1 kB / 492.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.1511, allocations: 29.7 kB / 492.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.1513, allocations: 239.3 kB / 493 MB, free: 9.777 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.1514, allocations: 118.4 kB / 493.2 MB, free: 9.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.613e-05/0.1515, allocations: 53.69 kB / 493.2 MB, free: 9.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.1516, allocations: 346.7 kB / 493.6 MB, free: 9.254 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.1519, allocations: 101.3 kB / 493.7 MB, free: 9.156 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004873/0.1524, allocations: 436.8 kB / 494.1 MB, free: 8.566 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008065/0.1532, allocations: 0.578 MB / 494.7 MB, free: 7.828 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.1532, allocations: 4 kB / 494.7 MB, free: 7.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00094/0.1541, allocations: 0.5331 MB / 495.2 MB, free: 7.285 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.1542, allocations: 8 kB / 495.2 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/0.1542, allocations: 16.09 kB / 495.2 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.633e-05/0.1542, allocations: 16 kB / 495.2 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004612/0.1547, allocations: 147.8 kB / 495.4 MB, free: 7.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.549e-05/0.1547, allocations: 23.86 kB / 495.4 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003327/0.1551, allocations: 71.38 kB / 495.5 MB, free: 7.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.103e-05/0.1551, allocations: 35.98 kB / 495.5 MB, free: 6.973 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000225/0.1554, allocations: 177.5 kB / 495.7 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.1555, allocations: 31.62 kB / 495.7 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.092e-05/0.1556, allocations: 37.83 kB / 495.7 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.1556, allocations: 7.938 kB / 495.8 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.657e-06/0.1556, allocations: 0.5 kB / 495.8 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.1557, allocations: 7.984 kB / 495.8 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.157, allocations: 0.6553 MB / 496.4 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.157, allocations: 4 kB / 496.4 MB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004395/0.1575, allocations: 83.95 kB / 496.5 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.588e-06/0.1575, allocations: 4 kB / 496.5 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.606e-05/0.1575, allocations: 15.92 kB / 496.5 MB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.1575, allocations: 7.938 kB / 496.5 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1575, allocations: 4 kB / 496.5 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008645/0.1584, allocations: 0.8424 MB / 497.4 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.867e-05/0.1585, allocations: 104.8 kB / 497.5 MB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.586e-05/0.1586, allocations: 16 kB / 497.5 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003212/0.1589, allocations: 11.92 kB / 497.5 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.924e-05/0.159, allocations: 27.97 kB / 497.5 MB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.159, allocations: 15.94 kB / 497.6 MB, free: 4.809 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001777/0.1592, allocations: 186 kB / 497.7 MB, free: 4.629 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1592, allocations: 0 / 497.7 MB, free: 4.629 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006988/0.1599, allocations: 95.84 kB / 497.8 MB, free: 4.535 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001477/0.1601, allocations: 111.1 kB / 497.9 MB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005624/0.1606, allocations: 309.3 kB / 498.2 MB, free: 4.113 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1606, allocations: 0 / 498.2 MB, free: 4.113 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.1608, allocations: 89.28 kB / 498.3 MB, free: 4.027 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.1619, allocations: 82.72 kB / 498.4 MB, free: 3.953 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002718/0.1646, allocations: 1.93 MB / 0.4886 GB, free: 1.973 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004856/0.1651, allocations: 0.7914 MB / 0.4894 GB, free: 1.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001713/0.1653, allocations: 47.25 kB / 0.4894 GB, free: 1.105 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.296e-05/0.1653, allocations: 27.44 kB / 0.4895 GB, free: 1.078 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1654, allocations: 0 / 0.4895 GB, free: 1.078 MB / 366.1 MB Notification: Performance of Templates: time 0.007711/0.1731, allocations: 2.753 MB / 0.4921 GB, free: 14.35 MB / 382.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches