Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001824/0.001824, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 221.5 MB / 230.7 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008407/0.0008407, allocations: 99.47 kB / 281.6 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1892/0.1892, allocations: 44.16 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.58e-05/1.574e-05, allocations: 224 / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1248, allocations: 61.92 MB / 0.4947 GB, free: 1.262 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4227/0.5475, allocations: 87.32 MB / 0.58 GB, free: 9.207 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.5478, allocations: 67.97 kB / 0.58 GB, free: 9.141 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01543/0.5633, allocations: 6.392 MB / 0.5863 GB, free: 2.715 MB / 394.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.5633, allocations: 4 kB / 0.5863 GB, free: 2.711 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.5633, allocations: 8 kB / 0.5863 GB, free: 2.703 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.0006383/0.564, allocations: 0.5713 MB / 0.5868 GB, free: 2.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.374e-05/0.564, allocations: 15.98 kB / 0.5868 GB, free: 2.074 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.52e-05/0.5641, allocations: 39.53 kB / 0.5869 GB, free: 2.035 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00024/0.5643, allocations: 287.2 kB / 0.5872 GB, free: 1.711 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.5643, allocations: 12 kB / 0.5872 GB, free: 1.699 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.281e-05/0.5644, allocations: 27.91 kB / 0.5872 GB, free: 1.672 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003121/0.5647, allocations: 190.3 kB / 0.5874 GB, free: 1.484 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004207/0.5651, allocations: 296.7 kB / 0.5877 GB, free: 1.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.5651, allocations: 3.938 kB / 0.5877 GB, free: 1.176 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.5652, allocations: 3.828 kB / 0.5877 GB, free: 1.176 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.5652, allocations: 16 kB / 0.5877 GB, free: 1.16 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.5663, allocations: 1.024 MB / 0.5887 GB, free: 92 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000346/0.5667, allocations: 303.6 kB / 0.589 GB, free: 15.76 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.5669, allocations: 151.9 kB / 0.5891 GB, free: 15.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.5669, allocations: 4 kB / 0.5891 GB, free: 15.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.5669, allocations: 42.5 kB / 0.5892 GB, free: 15.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 1.423e-06/0.5669, allocations: 0 / 0.5892 GB, free: 15.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=57): time 0.002546/0.5695, allocations: 2.127 MB / 0.5912 GB, free: 13.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.5695, allocations: 106.8 kB / 0.5913 GB, free: 13.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.5697, allocations: 158 kB / 0.5915 GB, free: 12.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.082e-05/0.5697, allocations: 25.7 kB / 0.5915 GB, free: 12.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/0.5698, allocations: 197 kB / 0.5917 GB, free: 12.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.5699, allocations: 189.1 kB / 0.5919 GB, free: 12.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.453e-05/0.5699, allocations: 4 kB / 0.5919 GB, free: 12.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.5701, allocations: 346.8 kB / 0.5922 GB, free: 12.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.5702, allocations: 101.1 kB / 0.5923 GB, free: 12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.5704, allocations: 194.8 kB / 0.5925 GB, free: 11.78 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/0.5706, allocations: 138.8 kB / 0.5926 GB, free: 11.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.5706, allocations: 0 / 0.5926 GB, free: 11.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007084/0.5714, allocations: 473.2 kB / 0.5931 GB, free: 11.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.5714, allocations: 4 kB / 0.5931 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.5714, allocations: 4 kB / 0.5931 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002852/0.5717, allocations: 122.4 kB / 0.5932 GB, free: 11.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003493/0.572, allocations: 99.88 kB / 0.5933 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003064/0.5751, allocations: 4.483 MB / 0.5977 GB, free: 6.102 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.5753, allocations: 8 kB / 0.5977 GB, free: 6.094 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.5753, allocations: 28.05 kB / 0.5977 GB, free: 6.066 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 () * 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 8.961e-05/0.5754, allocations: 108.9 kB / 0.5978 GB, free: 5.953 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.992e-05/0.5755, allocations: 35.62 kB / 0.5978 GB, free: 5.918 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.59e-05/0.5756, allocations: 37.95 kB / 0.5979 GB, free: 5.883 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.5756, allocations: 4 kB / 0.5979 GB, free: 5.879 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.5756, allocations: 4 kB / 0.5979 GB, free: 5.875 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.5756, allocations: 0 / 0.5979 GB, free: 5.875 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.5771, allocations: 1.195 MB / 0.5991 GB, free: 4.617 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.5771, allocations: 0 / 0.5991 GB, free: 4.617 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003828/0.5775, allocations: 104 kB / 0.5992 GB, free: 4.516 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002243/0.5778, allocations: 90.52 kB / 0.5992 GB, free: 4.418 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.5778, allocations: 4 kB / 0.5992 GB, free: 4.414 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002364/0.5802, allocations: 3.93 MB / 0.6031 GB, free: 144 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.5802, allocations: 8.094 kB / 0.6031 GB, free: 136 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009133/0.5811, allocations: 0.8935 MB / 0.604 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.226e-05/0.5812, allocations: 100.7 kB / 0.6041 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.44e-05/0.5812, allocations: 4 kB / 0.6041 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.5814, allocations: 15.98 kB / 0.6041 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.416e-05/0.5815, allocations: 43.94 kB / 0.6041 GB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.5815, allocations: 12 kB / 0.6041 GB, free: 14.98 MB / 426.7 MB Notification: Performance of sorting global known variables: time 8.251e-05/0.5816, allocations: 128.4 kB / 0.6043 GB, free: 14.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5816, allocations: 0 / 0.6043 GB, free: 14.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005686/0.5822, allocations: 100 kB / 0.6044 GB, free: 14.76 MB / 426.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 () * 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.0001251/0.5823, allocations: 111.2 kB / 0.6045 GB, free: 14.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007955/0.5831, allocations: 0.6689 MB / 0.6051 GB, free: 13.94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5832, allocations: 0 / 0.6051 GB, free: 13.94 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000554/0.5837, allocations: 0.5284 MB / 0.6056 GB, free: 13.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000404/0.5841, allocations: 40.41 kB / 0.6057 GB, free: 13.35 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.5854, allocations: 0.8954 MB / 0.6065 GB, free: 12.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/0.5858, allocations: 0.8281 MB / 0.6074 GB, free: 11.56 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.5859, allocations: 27.28 kB / 0.6074 GB, free: 11.53 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.574e-05/0.5859, allocations: 35.44 kB / 0.6074 GB, free: 11.5 MB / 426.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5859, allocations: 0 / 0.6074 GB, free: 11.5 MB / 426.7 MB Notification: Performance of Templates: time 0.006548/0.5925, allocations: 3.676 MB / 0.611 GB, free: 7.836 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches