Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001428/0.001427, allocations: 182.8 kB / 15.76 MB, free: 6.367 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.583/1.583, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009264/0.0009267, allocations: 86.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2629/0.2629, allocations: 43.55 MB / 362 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003291/0.0003291, allocations: 8 kB / 431.4 MB, free: 19.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1227, allocations: 58.85 MB / 490.2 MB, free: 8.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4106/0.5333, allocations: 86.97 MB / 0.5637 GB, free: 12.87 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/0.5336, allocations: 73.36 kB / 0.5637 GB, free: 12.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01648/0.5501, allocations: 6.075 MB / 0.5697 GB, free: 7.777 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.949e-06/0.5502, allocations: 0 / 0.5697 GB, free: 7.777 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.073e-05/0.5503, allocations: 11.5 kB / 0.5697 GB, free: 7.77 MB / 378.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.0009464/0.5512, allocations: 0.5704 MB / 0.5702 GB, free: 7.168 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/0.5513, allocations: 8.031 kB / 0.5703 GB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.5514, allocations: 54.77 kB / 0.5703 GB, free: 7.109 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003706/0.5518, allocations: 255.7 kB / 0.5706 GB, free: 6.836 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.5518, allocations: 26.38 kB / 0.5706 GB, free: 6.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.953e-05/0.5519, allocations: 49.08 kB / 0.5706 GB, free: 6.785 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006699/0.5526, allocations: 388.7 kB / 0.571 GB, free: 6.469 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.5526, allocations: 7.984 kB / 0.571 GB, free: 6.461 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.394e-05/0.5527, allocations: 19.33 kB / 0.571 GB, free: 6.453 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.5527, allocations: 12 kB / 0.571 GB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000401/0.5531, allocations: 229.3 kB / 0.5712 GB, free: 6.273 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002138/0.5552, allocations: 1.722 MB / 0.5729 GB, free: 4.645 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004092/0.5557, allocations: 268.6 kB / 0.5732 GB, free: 4.352 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.5557, allocations: 0 / 0.5732 GB, free: 4.352 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.5557, allocations: 42.5 kB / 0.5732 GB, free: 4.305 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.856e-06/0.5557, allocations: 0 / 0.5732 GB, free: 4.305 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006804/0.5564, allocations: 278.9 kB / 0.5735 GB, free: 4.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.5565, allocations: 217.5 kB / 0.5737 GB, free: 3.812 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.5568, allocations: 236.4 kB / 0.5739 GB, free: 3.605 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.5568, allocations: 29.7 kB / 0.574 GB, free: 3.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.5569, allocations: 236.9 kB / 0.5742 GB, free: 3.367 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.096e-05/0.557, allocations: 117.4 kB / 0.5743 GB, free: 3.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.601e-05/0.5571, allocations: 15.25 kB / 0.5743 GB, free: 3.266 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.5572, allocations: 347.5 kB / 0.5746 GB, free: 2.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001887/0.5574, allocations: 100.5 kB / 0.5747 GB, free: 2.859 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004694/0.5579, allocations: 431.7 kB / 0.5751 GB, free: 2.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002789/0.5581, allocations: 172.1 kB / 0.5753 GB, free: 2.203 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/0.5582, allocations: 4 kB / 0.5753 GB, free: 2.199 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000766/0.5589, allocations: 0.5324 MB / 0.5758 GB, free: 1.762 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.559, allocations: 10.66 kB / 0.5758 GB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/0.559, allocations: 15.98 kB / 0.5759 GB, free: 1.738 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.595e-05/0.559, allocations: 20.72 kB / 0.5759 GB, free: 1.719 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004314/0.5595, allocations: 151 kB / 0.576 GB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.388e-05/0.5595, allocations: 23.92 kB / 0.576 GB, free: 1.551 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002812/0.5598, allocations: 61.94 kB / 0.5761 GB, free: 1.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/0.5598, allocations: 31.69 kB / 0.5761 GB, free: 1.473 MB / 378.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.0001743/0.56, allocations: 191.5 kB / 0.5763 GB, free: 1.305 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.5602, allocations: 27.72 kB / 0.5763 GB, free: 1.277 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.433e-05/0.5602, allocations: 34.53 kB / 0.5764 GB, free: 1.262 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.5603, allocations: 8 kB / 0.5764 GB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.5603, allocations: 4 kB / 0.5764 GB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.5603, allocations: 0 / 0.5764 GB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/0.5615, allocations: 0.6525 MB / 0.577 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.5615, allocations: 0 / 0.577 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004371/0.562, allocations: 95.64 kB / 0.5771 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.562, allocations: 4 kB / 0.5771 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.735e-05/0.562, allocations: 11.05 kB / 0.5771 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.892e-06/0.5621, allocations: 4 kB / 0.5771 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5621, allocations: 4 kB / 0.5771 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009299/0.563, allocations: 0.9326 MB / 0.5781 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.796e-05/0.5631, allocations: 108.1 kB / 0.5782 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.679e-05/0.5632, allocations: 15.42 kB / 0.5782 GB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003323/0.5635, allocations: 15.39 kB / 0.5782 GB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.361e-05/0.5636, allocations: 27.34 kB / 0.5782 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.5636, allocations: 8 kB / 0.5782 GB, free: 15.38 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001809/0.5638, allocations: 179.3 kB / 0.5784 GB, free: 15.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5638, allocations: 0 / 0.5784 GB, free: 15.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007583/0.5646, allocations: 104.8 kB / 0.5785 GB, free: 15.14 MB / 394.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.0001635/0.5647, allocations: 110.2 kB / 0.5786 GB, free: 15.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005272/0.5653, allocations: 294.2 kB / 0.5789 GB, free: 14.79 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.5653, allocations: 4 kB / 0.5789 GB, free: 14.79 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001566/0.5655, allocations: 103.8 kB / 0.579 GB, free: 14.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006445/0.5661, allocations: 56.08 kB / 0.579 GB, free: 14.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.5686, allocations: 1.895 MB / 0.5809 GB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004601/0.5691, allocations: 0.7994 MB / 0.5817 GB, free: 11.95 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001967/0.5693, allocations: 47.2 kB / 0.5817 GB, free: 11.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.367e-05/0.5694, allocations: 27.44 kB / 0.5817 GB, free: 11.87 MB / 394.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5694, allocations: 0 / 0.5817 GB, free: 11.87 MB / 394.7 MB Notification: Performance of Templates: time 0.006169/0.5756, allocations: 2.66 MB / 0.5843 GB, free: 9.234 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/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_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches