Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.000951/0.0009509, allocations: 96.52 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 175.5 kB / 16.56 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.614/1.614, allocations: 205.4 MB / 222.7 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3388/0.3388, allocations: 43.55 MB / 314.5 MB, free: 9.031 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004699/0.00047, allocations: 16 kB / 383.9 MB, free: 8.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1088, allocations: 58.86 MB / 442.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.001607/0.1105, allocations: 1.289 MB / 444 MB, free: 12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002359/0.1107, allocations: 115.7 kB / 444.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.929e-05/0.1108, allocations: 0 / 444.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.497e-05/0.1108, allocations: 15.92 kB / 444.2 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.881e-05/0.1109, allocations: 35.86 kB / 444.2 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001128/0.111, allocations: 23.97 kB / 444.2 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.1112, allocations: 79.88 kB / 444.3 MB, free: 11.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.1113, allocations: 37.08 kB / 444.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.261e-05/0.1114, allocations: 43.8 kB / 444.4 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.055e-05/0.1115, allocations: 39.84 kB / 444.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.955e-05/0.1115, allocations: 4 kB / 444.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.766e-05/0.1115, allocations: 11.94 kB / 444.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.354e-05/0.1115, allocations: 19.92 kB / 444.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.229e-05/0.1116, allocations: 45.64 kB / 444.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001075/0.1117, allocations: 88.03 kB / 444.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.1117, allocations: 0 / 444.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1117, allocations: 0 / 444.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.329e-06/0.1117, allocations: 0 / 444.6 MB, free: 11.45 MB / 382.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.0004554/0.1122, allocations: 399.2 kB / 445 MB, free: 11.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.483e-05/0.1123, allocations: 11.97 kB / 445 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.152e-05/0.1123, allocations: 19.77 kB / 445 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.1125, allocations: 183 kB / 445.2 MB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.1125, allocations: 8.234 kB / 445.2 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.1125, allocations: 12 kB / 445.2 MB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000223/0.1128, allocations: 128.9 kB / 445.3 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.1128, allocations: 11.89 kB / 445.3 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.1128, allocations: 8 kB / 445.4 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.1128, allocations: 0 / 445.4 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001063/0.1129, allocations: 59.92 kB / 445.4 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006842/0.1136, allocations: 0.5372 MB / 446 MB, free: 9.926 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.1138, allocations: 93.16 kB / 446 MB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.1e-05/0.1138, allocations: 4 kB / 446 MB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.1138, allocations: 38.56 kB / 446.1 MB, free: 9.766 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.302e-06/0.1138, allocations: 0 / 446.1 MB, free: 9.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005077/0.1143, allocations: 301.4 kB / 446.4 MB, free: 9.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.1144, allocations: 81.11 kB / 446.5 MB, free: 9.324 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.265e-05/0.1145, allocations: 117.8 kB / 446.6 MB, free: 9.199 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.1145, allocations: 29.7 kB / 446.6 MB, free: 9.164 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.892e-05/0.1146, allocations: 131.4 kB / 446.7 MB, free: 9.031 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.1146, allocations: 31.55 kB / 446.8 MB, free: 9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.479e-06/0.1146, allocations: 4 kB / 446.8 MB, free: 8.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.686e-05/0.1147, allocations: 322.8 kB / 447.1 MB, free: 8.672 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.377e-05/0.1147, allocations: 15.98 kB / 447.1 MB, free: 8.656 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.499e-05/0.1148, allocations: 88.58 kB / 447.2 MB, free: 8.539 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.992e-05/0.1149, allocations: 35.94 kB / 447.2 MB, free: 8.504 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1149, allocations: 4 kB / 447.2 MB, free: 8.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002333/0.1151, allocations: 167 kB / 447.4 MB, free: 8.324 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.1152, allocations: 4 kB / 447.4 MB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1152, allocations: 4 kB / 447.4 MB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001599/0.1153, allocations: 37.89 kB / 447.4 MB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.18e-05/0.1154, allocations: 28 kB / 447.5 MB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001674/0.1171, allocations: 2.545 MB / 450 MB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.633e-05/0.1172, allocations: 28.03 kB / 450 MB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.1172, allocations: 8 kB / 450 MB, free: 5.398 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.756e-05/0.1173, allocations: 129.7 kB / 450.2 MB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.029e-05/0.1173, allocations: 7.906 kB / 450.2 MB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.473e-05/0.1174, allocations: 11.91 kB / 450.2 MB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1174, allocations: 3.984 kB / 450.2 MB, free: 5.238 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1174, allocations: 4 kB / 450.2 MB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.1174, allocations: 0 / 450.2 MB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.1176, allocations: 205.5 kB / 450.4 MB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1176, allocations: 0 / 450.4 MB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.674e-05/0.1177, allocations: 11.98 kB / 450.4 MB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.369e-05/0.1178, allocations: 33.7 kB / 450.4 MB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.1179, allocations: 8 kB / 450.4 MB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/0.1193, allocations: 2.537 MB / 453 MB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1194, allocations: 0 / 453 MB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002875/0.1197, allocations: 318 kB / 453.3 MB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.441e-05/0.1197, allocations: 85.2 kB / 453.4 MB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.1197, allocations: 15.98 kB / 453.4 MB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.65e-05/0.1198, allocations: 4 kB / 453.4 MB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.13e-05/0.1198, allocations: 4 kB / 453.4 MB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.079e-06/0.1199, allocations: 7.938 kB / 453.4 MB, free: 1.652 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.361e-05/0.1199, allocations: 91.27 kB / 453.5 MB, free: 1.562 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1199, allocations: 0 / 453.5 MB, free: 1.562 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003231/0.1202, allocations: 35.94 kB / 453.5 MB, free: 1.527 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001001/0.1204, allocations: 103.2 kB / 453.6 MB, free: 1.418 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003646/0.1207, allocations: 293.2 kB / 453.9 MB, free: 1.105 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1207, allocations: 0 / 453.9 MB, free: 1.105 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002213/0.121, allocations: 265.8 kB / 454.2 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.1213, allocations: 16.23 kB / 454.2 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007077/0.122, allocations: 0.5629 MB / 454.8 MB, free: 216 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1753/0.2974, allocations: 0.7134 MB / 455.5 MB, free: 45.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.887e-05/0.2975, allocations: 5.359 kB / 455.5 MB, free: 45.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.016e-05/0.2975, allocations: 14.09 kB / 455.5 MB, free: 45.48 MB / 382.1 MB Notification: Performance of SimCode: time 1.473e-06/0.2975, allocations: 0.8125 kB / 455.5 MB, free: 45.48 MB / 382.1 MB Notification: Performance of Templates: time 0.003242/0.3008, allocations: 1.395 MB / 456.9 MB, free: 45.46 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches