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.001223/0.001223, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001427/0.001427, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2471/0.2471, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 75.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4612/0.4635, allocations: 62.43 MB / 0.531 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004294/0.4678, allocations: 2.364 MB / 0.5333 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.4693, allocations: 0.9052 MB / 0.5342 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.737e-05/0.4694, allocations: 8.594 kB / 0.5342 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001982/0.4696, allocations: 55.78 kB / 0.5342 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001653/0.4698, allocations: 70.83 kB / 0.5343 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.4701, allocations: 143.4 kB / 0.5344 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003952/0.4705, allocations: 353.4 kB / 0.5348 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001872/0.4707, allocations: 85.62 kB / 0.5349 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002875/0.471, allocations: 156.1 kB / 0.535 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002656/0.4713, allocations: 162.3 kB / 0.5352 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.949e-05/0.4714, allocations: 28.09 kB / 0.5352 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001793/0.4716, allocations: 87.22 kB / 0.5353 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.4717, allocations: 74.33 kB / 0.5353 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.4719, allocations: 135.2 kB / 0.5355 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005102/0.4724, allocations: 385.1 kB / 0.5358 GB, free: 10.12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.4724, allocations: 0 / 0.5358 GB, free: 10.12 MB / 398.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.4724, allocations: 0 / 0.5358 GB, free: 10.12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.88e-06/0.4724, allocations: 1.156 kB / 0.5358 GB, free: 10.12 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.0009305/0.4733, allocations: 0.5869 MB / 0.5364 GB, free: 9.582 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.4734, allocations: 11.08 kB / 0.5364 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002371/0.4736, allocations: 34.66 kB / 0.5364 GB, free: 9.566 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004068/0.4741, allocations: 274.2 kB / 0.5367 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.4741, allocations: 19.38 kB / 0.5367 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.946e-05/0.4742, allocations: 23.06 kB / 0.5368 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000572/0.4747, allocations: 270.7 kB / 0.537 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.4748, allocations: 5.047 kB / 0.537 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/0.4748, allocations: 14.05 kB / 0.537 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.4748, allocations: 5.406 kB / 0.537 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005539/0.4754, allocations: 233.7 kB / 0.5373 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001477/0.4769, allocations: 0.7302 MB / 0.538 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006626/0.4775, allocations: 249.7 kB / 0.5382 GB, free: 8.223 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003342/0.4779, allocations: 139 kB / 0.5383 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/0.4779, allocations: 2.344 kB / 0.5383 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.478, allocations: 36.75 kB / 0.5384 GB, free: 8.105 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 3.286e-06/0.478, allocations: 0 / 0.5384 GB, free: 8.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.003285/0.4813, allocations: 1.416 MB / 0.5398 GB, free: 7.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.4813, allocations: 54.62 kB / 0.5398 GB, free: 7.008 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/0.4816, allocations: 213.1 kB / 0.54 GB, free: 6.844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.4816, allocations: 32.14 kB / 0.54 GB, free: 6.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.4817, allocations: 142.5 kB / 0.5402 GB, free: 6.676 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.479e-05/0.4818, allocations: 120.5 kB / 0.5403 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.482, allocations: 67.34 kB / 0.5404 GB, free: 6.523 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.4822, allocations: 344.4 kB / 0.5407 GB, free: 6.184 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002609/0.4824, allocations: 118.3 kB / 0.5408 GB, free: 6.125 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003187/0.4827, allocations: 165 kB / 0.541 GB, free: 6.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004823/0.4832, allocations: 248.5 kB / 0.5412 GB, free: 5.871 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4833, allocations: 1.031 kB / 0.5412 GB, free: 5.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000863/0.4841, allocations: 423.5 kB / 0.5416 GB, free: 5.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.4842, allocations: 4.719 kB / 0.5416 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.4842, allocations: 5 kB / 0.5416 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004873/0.4847, allocations: 201.4 kB / 0.5418 GB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002236/0.4849, allocations: 56.44 kB / 0.5419 GB, free: 5.523 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000745/0.4857, allocations: 0.7259 MB / 0.5426 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.4859, allocations: 38.7 kB / 0.5426 GB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.22e-05/0.486, allocations: 17.7 kB / 0.5426 GB, free: 4.863 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.0001614/0.4861, allocations: 144.8 kB / 0.5428 GB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.305e-05/0.4862, allocations: 28.08 kB / 0.5428 GB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.052e-05/0.4863, allocations: 34.36 kB / 0.5428 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.4863, allocations: 4 kB / 0.5428 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.4863, allocations: 0 / 0.5428 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.4863, allocations: 5.25 kB / 0.5428 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001653/0.488, allocations: 0.9426 MB / 0.5437 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.488, allocations: 4.062 kB / 0.5437 GB, free: 3.934 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002242/0.4882, allocations: 49.22 kB / 0.5438 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003739/0.4886, allocations: 176.5 kB / 0.544 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/0.4887, allocations: 10.95 kB / 0.544 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006594/0.4893, allocations: 0.6927 MB / 0.5447 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4894, allocations: 1.125 kB / 0.5447 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.4905, allocations: 0.6154 MB / 0.5453 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001443/0.4906, allocations: 132.9 kB / 0.5454 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.009e-05/0.4907, allocations: 11.94 kB / 0.5454 GB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002718/0.491, allocations: 43.95 kB / 0.5454 GB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.4911, allocations: 47.92 kB / 0.5455 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.603e-05/0.4911, allocations: 11.98 kB / 0.5455 GB, free: 2.488 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000145/0.4913, allocations: 157.5 kB / 0.5456 GB, free: 2.336 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4913, allocations: 0 / 0.5456 GB, free: 2.336 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003544/0.4916, allocations: 71.94 kB / 0.5457 GB, free: 2.266 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.0008158/0.4925, allocations: 364.8 kB / 0.5461 GB, free: 2.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007158/0.4932, allocations: 315.4 kB / 0.5464 GB, free: 1.711 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4932, allocations: 4.125 kB / 0.5464 GB, free: 1.707 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003357/0.4936, allocations: 159.9 kB / 0.5465 GB, free: 1.551 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004195/0.494, allocations: 38.2 kB / 0.5466 GB, free: 1.516 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.496, allocations: 0.7722 MB / 0.5473 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004773/0.4965, allocations: 0.7564 MB / 0.548 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001103/0.4966, allocations: 22.23 kB / 0.5481 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.82e-05/0.4967, allocations: 35.36 kB / 0.5481 GB, free: 15.87 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4967, allocations: 0 / 0.5481 GB, free: 15.87 MB / 414.1 MB Notification: Performance of Templates: time 0.01033/0.5071, allocations: 5.181 MB / 0.5532 GB, free: 10.71 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