Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001356/0.001357, allocations: 118.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002293/0.002294, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.227/0.227, allocations: 46.12 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 75.88 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4424/0.4438, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004284/0.4481, allocations: 2.364 MB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.4497, allocations: 0.903 MB / 0.5342 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.4498, allocations: 6.688 kB / 0.5342 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002776/0.4501, allocations: 49.2 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001833/0.4503, allocations: 74.39 kB / 0.5343 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000344/0.4506, allocations: 150.9 kB / 0.5344 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003609/0.451, allocations: 352.9 kB / 0.5348 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.4512, allocations: 87.31 kB / 0.5349 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002652/0.4515, allocations: 156.2 kB / 0.535 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002666/0.4518, allocations: 159.1 kB / 0.5352 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.482e-05/0.4518, allocations: 26.84 kB / 0.5352 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.452, allocations: 90.78 kB / 0.5353 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.4522, allocations: 75.28 kB / 0.5353 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.4523, allocations: 138.9 kB / 0.5355 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005044/0.4528, allocations: 382.3 kB / 0.5358 GB, free: 9.906 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.4528, allocations: 0 / 0.5358 GB, free: 9.906 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4528, allocations: 0 / 0.5358 GB, free: 9.906 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.4529, allocations: 0.7188 kB / 0.5358 GB, free: 9.906 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001017/0.4539, allocations: 0.5768 MB / 0.5364 GB, free: 9.379 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.4539, allocations: 10.45 kB / 0.5364 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000193/0.4541, allocations: 35.05 kB / 0.5364 GB, free: 9.363 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003718/0.4545, allocations: 274.2 kB / 0.5367 GB, free: 9.082 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.4545, allocations: 14.19 kB / 0.5367 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.003e-05/0.4546, allocations: 28.03 kB / 0.5367 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005375/0.4551, allocations: 270.8 kB / 0.537 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.4552, allocations: 5.141 kB / 0.537 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/0.4552, allocations: 10.84 kB / 0.537 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.4552, allocations: 8.578 kB / 0.537 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005192/0.4557, allocations: 233.6 kB / 0.5373 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.4572, allocations: 0.7299 MB / 0.538 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005827/0.4578, allocations: 248.1 kB / 0.5382 GB, free: 8.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002691/0.458, allocations: 142.9 kB / 0.5383 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.081e-05/0.4581, allocations: 2.312 kB / 0.5383 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.4581, allocations: 40.72 kB / 0.5384 GB, free: 7.898 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.873e-06/0.4581, allocations: 0 / 0.5384 GB, free: 7.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.003207/0.4613, allocations: 1.403 MB / 0.5397 GB, free: 6.875 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.4614, allocations: 59.91 kB / 0.5398 GB, free: 6.809 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/0.4617, allocations: 212.5 kB / 0.54 GB, free: 6.645 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.356e-05/0.4617, allocations: 33.58 kB / 0.54 GB, free: 6.609 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.007e-05/0.4618, allocations: 137.6 kB / 0.5402 GB, free: 6.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.4619, allocations: 119.6 kB / 0.5403 GB, free: 6.375 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.462, allocations: 71.12 kB / 0.5404 GB, free: 6.324 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.4622, allocations: 336 kB / 0.5407 GB, free: 5.992 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002619/0.4624, allocations: 119 kB / 0.5408 GB, free: 5.934 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002899/0.4627, allocations: 165.1 kB / 0.5409 GB, free: 5.828 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004715/0.4632, allocations: 240.2 kB / 0.5412 GB, free: 5.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4632, allocations: 1.125 kB / 0.5412 GB, free: 5.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008887/0.4641, allocations: 431.3 kB / 0.5416 GB, free: 5.457 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.4642, allocations: 9.844 kB / 0.5416 GB, free: 5.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.4642, allocations: 3.938 kB / 0.5416 GB, free: 5.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004996/0.4647, allocations: 201.2 kB / 0.5418 GB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002314/0.4649, allocations: 52.28 kB / 0.5418 GB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007835/0.4657, allocations: 0.7273 MB / 0.5426 GB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.466, allocations: 34.86 kB / 0.5426 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.405e-05/0.466, allocations: 16.36 kB / 0.5426 GB, free: 4.672 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001659/0.4662, allocations: 154.4 kB / 0.5427 GB, free: 4.527 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.155e-05/0.4663, allocations: 22.34 kB / 0.5428 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.122e-05/0.4664, allocations: 39.14 kB / 0.5428 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.4664, allocations: 3.656 kB / 0.5428 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.4664, allocations: 1.25 kB / 0.5428 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.4664, allocations: 0 / 0.5428 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/0.4681, allocations: 0.9464 MB / 0.5437 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4681, allocations: 0 / 0.5437 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002233/0.4683, allocations: 46.08 kB / 0.5438 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003899/0.4687, allocations: 176.6 kB / 0.5439 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.035e-05/0.4688, allocations: 18.23 kB / 0.544 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006556/0.4694, allocations: 0.6896 MB / 0.5446 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4694, allocations: 1.125 kB / 0.5446 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.4706, allocations: 0.6127 MB / 0.5452 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/0.4707, allocations: 128.3 kB / 0.5454 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.371e-05/0.4708, allocations: 11.75 kB / 0.5454 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.4711, allocations: 34.39 kB / 0.5454 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.4712, allocations: 51.98 kB / 0.5455 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.658e-05/0.4712, allocations: 15.98 kB / 0.5455 GB, free: 2.375 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001303/0.4714, allocations: 149.5 kB / 0.5456 GB, free: 2.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4714, allocations: 0 / 0.5456 GB, free: 2.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003591/0.4717, allocations: 68 kB / 0.5457 GB, free: 2.164 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00085/0.4726, allocations: 372.6 kB / 0.546 GB, free: 1.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007005/0.4733, allocations: 311.5 kB / 0.5463 GB, free: 1.605 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4733, allocations: 4 kB / 0.5463 GB, free: 1.602 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003358/0.4737, allocations: 155.8 kB / 0.5465 GB, free: 1.449 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004254/0.4741, allocations: 44.23 kB / 0.5465 GB, free: 1.406 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.4761, allocations: 0.7689 MB / 0.5473 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003807/0.4765, allocations: 0.7564 MB / 0.548 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.936e-05/0.4766, allocations: 26.3 kB / 0.548 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.339e-05/0.4767, allocations: 27.42 kB / 0.5481 GB, free: 15.77 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4767, allocations: 0 / 0.5481 GB, free: 15.77 MB / 414.1 MB Notification: Performance of Templates: time 0.009815/0.4865, allocations: 5.351 MB / 0.5533 GB, free: 10.43 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches