Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008794/0.0008795, allocations: 174.2 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 225.7 MB / 243.9 MB, free: 8.477 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 88.55 kB / 295.1 MB, free: 9.504 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.419/0.419, allocations: 44.32 MB / 390.5 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000416/0.000416, allocations: 8 kB / 463.1 MB, free: 500 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.3647, allocations: 61.9 MB / 0.5127 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.002461/0.3672, allocations: 2.405 MB / 0.5151 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009176/0.3681, allocations: 0.6896 MB / 0.5158 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001735/0.3683, allocations: 11.34 kB / 0.5158 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.3685, allocations: 42.86 kB / 0.5158 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.3687, allocations: 104.9 kB / 0.5159 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.369, allocations: 81.34 kB / 0.516 GB, free: 35.49 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003399/0.3693, allocations: 424.2 kB / 0.5164 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003212/0.3696, allocations: 162.7 kB / 0.5165 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001986/0.3699, allocations: 144.5 kB / 0.5167 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001953/0.3701, allocations: 167.7 kB / 0.5168 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.182e-05/0.3701, allocations: 19.16 kB / 0.5169 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.882e-05/0.3702, allocations: 19.94 kB / 0.5169 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.188e-05/0.3702, allocations: 63.67 kB / 0.5169 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.3704, allocations: 208.5 kB / 0.5171 GB, free: 34.88 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000354/0.3707, allocations: 408.2 kB / 0.5175 GB, free: 34.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3708, allocations: 3.516 kB / 0.5175 GB, free: 34.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3708, allocations: 0 / 0.5175 GB, free: 34.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.3708, allocations: 3.938 kB / 0.5175 GB, free: 34.74 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.000799/0.3716, allocations: 0.6018 MB / 0.5181 GB, free: 34.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.3716, allocations: 10.03 kB / 0.5181 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.706e-05/0.3717, allocations: 45.45 kB / 0.5182 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002983/0.372, allocations: 295.5 kB / 0.5185 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/0.3721, allocations: 32.34 kB / 0.5185 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.267e-05/0.3722, allocations: 42.91 kB / 0.5185 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007109/0.3729, allocations: 386.2 kB / 0.5189 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/0.3729, allocations: 5.203 kB / 0.5189 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/0.373, allocations: 19.34 kB / 0.5189 GB, free: 33.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.373, allocations: 13.53 kB / 0.5189 GB, free: 33.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004993/0.3735, allocations: 256.1 kB / 0.5192 GB, free: 33.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00151/0.375, allocations: 1.122 MB / 0.5203 GB, free: 32.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004783/0.3755, allocations: 352.9 kB / 0.5206 GB, free: 32.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002555/0.3758, allocations: 177.4 kB / 0.5208 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.3758, allocations: 7.938 kB / 0.5208 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.3758, allocations: 38.56 kB / 0.5208 GB, free: 32.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 2.174e-06/0.3758, allocations: 3.938 kB / 0.5208 GB, free: 32.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.003193/0.379, allocations: 2.465 MB / 0.5232 GB, free: 30.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.3791, allocations: 108.3 kB / 0.5233 GB, free: 30.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.3793, allocations: 237.2 kB / 0.5236 GB, free: 30.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.3793, allocations: 40.67 kB / 0.5236 GB, free: 30.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.279e-05/0.3794, allocations: 187.6 kB / 0.5238 GB, free: 30.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.3795, allocations: 195.6 kB / 0.524 GB, free: 30.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-05/0.3796, allocations: 10.88 kB / 0.524 GB, free: 30.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.949e-05/0.3797, allocations: 349.1 kB / 0.5243 GB, free: 29.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002359/0.3799, allocations: 136.1 kB / 0.5244 GB, free: 29.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/0.3802, allocations: 232.9 kB / 0.5247 GB, free: 29.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000523/0.3807, allocations: 414.1 kB / 0.5251 GB, free: 29.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3807, allocations: 2.969 kB / 0.5251 GB, free: 29.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008989/0.3816, allocations: 0.5645 MB / 0.5256 GB, free: 29.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.3817, allocations: 5.719 kB / 0.5256 GB, free: 29.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.3817, allocations: 2.656 kB / 0.5256 GB, free: 29.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003487/0.382, allocations: 126.7 kB / 0.5257 GB, free: 29.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003615/0.3824, allocations: 98.08 kB / 0.5258 GB, free: 29.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002932/0.3854, allocations: 4.676 MB / 0.5304 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/0.3856, allocations: 22.91 kB / 0.5304 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.3857, allocations: 18.5 kB / 0.5304 GB, free: 24.53 MB / 378.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002187/0.3859, allocations: 173.3 kB / 0.5306 GB, free: 24.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.386, allocations: 37 kB / 0.5306 GB, free: 24.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.627e-05/0.3861, allocations: 47.12 kB / 0.5307 GB, free: 24.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.3861, allocations: 8.5 kB / 0.5307 GB, free: 24.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.02e-05/0.3861, allocations: 2.906 kB / 0.5307 GB, free: 24.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.3861, allocations: 3.281 kB / 0.5307 GB, free: 24.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001717/0.3879, allocations: 1.343 MB / 0.532 GB, free: 23.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.922e-06/0.3879, allocations: 2.938 kB / 0.532 GB, free: 23.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003788/0.3883, allocations: 98.69 kB / 0.5321 GB, free: 23.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002472/0.3885, allocations: 98.12 kB / 0.5322 GB, free: 23.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.758e-05/0.3886, allocations: 14 kB / 0.5322 GB, free: 23.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002114/0.3907, allocations: 4.116 MB / 0.5362 GB, free: 19.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3907, allocations: 0 / 0.5362 GB, free: 19.33 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.3918, allocations: 0.9389 MB / 0.5372 GB, free: 18.76 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.374e-05/0.3919, allocations: 105.3 kB / 0.5373 GB, free: 18.65 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.3919, allocations: 13.59 kB / 0.5373 GB, free: 18.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.3922, allocations: 17.84 kB / 0.5373 GB, free: 18.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.3923, allocations: 53.33 kB / 0.5373 GB, free: 18.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.3923, allocations: 15.94 kB / 0.5374 GB, free: 18.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001268/0.3925, allocations: 168.6 kB / 0.5375 GB, free: 18.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.313e-06/0.3925, allocations: 0 / 0.5375 GB, free: 18.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006366/0.3931, allocations: 125.7 kB / 0.5376 GB, free: 18.48 MB / 378.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001294/0.3932, allocations: 125.4 kB / 0.5378 GB, free: 18.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.3943, allocations: 0.7681 MB / 0.5385 GB, free: 17.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.3943, allocations: 0 / 0.5385 GB, free: 17.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006192/0.395, allocations: 0.5835 MB / 0.5391 GB, free: 17.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006711/0.3957, allocations: 68.28 kB / 0.5391 GB, free: 17.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.3972, allocations: 1.343 MB / 0.5404 GB, free: 16.49 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.3974, allocations: 0.8197 MB / 0.5412 GB, free: 15.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001356/0.3976, allocations: 34.34 kB / 0.5413 GB, free: 15.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.712e-05/0.3976, allocations: 36.22 kB / 0.5413 GB, free: 15.77 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3976, allocations: 0 / 0.5413 GB, free: 15.77 MB / 378.7 MB Notification: Performance of Templates: time 0.007299/0.4049, allocations: 4.144 MB / 0.5454 GB, free: 15.5 MB / 378.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