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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001134, allocations: 113.4 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 180.1 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2393/0.2393, allocations: 44.19 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 59.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4488/0.4501, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.004397/0.4546, allocations: 2.835 MB / 0.5217 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001608/0.4562, allocations: 0.7126 MB / 0.5224 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001886/0.4564, allocations: 8.031 kB / 0.5224 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000229/0.4567, allocations: 65.34 kB / 0.5224 GB, free: 1.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002545/0.457, allocations: 122.5 kB / 0.5225 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003144/0.4573, allocations: 97.47 kB / 0.5226 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005524/0.4578, allocations: 440.5 kB / 0.5231 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003729/0.4582, allocations: 189.3 kB / 0.5232 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002679/0.4585, allocations: 175.2 kB / 0.5234 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002878/0.4588, allocations: 190.5 kB / 0.5236 GB, free: 420 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.299e-05/0.4589, allocations: 35.75 kB / 0.5236 GB, free: 420 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.769e-05/0.459, allocations: 38.62 kB / 0.5237 GB, free: 416 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.965e-05/0.4591, allocations: 80.16 kB / 0.5237 GB, free: 360 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002547/0.4593, allocations: 209.1 kB / 0.5239 GB, free: 232 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007054/0.46, allocations: 448.9 kB / 0.5244 GB, free: 52 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.4601, allocations: 0 / 0.5244 GB, free: 52 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4601, allocations: 0 / 0.5244 GB, free: 52 kB / 382.1 MB Notification: Performance of Transformations before backend: time 2.257e-05/0.4601, allocations: 0 / 0.5244 GB, free: 52 kB / 382.1 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.001327/0.4614, allocations: 0.6614 MB / 0.525 GB, free: 15.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.215e-05/0.4615, allocations: 12.78 kB / 0.525 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.912e-05/0.4616, allocations: 44.62 kB / 0.5251 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004859/0.4621, allocations: 297.3 kB / 0.5253 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.4621, allocations: 29.44 kB / 0.5254 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.347e-05/0.4622, allocations: 36.98 kB / 0.5254 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000881/0.4631, allocations: 389.3 kB / 0.5258 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.233e-05/0.4632, allocations: 5.281 kB / 0.5258 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.527e-05/0.4632, allocations: 19.62 kB / 0.5258 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.388e-05/0.4633, allocations: 13.61 kB / 0.5258 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006302/0.4639, allocations: 241.8 kB / 0.526 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.466, allocations: 1.099 MB / 0.5271 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006578/0.4667, allocations: 348.1 kB / 0.5274 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003396/0.467, allocations: 178.4 kB / 0.5276 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.337e-05/0.4671, allocations: 4.125 kB / 0.5276 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.4671, allocations: 45.25 kB / 0.5277 GB, free: 13.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 1.684e-06/0.4671, allocations: 3.938 kB / 0.5277 GB, free: 13.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.004291/0.4714, allocations: 2.444 MB / 0.5301 GB, free: 11.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.239e-05/0.4715, allocations: 112.5 kB / 0.5302 GB, free: 11.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003999/0.4719, allocations: 241.8 kB / 0.5304 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.615e-05/0.472, allocations: 37.08 kB / 0.5304 GB, free: 11.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.4722, allocations: 188.5 kB / 0.5306 GB, free: 11.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.4724, allocations: 198.9 kB / 0.5308 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.4725, allocations: 83.91 kB / 0.5309 GB, free: 11.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.4727, allocations: 346.4 kB / 0.5312 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002875/0.473, allocations: 130.6 kB / 0.5313 GB, free: 10.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/0.4733, allocations: 231.2 kB / 0.5316 GB, free: 10.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006411/0.474, allocations: 402.1 kB / 0.5319 GB, free: 10.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.474, allocations: 0 / 0.5319 GB, free: 10.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00105/0.475, allocations: 0.5565 MB / 0.5325 GB, free: 9.875 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.4751, allocations: 6.031 kB / 0.5325 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.4751, allocations: 3.031 kB / 0.5325 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003841/0.4755, allocations: 121.1 kB / 0.5326 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000396/0.4759, allocations: 103.4 kB / 0.5327 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005213/0.4811, allocations: 5.206 MB / 0.5378 GB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003447/0.4815, allocations: 20.3 kB / 0.5378 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/0.4815, allocations: 18.16 kB / 0.5378 GB, free: 4.641 MB / 398.1 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.0002846/0.4818, allocations: 169.5 kB / 0.538 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.4819, allocations: 34 kB / 0.538 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001116/0.482, allocations: 48.55 kB / 0.5381 GB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.482, allocations: 6.594 kB / 0.5381 GB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.028e-05/0.4821, allocations: 11.88 kB / 0.5381 GB, free: 4.418 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.4821, allocations: 7.969 kB / 0.5381 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/0.4841, allocations: 1.328 MB / 0.5394 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.4841, allocations: 1.188 kB / 0.5394 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003931/0.4845, allocations: 98.7 kB / 0.5395 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002768/0.4848, allocations: 91.39 kB / 0.5396 GB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.26e-05/0.4849, allocations: 20.39 kB / 0.5396 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003775/0.4886, allocations: 4.423 MB / 0.5439 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.4887, allocations: 6.141 kB / 0.5439 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.4902, allocations: 0.9291 MB / 0.5448 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.4903, allocations: 103.8 kB / 0.5449 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.659e-05/0.4903, allocations: 12.28 kB / 0.5449 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.4906, allocations: 18.64 kB / 0.545 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.4908, allocations: 43.47 kB / 0.545 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/0.4908, allocations: 19.25 kB / 0.545 GB, free: 14.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002207/0.491, allocations: 178.6 kB / 0.5452 GB, free: 13.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.491, allocations: 1.156 kB / 0.5452 GB, free: 13.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008762/0.4919, allocations: 116.6 kB / 0.5453 GB, free: 13.86 MB / 414.1 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.0003248/0.4922, allocations: 115.9 kB / 0.5454 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.4941, allocations: 0.7697 MB / 0.5462 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4942, allocations: 3.938 kB / 0.5462 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.4952, allocations: 0.5806 MB / 0.5467 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007245/0.4959, allocations: 62.11 kB / 0.5468 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002368/0.4983, allocations: 1.071 MB / 0.5478 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000529/0.4988, allocations: 0.8225 MB / 0.5486 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001353/0.499, allocations: 28.88 kB / 0.5487 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.779e-05/0.4991, allocations: 28.75 kB / 0.5487 GB, free: 11.16 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4991, allocations: 0 / 0.5487 GB, free: 11.16 MB / 414.1 MB Notification: Performance of Templates: time 0.01014/0.5092, allocations: 4.693 MB / 0.5533 GB, free: 7.129 MB / 414.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches