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.00109/0.001091, allocations: 117.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001122/0.001122, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2301/0.2301, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 71.88 kB / 481.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4391/0.4404, allocations: 62.44 MB / 0.531 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004216/0.4447, allocations: 2.849 MB / 0.5338 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.4464, allocations: 0.7801 MB / 0.5345 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002152/0.4466, allocations: 6.969 kB / 0.5345 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002045/0.4469, allocations: 58.16 kB / 0.5346 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002582/0.4472, allocations: 133.8 kB / 0.5347 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003651/0.4475, allocations: 101.6 kB / 0.5348 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004817/0.448, allocations: 442.8 kB / 0.5352 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000284/0.4483, allocations: 142.2 kB / 0.5354 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003045/0.4486, allocations: 177.5 kB / 0.5355 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002428/0.4489, allocations: 175.9 kB / 0.5357 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.978e-05/0.4489, allocations: 32.16 kB / 0.5357 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001107/0.4491, allocations: 36.16 kB / 0.5358 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.217e-05/0.4491, allocations: 83 kB / 0.5359 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001968/0.4493, allocations: 199.6 kB / 0.536 GB, free: 9.922 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005357/0.4499, allocations: 444.2 kB / 0.5365 GB, free: 9.605 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.4499, allocations: 0 / 0.5365 GB, free: 9.605 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4499, allocations: 0 / 0.5365 GB, free: 9.605 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.4499, allocations: 0 / 0.5365 GB, free: 9.605 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.0009993/0.4509, allocations: 0.6536 MB / 0.5371 GB, free: 9.031 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.451, allocations: 12.59 kB / 0.5371 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00028/0.4513, allocations: 57.2 kB / 0.5372 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.4517, allocations: 278.2 kB / 0.5374 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.086e-05/0.4517, allocations: 27.69 kB / 0.5375 GB, free: 8.711 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.344e-05/0.4518, allocations: 46.3 kB / 0.5375 GB, free: 8.691 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006175/0.4524, allocations: 395.2 kB / 0.5379 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/0.4525, allocations: 14.45 kB / 0.5379 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.322e-05/0.4525, allocations: 16.47 kB / 0.5379 GB, free: 8.391 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.4525, allocations: 9.594 kB / 0.5379 GB, free: 8.391 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000421/0.4529, allocations: 219.6 kB / 0.5381 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.4551, allocations: 1.715 MB / 0.5398 GB, free: 6.742 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004145/0.4556, allocations: 261.2 kB / 0.5401 GB, free: 6.508 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.4557, allocations: 102.9 kB / 0.5402 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.4558, allocations: 2.531 kB / 0.5402 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.4558, allocations: 50.59 kB / 0.5402 GB, free: 6.363 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.353e-06/0.4558, allocations: 0 / 0.5402 GB, free: 6.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006545/0.4565, allocations: 256.5 kB / 0.5405 GB, free: 6.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.4566, allocations: 218 kB / 0.5407 GB, free: 5.973 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.4568, allocations: 276.6 kB / 0.5409 GB, free: 5.777 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.4569, allocations: 35.05 kB / 0.541 GB, free: 5.738 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.457, allocations: 241 kB / 0.5412 GB, free: 5.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.7e-05/0.4571, allocations: 116.4 kB / 0.5413 GB, free: 5.418 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.4573, allocations: 96.5 kB / 0.5414 GB, free: 5.355 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.4574, allocations: 349.8 kB / 0.5417 GB, free: 5.012 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.4576, allocations: 103.4 kB / 0.5418 GB, free: 4.965 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004669/0.4581, allocations: 427.5 kB / 0.5422 GB, free: 4.469 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007/0.4588, allocations: 0.5713 MB / 0.5428 GB, free: 3.879 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.699e-06/0.4588, allocations: 3.594 kB / 0.5428 GB, free: 3.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008902/0.4597, allocations: 0.528 MB / 0.5433 GB, free: 3.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.4598, allocations: 9.625 kB / 0.5433 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.682e-05/0.4598, allocations: 11.91 kB / 0.5433 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.72e-05/0.4598, allocations: 15.22 kB / 0.5433 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004855/0.4603, allocations: 149.7 kB / 0.5435 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.17e-05/0.4604, allocations: 27.19 kB / 0.5435 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/0.4607, allocations: 66.42 kB / 0.5436 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-05/0.4608, allocations: 31.25 kB / 0.5436 GB, free: 3.508 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.0002247/0.461, allocations: 189.1 kB / 0.5438 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.4612, allocations: 32.31 kB / 0.5438 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.98e-05/0.4613, allocations: 34.45 kB / 0.5438 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.076e-06/0.4613, allocations: 3.594 kB / 0.5439 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.4613, allocations: 2.469 kB / 0.5439 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.4613, allocations: 6.547 kB / 0.5439 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001423/0.4628, allocations: 0.6476 MB / 0.5445 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.4628, allocations: 3.125 kB / 0.5445 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004697/0.4633, allocations: 87.83 kB / 0.5446 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.435e-06/0.4633, allocations: 7.609 kB / 0.5446 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.445e-05/0.4633, allocations: 9.594 kB / 0.5446 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-05/0.4633, allocations: 11.69 kB / 0.5446 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.4633, allocations: 2.312 kB / 0.5446 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009422/0.4643, allocations: 0.8352 MB / 0.5454 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.4644, allocations: 107.1 kB / 0.5455 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.052e-05/0.4645, allocations: 8.531 kB / 0.5455 GB, free: 1.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.4648, allocations: 18.17 kB / 0.5456 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.518e-05/0.4649, allocations: 22.44 kB / 0.5456 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.4649, allocations: 6.531 kB / 0.5456 GB, free: 1.824 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002425/0.4652, allocations: 189 kB / 0.5458 GB, free: 1.691 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.024e-06/0.4652, allocations: 5.406 kB / 0.5458 GB, free: 1.688 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009288/0.4661, allocations: 106 kB / 0.5459 GB, free: 1.66 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.0001497/0.4663, allocations: 98.62 kB / 0.546 GB, free: 1.566 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006032/0.4669, allocations: 302.4 kB / 0.5462 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4669, allocations: 3.938 kB / 0.5463 GB, free: 1.391 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.4671, allocations: 92.27 kB / 0.5463 GB, free: 1.301 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000939/0.468, allocations: 76.39 kB / 0.5464 GB, free: 1.227 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.4705, allocations: 1.534 MB / 0.5479 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00039/0.4709, allocations: 0.8065 MB / 0.5487 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001452/0.4711, allocations: 43.25 kB / 0.5487 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.914e-05/0.4711, allocations: 31.44 kB / 0.5488 GB, free: 14.74 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4711, allocations: 0 / 0.5488 GB, free: 14.74 MB / 414.1 MB Notification: Performance of Templates: time 0.00687/0.478, allocations: 3.002 MB / 0.5517 GB, free: 11.76 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