Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, 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.001238/0.001238, 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.392/1.392, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2304/0.2304, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 60.09 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.408/0.4092, allocations: 60.81 MB / 0.5189 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002918/0.4122, allocations: 1.657 MB / 0.5205 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002912/0.4125, allocations: 113.9 kB / 0.5206 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.594e-05/0.4126, allocations: 2.156 kB / 0.5206 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.861e-05/0.4127, allocations: 13.52 kB / 0.5206 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000127/0.4128, allocations: 33.7 kB / 0.5207 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001453/0.413, allocations: 29.41 kB / 0.5207 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001769/0.4132, allocations: 132.9 kB / 0.5208 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.4133, allocations: 33.16 kB / 0.5208 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.455e-05/0.4134, allocations: 48.86 kB / 0.5209 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.4135, allocations: 51.72 kB / 0.5209 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.119e-05/0.4136, allocations: 9.312 kB / 0.5209 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.861e-05/0.4136, allocations: 12.84 kB / 0.521 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.312e-05/0.4137, allocations: 23.02 kB / 0.521 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.317e-05/0.4137, allocations: 56.22 kB / 0.521 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.414, allocations: 124.3 kB / 0.5211 GB, free: 2.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.414, allocations: 1.125 kB / 0.5211 GB, free: 2.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.414, allocations: 0 / 0.5211 GB, free: 2.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.414, allocations: 0 / 0.5211 GB, free: 2.059 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005094/0.4145, allocations: 407.3 kB / 0.5215 GB, free: 1.656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.4146, allocations: 9.406 kB / 0.5215 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.779e-05/0.4146, allocations: 15.31 kB / 0.5216 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.4148, allocations: 188.3 kB / 0.5217 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.4148, allocations: 13.39 kB / 0.5218 GB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.754e-05/0.4149, allocations: 21.62 kB / 0.5218 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002415/0.4151, allocations: 130.7 kB / 0.5219 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.4152, allocations: 3.328 kB / 0.5219 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.4152, allocations: 8.969 kB / 0.5219 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.4152, allocations: 2.219 kB / 0.5219 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.4153, allocations: 57.75 kB / 0.522 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006958/0.416, allocations: 0.5432 MB / 0.5225 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001226/0.4162, allocations: 91.2 kB / 0.5226 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.693e-05/0.4162, allocations: 28.75 kB / 0.5226 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.4162, allocations: 9.031 kB / 0.5226 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.4163, allocations: 33.08 kB / 0.5227 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.4163, allocations: 1.156 kB / 0.5227 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005454/0.4168, allocations: 299.5 kB / 0.5229 GB, free: 444 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.4169, allocations: 82.95 kB / 0.523 GB, free: 344 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.051e-05/0.417, allocations: 123.4 kB / 0.5231 GB, free: 232 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.097e-06/0.417, allocations: 25.7 kB / 0.5232 GB, free: 200 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.603e-05/0.417, allocations: 119.4 kB / 0.5233 GB, free: 88 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.301e-05/0.4171, allocations: 33.75 kB / 0.5233 GB, free: 60 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.504e-05/0.4171, allocations: 29.45 kB / 0.5233 GB, free: 36 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.4173, allocations: 323.4 kB / 0.5236 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.464e-05/0.4173, allocations: 23.11 kB / 0.5237 GB, free: 15.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.4174, allocations: 92 kB / 0.5238 GB, free: 15.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.4176, allocations: 120.2 kB / 0.5239 GB, free: 15.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4176, allocations: 1.406 kB / 0.5239 GB, free: 15.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002972/0.4179, allocations: 173 kB / 0.524 GB, free: 15.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.4179, allocations: 5.219 kB / 0.524 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.4179, allocations: 4.312 kB / 0.524 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002062/0.4182, allocations: 43.94 kB / 0.5241 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.4183, allocations: 20.62 kB / 0.5241 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002133/0.4204, allocations: 2.735 MB / 0.5268 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.72e-05/0.4205, allocations: 21.41 kB / 0.5268 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.4205, allocations: 6.062 kB / 0.5268 GB, free: 12.53 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001032/0.4206, allocations: 124.7 kB / 0.5269 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.56e-05/0.4207, allocations: 7.688 kB / 0.5269 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.88e-05/0.4207, allocations: 15.44 kB / 0.5269 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.4207, allocations: 1.156 kB / 0.5269 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.4207, allocations: 1.984 kB / 0.5269 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.4207, allocations: 5.5 kB / 0.527 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002659/0.421, allocations: 198.1 kB / 0.5271 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.421, allocations: 1.375 kB / 0.5271 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.631e-05/0.4211, allocations: 16.28 kB / 0.5272 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.291e-05/0.4212, allocations: 33.73 kB / 0.5272 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.4212, allocations: 5.156 kB / 0.5272 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001827/0.4231, allocations: 2.731 MB / 0.5299 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.4231, allocations: 0.5625 kB / 0.5299 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003362/0.4234, allocations: 314.9 kB / 0.5302 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.469e-05/0.4235, allocations: 80.19 kB / 0.5302 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.4235, allocations: 7.359 kB / 0.5302 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.97e-05/0.4236, allocations: 0 / 0.5302 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.052e-05/0.4236, allocations: 7.203 kB / 0.5303 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.4236, allocations: 3.031 kB / 0.5303 GB, free: 8.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.169e-05/0.4237, allocations: 108.9 kB / 0.5304 GB, free: 8.867 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4237, allocations: 0 / 0.5304 GB, free: 8.867 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003619/0.4241, allocations: 36.94 kB / 0.5304 GB, free: 8.859 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001191/0.4242, allocations: 96.28 kB / 0.5305 GB, free: 8.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005186/0.4247, allocations: 308.3 kB / 0.5308 GB, free: 8.516 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4248, allocations: 0 / 0.5308 GB, free: 8.516 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.425, allocations: 261.7 kB / 0.531 GB, free: 8.277 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004418/0.4255, allocations: 34.84 kB / 0.5311 GB, free: 8.262 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008984/0.4264, allocations: 467.9 kB / 0.5315 GB, free: 7.891 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.4268, allocations: 0.7063 MB / 0.5322 GB, free: 7.195 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.812e-05/0.4268, allocations: 11.12 kB / 0.5322 GB, free: 7.188 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.501e-05/0.4269, allocations: 11.56 kB / 0.5322 GB, free: 7.18 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4269, allocations: 0 / 0.5322 GB, free: 7.18 MB / 398.1 MB Notification: Performance of Templates: time 0.00479/0.4317, allocations: 1.501 MB / 0.5337 GB, free: 6.738 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches