Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.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.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009386/0.0009386, allocations: 180.8 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.4 MB / 223.6 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007846/0.0007846, allocations: 97.47 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.367/0.367, allocations: 43.55 MB / 363.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003643, allocations: 20 kB / 432.6 MB, free: 5.891 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1257, allocations: 58.85 MB / 491.4 MB, free: 10.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3222/0.4479, allocations: 87.01 MB / 0.5649 GB, free: 15.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.4483, allocations: 71.91 kB / 0.565 GB, free: 15.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01695/0.4652, allocations: 6.259 MB / 0.5711 GB, free: 9.098 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4653, allocations: 2.953 kB / 0.5711 GB, free: 9.098 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.763e-05/0.4653, allocations: 12 kB / 0.5711 GB, free: 9.086 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0008414/0.4661, allocations: 0.5999 MB / 0.5717 GB, free: 8.438 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.4662, allocations: 8.031 kB / 0.5717 GB, free: 8.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.93e-05/0.4663, allocations: 44.47 kB / 0.5717 GB, free: 8.387 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.4666, allocations: 292.3 kB / 0.572 GB, free: 8.059 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.4666, allocations: 33.38 kB / 0.572 GB, free: 8.027 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-05/0.4667, allocations: 40.38 kB / 0.5721 GB, free: 7.988 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000634/0.4673, allocations: 381.6 kB / 0.5724 GB, free: 7.598 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.4673, allocations: 8.094 kB / 0.5725 GB, free: 7.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/0.4674, allocations: 19.94 kB / 0.5725 GB, free: 7.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.4674, allocations: 12 kB / 0.5725 GB, free: 7.559 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004921/0.4679, allocations: 258.4 kB / 0.5727 GB, free: 7.309 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.4693, allocations: 1.104 MB / 0.5738 GB, free: 6.145 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005284/0.4699, allocations: 359.4 kB / 0.5742 GB, free: 5.766 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003056/0.4702, allocations: 179.2 kB / 0.5743 GB, free: 5.582 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.4702, allocations: 4 kB / 0.5743 GB, free: 5.578 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.4703, allocations: 46.5 kB / 0.5744 GB, free: 5.523 MB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 1.984e-06/0.4703, allocations: 4 kB / 0.5744 GB, free: 5.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=57): time 0.003658/0.4739, allocations: 2.473 MB / 0.5768 GB, free: 2.781 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.858e-05/0.474, allocations: 110.8 kB / 0.5769 GB, free: 2.648 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000234/0.4743, allocations: 238.6 kB / 0.5771 GB, free: 2.41 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.085e-05/0.4743, allocations: 37.7 kB / 0.5772 GB, free: 2.367 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.4744, allocations: 176.7 kB / 0.5773 GB, free: 2.191 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.4746, allocations: 208.9 kB / 0.5775 GB, free: 1.988 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.105e-05/0.4746, allocations: 8 kB / 0.5775 GB, free: 1.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.4748, allocations: 350.7 kB / 0.5779 GB, free: 1.629 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002594/0.475, allocations: 137.1 kB / 0.578 GB, free: 1.496 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003046/0.4753, allocations: 231.8 kB / 0.5782 GB, free: 1.238 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006093/0.476, allocations: 416.7 kB / 0.5786 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.476, allocations: 4 kB / 0.5786 GB, free: 0.793 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001005/0.477, allocations: 0.5643 MB / 0.5792 GB, free: 220 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.477, allocations: 8 kB / 0.5792 GB, free: 212 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.477, allocations: 4 kB / 0.5792 GB, free: 208 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000342/0.4774, allocations: 122.5 kB / 0.5793 GB, free: 76 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003932/0.4778, allocations: 100 kB / 0.5794 GB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004103/0.4819, allocations: 4.675 MB / 0.584 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002662/0.4822, allocations: 24.38 kB / 0.584 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.391e-05/0.4822, allocations: 23.92 kB / 0.584 GB, free: 10.86 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002306/0.4825, allocations: 169.7 kB / 0.5842 GB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.446e-05/0.4826, allocations: 39.53 kB / 0.5842 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.927e-05/0.4827, allocations: 54.11 kB / 0.5843 GB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.4827, allocations: 4 kB / 0.5843 GB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-05/0.4827, allocations: 8 kB / 0.5843 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.4827, allocations: 7.922 kB / 0.5843 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/0.4847, allocations: 1.338 MB / 0.5856 GB, free: 9.156 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.4847, allocations: 7.938 kB / 0.5856 GB, free: 9.148 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000395/0.4851, allocations: 99.88 kB / 0.5857 GB, free: 9.051 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002727/0.4854, allocations: 98.53 kB / 0.5858 GB, free: 8.945 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.4854, allocations: 12 kB / 0.5858 GB, free: 8.934 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003075/0.4885, allocations: 4.104 MB / 0.5898 GB, free: 4.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.4885, allocations: 7.969 kB / 0.5898 GB, free: 4.422 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.4898, allocations: 0.9418 MB / 0.5907 GB, free: 3.449 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.003e-05/0.4899, allocations: 112.7 kB / 0.5908 GB, free: 3.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.49e-05/0.49, allocations: 20 kB / 0.5909 GB, free: 3.301 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002493/0.4902, allocations: 20 kB / 0.5909 GB, free: 3.281 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.322e-05/0.4903, allocations: 35.94 kB / 0.5909 GB, free: 3.246 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.4904, allocations: 19.98 kB / 0.5909 GB, free: 3.227 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001534/0.4905, allocations: 174 kB / 0.5911 GB, free: 3.055 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4905, allocations: 0 / 0.5911 GB, free: 3.055 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000659/0.4912, allocations: 120 kB / 0.5912 GB, free: 2.938 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.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 (48): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001453/0.4914, allocations: 115.2 kB / 0.5913 GB, free: 2.816 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00117/0.4925, allocations: 0.782 MB / 0.5921 GB, free: 2.004 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.4926, allocations: 0 / 0.5921 GB, free: 2.004 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007431/0.4933, allocations: 0.5819 MB / 0.5926 GB, free: 1.383 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006403/0.494, allocations: 56.61 kB / 0.5927 GB, free: 1.332 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.4958, allocations: 1.335 MB / 0.594 GB, free: 15.94 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.4962, allocations: 0.8241 MB / 0.5948 GB, free: 15.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.48e-05/0.4962, allocations: 31.44 kB / 0.5948 GB, free: 15.06 MB / 426.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4963, allocations: 4 kB / 0.5948 GB, free: 15.06 MB / 426.7 MB Notification: Performance of Templates: time 0.0103/0.5066, allocations: 9.227 MB / 0.6039 GB, free: 5.832 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches