Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002174/0.002173, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.063/2.063, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00116/0.00116, allocations: 89.27 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3125/0.3125, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.012e-05/2.013e-05, allocations: 224 / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4287/0.4287, allocations: 58.84 MB / 477.1 MB, free: 5.273 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1588/0.5876, allocations: 86.22 MB / 0.5501 GB, free: 13.09 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/0.5879, allocations: 67.97 kB / 0.5502 GB, free: 13.02 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02616/0.6141, allocations: 6.023 MB / 0.556 GB, free: 6.98 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6142, allocations: 0 / 0.556 GB, free: 6.98 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.479e-05/0.6142, allocations: 12 kB / 0.5561 GB, free: 6.969 MB / 395.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.001125/0.6153, allocations: 0.5416 MB / 0.5566 GB, free: 6.383 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.6154, allocations: 15.95 kB / 0.5566 GB, free: 6.367 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.6155, allocations: 47.48 kB / 0.5566 GB, free: 6.32 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003802/0.6159, allocations: 247.4 kB / 0.5569 GB, free: 6.035 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.616, allocations: 12 kB / 0.5569 GB, free: 6.023 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.355e-05/0.6161, allocations: 31.89 kB / 0.5569 GB, free: 5.992 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005037/0.6166, allocations: 165.5 kB / 0.5571 GB, free: 5.832 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007298/0.6173, allocations: 321.7 kB / 0.5574 GB, free: 5.484 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.625e-05/0.6174, allocations: 11.86 kB / 0.5574 GB, free: 5.473 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.638e-05/0.6174, allocations: 4 kB / 0.5574 GB, free: 5.469 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.193e-05/0.6174, allocations: 8 kB / 0.5574 GB, free: 5.461 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003189/0.6206, allocations: 1.645 MB / 0.559 GB, free: 3.723 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005319/0.6212, allocations: 230.7 kB / 0.5592 GB, free: 3.434 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.6214, allocations: 90.12 kB / 0.5593 GB, free: 3.324 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.6214, allocations: 0 / 0.5593 GB, free: 3.324 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.076e-05/0.6215, allocations: 46.45 kB / 0.5594 GB, free: 3.27 MB / 395.1 MB Notification: Performance of pre-optimization done (n=26): time 2.404e-06/0.6215, allocations: 0 / 0.5594 GB, free: 3.27 MB / 395.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006181/0.6221, allocations: 173.3 kB / 0.5595 GB, free: 3.094 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.6223, allocations: 212.6 kB / 0.5597 GB, free: 2.84 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/0.6226, allocations: 214.2 kB / 0.5599 GB, free: 2.621 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.6226, allocations: 29.7 kB / 0.56 GB, free: 2.586 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/0.6229, allocations: 301.8 kB / 0.5603 GB, free: 2.289 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.623, allocations: 110.5 kB / 0.5604 GB, free: 2.18 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.954e-05/0.623, allocations: 96 / 0.5604 GB, free: 2.18 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.6232, allocations: 338.8 kB / 0.5607 GB, free: 1.84 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.6234, allocations: 73.56 kB / 0.5608 GB, free: 1.77 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004825/0.6239, allocations: 392.5 kB / 0.5611 GB, free: 1.223 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003622/0.6243, allocations: 143.8 kB / 0.5613 GB, free: 1.082 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.6243, allocations: 4 kB / 0.5613 GB, free: 1.078 MB / 395.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001069/0.6254, allocations: 417.3 kB / 0.5617 GB, free: 0.6641 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.98e-05/0.6254, allocations: 8 kB / 0.5617 GB, free: 0.6562 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.782e-05/0.6255, allocations: 15.98 kB / 0.5617 GB, free: 0.6406 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.321e-05/0.6255, allocations: 19.95 kB / 0.5617 GB, free: 0.6211 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008666/0.6264, allocations: 152.3 kB / 0.5619 GB, free: 484 kB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.771e-05/0.6265, allocations: 27.92 kB / 0.5619 GB, free: 456 kB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004782/0.627, allocations: 55.38 kB / 0.5619 GB, free: 400 kB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.647e-05/0.627, allocations: 32 kB / 0.562 GB, free: 368 kB / 395.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 () * 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.0001609/0.6272, allocations: 124.7 kB / 0.5621 GB, free: 236 kB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002054/0.6274, allocations: 39.61 kB / 0.5621 GB, free: 196 kB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.6275, allocations: 29.83 kB / 0.5622 GB, free: 168 kB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.6276, allocations: 8.078 kB / 0.5622 GB, free: 160 kB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.6276, allocations: 12 kB / 0.5622 GB, free: 148 kB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.884e-06/0.6276, allocations: 0 / 0.5622 GB, free: 148 kB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/0.6296, allocations: 0.5818 MB / 0.5627 GB, free: 15.51 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/0.6296, allocations: 4 kB / 0.5627 GB, free: 15.51 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009269/0.6305, allocations: 92.44 kB / 0.5628 GB, free: 15.42 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.226e-05/0.6306, allocations: 4.062 kB / 0.5628 GB, free: 15.41 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.356e-05/0.6306, allocations: 11.95 kB / 0.5628 GB, free: 15.4 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.048e-05/0.6306, allocations: 7.984 kB / 0.5629 GB, free: 15.39 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.6307, allocations: 3.938 kB / 0.5629 GB, free: 15.39 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009475/0.6316, allocations: 0.8799 MB / 0.5637 GB, free: 14.44 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.6318, allocations: 109.1 kB / 0.5638 GB, free: 14.31 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.483e-05/0.6318, allocations: 7.984 kB / 0.5638 GB, free: 14.3 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005828/0.6324, allocations: 4 kB / 0.5638 GB, free: 14.3 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.074e-05/0.6325, allocations: 31.89 kB / 0.5639 GB, free: 14.27 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.6326, allocations: 11.95 kB / 0.5639 GB, free: 14.26 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.6328, allocations: 162 kB / 0.564 GB, free: 14.1 MB / 411.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.6328, allocations: 0 / 0.564 GB, free: 14.1 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.001081/0.6339, allocations: 91.78 kB / 0.5641 GB, free: 14.01 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete 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.000169/0.6341, allocations: 107.2 kB / 0.5642 GB, free: 13.9 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0006044/0.6347, allocations: 229 kB / 0.5644 GB, free: 13.68 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.6347, allocations: 0 / 0.5644 GB, free: 13.68 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.6349, allocations: 67.86 kB / 0.5645 GB, free: 13.61 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009496/0.6359, allocations: 50.34 kB / 0.5645 GB, free: 13.56 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003325/0.6392, allocations: 1.544 MB / 0.5661 GB, free: 11.96 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005358/0.6398, allocations: 0.803 MB / 0.5668 GB, free: 11.13 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.6399, allocations: 31.42 kB / 0.5669 GB, free: 11.1 MB / 411.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6399, allocations: 0 / 0.5669 GB, free: 11.1 MB / 411.1 MB Notification: Performance of Templates: time 0.01029/0.6502, allocations: 3.901 MB / 0.5707 GB, free: 7.207 MB / 411.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches