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.001147/0.001147, allocations: 108.3 kB / 18.4 MB, free: 4.719 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.001125/0.001125, allocations: 191 kB / 19.34 MB, free: 3.789 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.385/1.385, allocations: 222.9 MB / 243 MB, free: 15.17 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.2096/0.2096, allocations: 44.18 MB / 337.4 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 69.61 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1098, allocations: 60.82 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.00399/0.1138, allocations: 2.832 MB / 473.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.1149, allocations: 0.6895 MB / 474.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.1151, allocations: 11.94 kB / 474.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001849/0.1153, allocations: 59.38 kB / 474.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002345/0.1156, allocations: 122.9 kB / 474.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002622/0.1158, allocations: 87.88 kB / 474.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004135/0.1162, allocations: 437.9 kB / 474.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002558/0.1165, allocations: 149.5 kB / 475.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001909/0.1167, allocations: 159.4 kB / 475.2 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002568/0.117, allocations: 183.1 kB / 475.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.9e-05/0.117, allocations: 32 kB / 475.4 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.245e-05/0.1171, allocations: 32 kB / 475.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.41e-05/0.1172, allocations: 79.75 kB / 475.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.1174, allocations: 195.1 kB / 475.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004114/0.1178, allocations: 426.5 kB / 476.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1178, allocations: 0 / 476.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1178, allocations: 0 / 476.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.729e-06/0.1178, allocations: 0 / 476.2 MB, free: 8.199 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.0009992/0.1188, allocations: 0.6552 MB / 476.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.1189, allocations: 8.031 kB / 476.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.119, allocations: 40.47 kB / 476.9 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000372/0.1194, allocations: 284.4 kB / 477.1 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.1194, allocations: 25.38 kB / 477.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.478e-05/0.1195, allocations: 44.28 kB / 477.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005917/0.1201, allocations: 394.5 kB / 477.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.49e-05/0.1201, allocations: 7.906 kB / 477.6 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.198e-05/0.1201, allocations: 16 kB / 477.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.1201, allocations: 8 kB / 477.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003919/0.1205, allocations: 223.7 kB / 477.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002134/0.1227, allocations: 1.707 MB / 479.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004573/0.1232, allocations: 274.3 kB / 479.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.1233, allocations: 98.02 kB / 479.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.1234, allocations: 4 kB / 479.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.1234, allocations: 46.5 kB / 480 MB, free: 4.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.423e-06/0.1234, allocations: 0 / 480 MB, free: 4.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006861/0.1241, allocations: 265 kB / 480.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/0.1242, allocations: 217.9 kB / 480.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002749/0.1245, allocations: 274.9 kB / 480.7 MB, free: 3.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.1246, allocations: 25.7 kB / 480.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/0.1248, allocations: 239.5 kB / 481 MB, free: 2.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.917e-05/0.1249, allocations: 122.4 kB / 481.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.125, allocations: 98.25 kB / 481.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.1252, allocations: 346.7 kB / 481.5 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.1254, allocations: 105.2 kB / 481.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004133/0.1258, allocations: 420.9 kB / 482 MB, free: 1.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006552/0.1265, allocations: 0.5783 MB / 482.6 MB, free: 1.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.1265, allocations: 4 kB / 482.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007758/0.1273, allocations: 0.5246 MB / 483.1 MB, free: 488 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.1273, allocations: 8 kB / 483.1 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.1273, allocations: 12 kB / 483.2 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.118e-05/0.1273, allocations: 16 kB / 483.2 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004208/0.1278, allocations: 151.7 kB / 483.3 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.129e-05/0.1278, allocations: 19.88 kB / 483.3 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/0.1281, allocations: 63.73 kB / 483.4 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.659e-05/0.1281, allocations: 36 kB / 483.4 MB, free: 180 kB / 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.0001847/0.1283, allocations: 181.5 kB / 483.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.1285, allocations: 35.62 kB / 483.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.663e-05/0.1285, allocations: 33.78 kB / 483.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1285, allocations: 4 kB / 483.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.1286, allocations: 4 kB / 483.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1286, allocations: 3.984 kB / 483.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001151/0.1297, allocations: 0.6479 MB / 484.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.1297, allocations: 4 kB / 484.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004123/0.1302, allocations: 83.95 kB / 484.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.1302, allocations: 8 kB / 484.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.1302, allocations: 11.98 kB / 484.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.1302, allocations: 7.938 kB / 484.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.1302, allocations: 7.938 kB / 484.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006438/0.1309, allocations: 0.8298 MB / 485.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.377e-05/0.131, allocations: 104.8 kB / 485.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.048e-05/0.131, allocations: 8 kB / 485.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003294/0.1313, allocations: 19.92 kB / 485.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.103e-05/0.1314, allocations: 23.91 kB / 485.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.1314, allocations: 11.94 kB / 485.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001692/0.1316, allocations: 190 kB / 485.6 MB, free: 13.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1316, allocations: 0 / 485.6 MB, free: 13.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000673/0.1323, allocations: 99.75 kB / 485.7 MB, free: 13.75 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.0001306/0.1324, allocations: 118.8 kB / 485.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005348/0.133, allocations: 294.2 kB / 486.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.133, allocations: 0.875 kB / 486.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001595/0.1331, allocations: 91.89 kB / 486.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008982/0.1341, allocations: 65.06 kB / 486.3 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.136, allocations: 1.533 MB / 487.8 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.1364, allocations: 0.8066 MB / 488.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001375/0.1365, allocations: 39.28 kB / 488.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.736e-05/0.1366, allocations: 31.42 kB / 488.7 MB, free: 10.7 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1366, allocations: 0 / 488.7 MB, free: 10.7 MB / 366.1 MB Notification: Performance of Templates: time 0.006232/0.1428, allocations: 2.918 MB / 491.6 MB, free: 7.801 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/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