Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001092, allocations: 117.8 kB / 17.79 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001146/0.001146, allocations: 200.6 kB / 18.73 MB, free: 4.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2261/0.2261, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 79.88 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4302/0.4324, allocations: 62.42 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003793/0.4362, allocations: 2.861 MB / 0.5338 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.4374, allocations: 0.7752 MB / 0.5345 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.4376, allocations: 7.844 kB / 0.5345 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001803/0.4378, allocations: 53.42 kB / 0.5346 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002335/0.438, allocations: 124.5 kB / 0.5347 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003195/0.4383, allocations: 114.1 kB / 0.5348 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000473/0.4388, allocations: 435.2 kB / 0.5352 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002819/0.4391, allocations: 145.2 kB / 0.5354 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.4394, allocations: 177.8 kB / 0.5355 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.4396, allocations: 179.5 kB / 0.5357 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.51e-05/0.4397, allocations: 33.47 kB / 0.5357 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.647e-05/0.4398, allocations: 34.41 kB / 0.5358 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.823e-05/0.4399, allocations: 83.34 kB / 0.5358 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000193/0.4401, allocations: 192.2 kB / 0.536 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004813/0.4406, allocations: 447.5 kB / 0.5365 GB, free: 9.398 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.4406, allocations: 4 kB / 0.5365 GB, free: 9.395 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.4406, allocations: 1.062 kB / 0.5365 GB, free: 9.395 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.4406, allocations: 0 / 0.5365 GB, free: 9.395 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001018/0.4416, allocations: 0.6528 MB / 0.5371 GB, free: 8.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.4417, allocations: 9.25 kB / 0.5371 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000259/0.4419, allocations: 64.69 kB / 0.5372 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003763/0.4423, allocations: 279.5 kB / 0.5374 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.882e-05/0.4424, allocations: 27.62 kB / 0.5375 GB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.022e-05/0.4424, allocations: 45.44 kB / 0.5375 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000637/0.4431, allocations: 395 kB / 0.5379 GB, free: 8.199 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.4431, allocations: 3.25 kB / 0.5379 GB, free: 8.199 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.279e-05/0.4432, allocations: 15.34 kB / 0.5379 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.4432, allocations: 10.25 kB / 0.5379 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004342/0.4436, allocations: 222.4 kB / 0.5381 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002173/0.4458, allocations: 1.726 MB / 0.5398 GB, free: 6.527 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004322/0.4462, allocations: 262.2 kB / 0.5401 GB, free: 6.293 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.4464, allocations: 98.55 kB / 0.5402 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.4464, allocations: 3.25 kB / 0.5402 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.4465, allocations: 41.7 kB / 0.5402 GB, free: 6.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.823e-06/0.4465, allocations: 4 kB / 0.5402 GB, free: 6.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006624/0.4472, allocations: 264.9 kB / 0.5405 GB, free: 6.016 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.871e-05/0.4473, allocations: 211 kB / 0.5407 GB, free: 5.766 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002663/0.4475, allocations: 275.1 kB / 0.5409 GB, free: 5.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.4476, allocations: 31.39 kB / 0.5409 GB, free: 5.535 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.4477, allocations: 245.1 kB / 0.5412 GB, free: 5.312 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.196e-05/0.4478, allocations: 116.6 kB / 0.5413 GB, free: 5.211 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.4479, allocations: 99.94 kB / 0.5414 GB, free: 5.145 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.4481, allocations: 342.8 kB / 0.5417 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/0.4483, allocations: 98.66 kB / 0.5418 GB, free: 4.766 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004023/0.4487, allocations: 434.1 kB / 0.5422 GB, free: 4.262 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000673/0.4494, allocations: 0.5648 MB / 0.5428 GB, free: 3.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.4494, allocations: 3.844 kB / 0.5428 GB, free: 3.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008874/0.4503, allocations: 0.5278 MB / 0.5433 GB, free: 3.402 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.4503, allocations: 13.03 kB / 0.5433 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.797e-05/0.4503, allocations: 15.59 kB / 0.5433 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.213e-05/0.4504, allocations: 15.09 kB / 0.5433 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004374/0.4508, allocations: 157.6 kB / 0.5435 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.979e-05/0.4509, allocations: 27.36 kB / 0.5435 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/0.4512, allocations: 66.31 kB / 0.5436 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.665e-05/0.4512, allocations: 31.41 kB / 0.5436 GB, free: 3.297 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001775/0.4514, allocations: 180.2 kB / 0.5438 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.4516, allocations: 40.08 kB / 0.5438 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.545e-05/0.4516, allocations: 34.73 kB / 0.5438 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.4516, allocations: 4.969 kB / 0.5439 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.4516, allocations: 1.344 kB / 0.5439 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.4517, allocations: 2.594 kB / 0.5439 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001223/0.4529, allocations: 0.6448 MB / 0.5445 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.4529, allocations: 6.219 kB / 0.5445 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004361/0.4533, allocations: 92.38 kB / 0.5446 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.613e-06/0.4534, allocations: 3.438 kB / 0.5446 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.4534, allocations: 8.594 kB / 0.5446 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.576e-06/0.4534, allocations: 11.28 kB / 0.5446 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.4534, allocations: 6.141 kB / 0.5446 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008115/0.4542, allocations: 0.8279 MB / 0.5454 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.803e-05/0.4543, allocations: 115.4 kB / 0.5455 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.4544, allocations: 9.031 kB / 0.5455 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003261/0.4547, allocations: 8.812 kB / 0.5455 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.104e-05/0.4548, allocations: 22.75 kB / 0.5456 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.4548, allocations: 11.75 kB / 0.5456 GB, free: 1.617 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001771/0.455, allocations: 185.2 kB / 0.5458 GB, free: 1.488 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.455, allocations: 0 / 0.5458 GB, free: 1.488 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006999/0.4557, allocations: 101.8 kB / 0.5458 GB, free: 1.465 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001389/0.4559, allocations: 111 kB / 0.546 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005853/0.4565, allocations: 295.5 kB / 0.5462 GB, free: 1.227 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4565, allocations: 4 kB / 0.5462 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.4566, allocations: 97.45 kB / 0.5463 GB, free: 1.129 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009573/0.4576, allocations: 84.5 kB / 0.5464 GB, free: 1.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.4598, allocations: 1.526 MB / 0.5479 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005384/0.4603, allocations: 0.8065 MB / 0.5487 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001327/0.4605, allocations: 43.27 kB / 0.5487 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.882e-05/0.4605, allocations: 35.42 kB / 0.5488 GB, free: 14.57 MB / 414.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4605, allocations: 0 / 0.5488 GB, free: 14.57 MB / 414.1 MB Notification: Performance of Templates: time 0.006865/0.4674, allocations: 3.068 MB / 0.5518 GB, free: 11.52 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches