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.002225/0.002225, allocations: 185.7 kB / 16.41 MB, free: 5.723 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.927/1.927, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001109/0.001109, allocations: 92.52 kB / 270.9 MB, free: 8.395 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.5022/0.5022, allocations: 43.55 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000461/0.0004611, allocations: 15.98 kB / 431.4 MB, free: 6.176 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1271, allocations: 58.85 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4657/0.5929, allocations: 86.96 MB / 0.5636 GB, free: 15.78 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/0.5932, allocations: 75.97 kB / 0.5637 GB, free: 15.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02587/0.6191, allocations: 6.072 MB / 0.5696 GB, free: 9.664 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.6192, allocations: 0 / 0.5696 GB, free: 9.664 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.207e-05/0.6192, allocations: 4 kB / 0.5697 GB, free: 9.66 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001186/0.6204, allocations: 0.5876 MB / 0.5702 GB, free: 9.031 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.6205, allocations: 8.031 kB / 0.5702 GB, free: 9.023 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.6206, allocations: 39.53 kB / 0.5703 GB, free: 8.984 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003878/0.621, allocations: 255.2 kB / 0.5705 GB, free: 8.691 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.694e-05/0.621, allocations: 29 kB / 0.5705 GB, free: 8.664 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.6211, allocations: 51.84 kB / 0.5706 GB, free: 8.613 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009209/0.6221, allocations: 387.2 kB / 0.571 GB, free: 8.199 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.523e-05/0.6221, allocations: 7.984 kB / 0.571 GB, free: 8.191 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.376e-05/0.6222, allocations: 23.94 kB / 0.571 GB, free: 8.168 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.6222, allocations: 8.875 kB / 0.571 GB, free: 8.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007353/0.623, allocations: 235.7 kB / 0.5712 GB, free: 7.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003291/0.6263, allocations: 1.71 MB / 0.5729 GB, free: 6.117 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006563/0.627, allocations: 266.3 kB / 0.5731 GB, free: 5.793 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.496e-05/0.627, allocations: 12.11 kB / 0.5732 GB, free: 5.781 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/0.6271, allocations: 46.5 kB / 0.5732 GB, free: 5.727 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 2.625e-06/0.6271, allocations: 0 / 0.5732 GB, free: 5.727 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.001055/0.6281, allocations: 269 kB / 0.5735 GB, free: 5.457 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.6283, allocations: 214 kB / 0.5737 GB, free: 5.199 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003811/0.6287, allocations: 246 kB / 0.5739 GB, free: 4.953 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.6287, allocations: 33.64 kB / 0.5739 GB, free: 4.914 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002009/0.6289, allocations: 293.8 kB / 0.5742 GB, free: 4.625 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.6291, allocations: 121.4 kB / 0.5743 GB, free: 4.508 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.488e-05/0.6291, allocations: 16 kB / 0.5743 GB, free: 4.492 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.6293, allocations: 334.8 kB / 0.5747 GB, free: 4.156 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003494/0.6296, allocations: 105.2 kB / 0.5748 GB, free: 4.055 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000616/0.6303, allocations: 428.8 kB / 0.5752 GB, free: 3.473 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004817/0.6308, allocations: 163.9 kB / 0.5753 GB, free: 3.312 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.838e-06/0.6308, allocations: 4 kB / 0.5753 GB, free: 3.309 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00136/0.6322, allocations: 0.5253 MB / 0.5758 GB, free: 2.777 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.6322, allocations: 12 kB / 0.5759 GB, free: 2.766 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.6322, allocations: 8 kB / 0.5759 GB, free: 2.758 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.52e-05/0.6323, allocations: 20 kB / 0.5759 GB, free: 2.738 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008641/0.6331, allocations: 151.7 kB / 0.576 GB, free: 2.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.914e-05/0.6332, allocations: 23.91 kB / 0.5761 GB, free: 2.566 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004591/0.6337, allocations: 63.62 kB / 0.5761 GB, free: 2.504 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.816e-05/0.6337, allocations: 36 kB / 0.5761 GB, free: 2.469 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002607/0.634, allocations: 185.5 kB / 0.5763 GB, free: 2.277 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001937/0.6342, allocations: 31.62 kB / 0.5764 GB, free: 2.246 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.292e-05/0.6343, allocations: 33.78 kB / 0.5764 GB, free: 2.215 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.6343, allocations: 8 kB / 0.5764 GB, free: 2.207 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.6343, allocations: 0 / 0.5764 GB, free: 2.207 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.6344, allocations: 4 kB / 0.5764 GB, free: 2.203 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/0.6363, allocations: 0.6475 MB / 0.577 GB, free: 1.492 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.6363, allocations: 0 / 0.577 GB, free: 1.492 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009313/0.6372, allocations: 91.89 kB / 0.5771 GB, free: 1.402 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/0.6373, allocations: 4 kB / 0.5771 GB, free: 1.398 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.685e-05/0.6373, allocations: 11.98 kB / 0.5771 GB, free: 1.387 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.524e-06/0.6373, allocations: 4.625 kB / 0.5771 GB, free: 1.383 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.6373, allocations: 0 / 0.5771 GB, free: 1.383 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.6385, allocations: 0.9457 MB / 0.5781 GB, free: 368 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.6387, allocations: 104.9 kB / 0.5782 GB, free: 244 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.125e-05/0.6387, allocations: 15.95 kB / 0.5782 GB, free: 228 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004955/0.6392, allocations: 15.98 kB / 0.5782 GB, free: 212 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.953e-05/0.6393, allocations: 27.91 kB / 0.5782 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.6394, allocations: 8.547 kB / 0.5782 GB, free: 176 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002656/0.6396, allocations: 182 kB / 0.5784 GB, free: 15.99 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6397, allocations: 0 / 0.5784 GB, free: 15.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009705/0.6406, allocations: 103.7 kB / 0.5785 GB, free: 15.89 MB / 410.7 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 () * 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 (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.0001737/0.6408, allocations: 115.1 kB / 0.5786 GB, free: 15.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008534/0.6417, allocations: 293.7 kB / 0.5789 GB, free: 15.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.6417, allocations: 0 / 0.5789 GB, free: 15.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002919/0.642, allocations: 100.7 kB / 0.579 GB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009214/0.643, allocations: 61.47 kB / 0.579 GB, free: 15.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003755/0.6467, allocations: 1.908 MB / 0.5809 GB, free: 13.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004882/0.6473, allocations: 0.8033 MB / 0.5817 GB, free: 12.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.6474, allocations: 35.42 kB / 0.5817 GB, free: 12.51 MB / 410.7 MB Notification: Performance of SimCode: time 2.755e-06/0.6474, allocations: 4 kB / 0.5817 GB, free: 12.5 MB / 410.7 MB Notification: Performance of Templates: time 0.009234/0.6567, allocations: 3.979 MB / 0.5856 GB, free: 8.535 MB / 410.7 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