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.001088/0.001088, allocations: 107.4 kB / 17.2 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.001184/0.001184, 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.472/1.472, allocations: 222.9 MB / 241.8 MB, free: 15.35 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.32/0.32, allocations: 44.18 MB / 336.1 MB, free: 2.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 64.23 kB / 407.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1318, allocations: 60.83 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004106/0.1359, allocations: 2.866 MB / 471.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.1372, allocations: 0.6973 MB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.1374, allocations: 4 kB / 472.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002036/0.1376, allocations: 43.64 kB / 472.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002153/0.1378, allocations: 103.2 kB / 472.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002597/0.1381, allocations: 75.92 kB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003782/0.1385, allocations: 417.9 kB / 472.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.1387, allocations: 117.1 kB / 472.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.1389, allocations: 151.4 kB / 473 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.1391, allocations: 175.2 kB / 473.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.436e-05/0.1392, allocations: 24 kB / 473.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.621e-05/0.1393, allocations: 27.94 kB / 473.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.144e-05/0.1393, allocations: 67.75 kB / 473.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001904/0.1395, allocations: 183.1 kB / 473.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003641/0.1399, allocations: 414.7 kB / 473.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1399, allocations: 0 / 473.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1399, allocations: 0 / 473.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1399, allocations: 0 / 473.8 MB, free: 9.496 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.0009275/0.1409, allocations: 0.6474 MB / 474.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1409, allocations: 8.031 kB / 474.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.117e-05/0.141, allocations: 48.47 kB / 474.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.1413, allocations: 276.4 kB / 474.8 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.904e-05/0.1413, allocations: 29.38 kB / 474.8 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.08e-05/0.1414, allocations: 44.28 kB / 474.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006172/0.142, allocations: 394.5 kB / 475.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.1421, allocations: 4 kB / 475.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.1421, allocations: 16 kB / 475.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.1421, allocations: 12 kB / 475.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004114/0.1425, allocations: 215.7 kB / 475.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.1447, allocations: 1.73 MB / 477.2 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004074/0.1451, allocations: 258.4 kB / 477.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.1453, allocations: 98.02 kB / 477.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.1453, allocations: 8.219 kB / 477.6 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.1454, allocations: 42.5 kB / 477.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.613e-06/0.1454, allocations: 4 kB / 477.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006421/0.146, allocations: 268.9 kB / 477.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.1461, allocations: 213.6 kB / 478.1 MB, free: 4.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002546/0.1464, allocations: 270.9 kB / 478.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.1464, allocations: 30.08 kB / 478.4 MB, free: 4.527 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.1466, allocations: 239.3 kB / 478.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.62e-05/0.1467, allocations: 118.4 kB / 478.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.1468, allocations: 102.2 kB / 478.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1469, allocations: 350.7 kB / 479.2 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.1472, allocations: 101.2 kB / 479.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004246/0.1476, allocations: 424.8 kB / 479.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006635/0.1483, allocations: 0.5702 MB / 480.3 MB, free: 2.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.044e-06/0.1483, allocations: 4 kB / 480.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008098/0.1491, allocations: 0.5209 MB / 480.8 MB, free: 1.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.1491, allocations: 14.5 kB / 480.8 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.1492, allocations: 20.67 kB / 480.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.645e-05/0.1492, allocations: 16 kB / 480.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004347/0.1496, allocations: 147.7 kB / 481 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.356e-05/0.1497, allocations: 23.88 kB / 481 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002951/0.15, allocations: 67.36 kB / 481.1 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.44e-05/0.15, allocations: 28.5 kB / 481.1 MB, free: 1.469 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001731/0.1502, allocations: 177.5 kB / 481.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.1503, allocations: 39.56 kB / 481.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.98e-05/0.1504, allocations: 33.78 kB / 481.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.1504, allocations: 7.984 kB / 481.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.1504, allocations: 4 kB / 481.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1505, allocations: 3.984 kB / 481.4 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001222/0.1517, allocations: 0.6475 MB / 482 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.1517, allocations: 4.062 kB / 482 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004435/0.1522, allocations: 87.89 kB / 482.1 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.1522, allocations: 4 kB / 482.1 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.1522, allocations: 11.98 kB / 482.1 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.148e-06/0.1522, allocations: 11.88 kB / 482.1 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.1522, allocations: 4 kB / 482.2 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007837/0.153, allocations: 0.8296 MB / 483 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.439e-05/0.1531, allocations: 112.8 kB / 483.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.711e-05/0.1532, allocations: 16 kB / 483.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003376/0.1535, allocations: 15.92 kB / 483.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/0.1536, allocations: 19.97 kB / 483.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.1536, allocations: 12 kB / 483.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001713/0.1538, allocations: 182 kB / 483.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1538, allocations: 0 / 483.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007176/0.1545, allocations: 99.84 kB / 483.4 MB, free: 15.04 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.0001185/0.1546, allocations: 111.7 kB / 483.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000513/0.1552, allocations: 289 kB / 483.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1552, allocations: 0 / 483.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.1553, allocations: 93.27 kB / 483.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.1564, allocations: 64.98 kB / 484 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.1587, allocations: 1.668 MB / 485.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.1591, allocations: 0.7953 MB / 486.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001708/0.1593, allocations: 47.2 kB / 486.5 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.001e-05/0.1593, allocations: 31.42 kB / 486.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1593, allocations: 3.938 kB / 486.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of Templates: time 0.006208/0.1655, allocations: 2.757 MB / 489.3 MB, free: 9.129 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches