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.001575/0.001575, allocations: 112.8 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.002075/0.002075, allocations: 184.8 kB / 18.7 MB, free: 4.359 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.443/1.443, 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.2119/0.2119, allocations: 44.19 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 59.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4512/0.4525, allocations: 60.83 MB / 0.5189 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.00366/0.4562, allocations: 2.838 MB / 0.5217 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.4574, allocations: 0.7128 MB / 0.5224 GB, free: 1.348 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.4575, allocations: 11.44 kB / 0.5224 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001779/0.4577, allocations: 64.09 kB / 0.5224 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002212/0.458, allocations: 124 kB / 0.5225 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002805/0.4583, allocations: 93.88 kB / 0.5226 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004348/0.4587, allocations: 445.5 kB / 0.5231 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003141/0.459, allocations: 189.3 kB / 0.5232 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.4593, allocations: 170.3 kB / 0.5234 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002437/0.4595, allocations: 195.3 kB / 0.5236 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.649e-05/0.4596, allocations: 35.62 kB / 0.5236 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.687e-05/0.4596, allocations: 35.44 kB / 0.5237 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.664e-05/0.4597, allocations: 84.12 kB / 0.5237 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001895/0.4599, allocations: 203.4 kB / 0.5239 GB, free: 492 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004819/0.4604, allocations: 449 kB / 0.5244 GB, free: 308 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.4604, allocations: 1.5 kB / 0.5244 GB, free: 308 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.4604, allocations: 0 / 0.5244 GB, free: 308 kB / 382.1 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.4604, allocations: 0 / 0.5244 GB, free: 308 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.001082/0.4615, allocations: 0.6647 MB / 0.525 GB, free: 15.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.4616, allocations: 10.78 kB / 0.525 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.919e-05/0.4617, allocations: 40.25 kB / 0.5251 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.4621, allocations: 292.3 kB / 0.5253 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.767e-05/0.4621, allocations: 27.56 kB / 0.5254 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.101e-05/0.4622, allocations: 50.52 kB / 0.5254 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007423/0.4629, allocations: 384.6 kB / 0.5258 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.463, allocations: 6.031 kB / 0.5258 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.624e-05/0.463, allocations: 14.75 kB / 0.5258 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.463, allocations: 14.45 kB / 0.5258 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005506/0.4636, allocations: 250.6 kB / 0.5261 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001725/0.4653, allocations: 1.103 MB / 0.5271 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005335/0.4659, allocations: 344.9 kB / 0.5275 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000284/0.4662, allocations: 169.5 kB / 0.5276 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.4662, allocations: 8.125 kB / 0.5276 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.4662, allocations: 41.31 kB / 0.5277 GB, free: 13.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.995e-06/0.4663, allocations: 0 / 0.5277 GB, free: 13.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.003915/0.4702, allocations: 2.455 MB / 0.5301 GB, free: 11.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.4703, allocations: 108.2 kB / 0.5302 GB, free: 11.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002484/0.4705, allocations: 246.4 kB / 0.5304 GB, free: 11.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.4706, allocations: 36.55 kB / 0.5304 GB, free: 11.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.4707, allocations: 180.6 kB / 0.5306 GB, free: 11.45 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.4708, allocations: 203 kB / 0.5308 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.471, allocations: 87.66 kB / 0.5309 GB, free: 11.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.4711, allocations: 346.2 kB / 0.5312 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002744/0.4714, allocations: 130.7 kB / 0.5313 GB, free: 10.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003359/0.4718, allocations: 230.8 kB / 0.5316 GB, free: 10.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006476/0.4724, allocations: 389.3 kB / 0.5319 GB, free: 10.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.4724, allocations: 1.125 kB / 0.5319 GB, free: 10.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001017/0.4734, allocations: 0.5612 MB / 0.5325 GB, free: 10.08 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.4735, allocations: 5.656 kB / 0.5325 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.4735, allocations: 2.781 kB / 0.5325 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003696/0.4739, allocations: 129.5 kB / 0.5326 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003904/0.4743, allocations: 97.09 kB / 0.5327 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004514/0.4788, allocations: 5.208 MB / 0.5378 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.4791, allocations: 25.02 kB / 0.5378 GB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.698e-05/0.4792, allocations: 18.25 kB / 0.5378 GB, free: 4.836 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.0002866/0.4795, allocations: 169.2 kB / 0.538 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.4796, allocations: 37.81 kB / 0.538 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.4797, allocations: 43.86 kB / 0.5381 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.4798, allocations: 6.688 kB / 0.5381 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.406e-05/0.4798, allocations: 8.125 kB / 0.5381 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.4798, allocations: 3.984 kB / 0.5381 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002465/0.4823, allocations: 1.336 MB / 0.5394 GB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.4823, allocations: 1.094 kB / 0.5394 GB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004499/0.4827, allocations: 90.83 kB / 0.5395 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000309/0.4831, allocations: 95.39 kB / 0.5396 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.21e-05/0.4831, allocations: 24.45 kB / 0.5396 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00369/0.4868, allocations: 4.419 MB / 0.5439 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.4868, allocations: 5.156 kB / 0.5439 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001451/0.4883, allocations: 0.9256 MB / 0.5448 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001444/0.4885, allocations: 108.2 kB / 0.5449 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.519e-05/0.4885, allocations: 11.94 kB / 0.5449 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002845/0.4888, allocations: 14.8 kB / 0.545 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.4889, allocations: 56.34 kB / 0.545 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.232e-05/0.489, allocations: 14.78 kB / 0.545 GB, free: 14.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002334/0.4892, allocations: 169.8 kB / 0.5452 GB, free: 14.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4892, allocations: 1.125 kB / 0.5452 GB, free: 14.08 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008596/0.4901, allocations: 120.6 kB / 0.5453 GB, free: 14.06 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.0001723/0.4903, allocations: 116 kB / 0.5454 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.4917, allocations: 0.7691 MB / 0.5462 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.774e-05/0.4918, allocations: 192 / 0.5462 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008886/0.4927, allocations: 0.5806 MB / 0.5467 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007444/0.4934, allocations: 59.41 kB / 0.5468 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.4956, allocations: 1.075 MB / 0.5478 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005268/0.4962, allocations: 0.8193 MB / 0.5486 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001613/0.4963, allocations: 29.41 kB / 0.5487 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.65e-05/0.4964, allocations: 28.44 kB / 0.5487 GB, free: 11.36 MB / 414.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4964, allocations: 0 / 0.5487 GB, free: 11.36 MB / 414.1 MB Notification: Performance of Templates: time 0.01133/0.5078, allocations: 4.564 MB / 0.5531 GB, free: 7.379 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