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.001442/0.001442, allocations: 118.8 kB / 17.79 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001863/0.001863, allocations: 201.2 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2285/0.2285, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001397, allocations: 75.88 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4099/0.4113, allocations: 62.44 MB / 0.531 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.007337/0.4187, allocations: 2.362 MB / 0.5333 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002913/0.4216, allocations: 0.8979 MB / 0.5342 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002765/0.4219, allocations: 2.75 kB / 0.5342 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004054/0.4224, allocations: 61.06 kB / 0.5342 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004217/0.4229, allocations: 78.41 kB / 0.5343 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000685/0.4236, allocations: 148.4 kB / 0.5344 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007038/0.4243, allocations: 352.9 kB / 0.5348 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003087/0.4246, allocations: 86.97 kB / 0.5349 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005431/0.4252, allocations: 151.2 kB / 0.535 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004645/0.4257, allocations: 164.7 kB / 0.5352 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.734e-05/0.4258, allocations: 30.16 kB / 0.5352 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003094/0.4261, allocations: 83.08 kB / 0.5353 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.4263, allocations: 75.23 kB / 0.5353 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002889/0.4266, allocations: 142.3 kB / 0.5355 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007864/0.4274, allocations: 378.3 kB / 0.5358 GB, free: 9.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.4274, allocations: 0 / 0.5358 GB, free: 9.746 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4275, allocations: 1.5 kB / 0.5358 GB, free: 9.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.4275, allocations: 0 / 0.5358 GB, free: 9.746 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.001621/0.4291, allocations: 0.5799 MB / 0.5364 GB, free: 9.215 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.4292, allocations: 10.77 kB / 0.5364 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002728/0.4295, allocations: 35.52 kB / 0.5364 GB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006414/0.4301, allocations: 261 kB / 0.5367 GB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.049e-05/0.4302, allocations: 19.66 kB / 0.5367 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-05/0.4303, allocations: 26.59 kB / 0.5367 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000924/0.4312, allocations: 271.2 kB / 0.537 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.441e-05/0.4313, allocations: 1.125 kB / 0.537 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.963e-05/0.4314, allocations: 10.12 kB / 0.537 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.4314, allocations: 5.469 kB / 0.537 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00099/0.4324, allocations: 238 kB / 0.5372 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002628/0.435, allocations: 0.734 MB / 0.538 GB, free: 8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.4361, allocations: 243.9 kB / 0.5382 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000466/0.4366, allocations: 143.5 kB / 0.5383 GB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.793e-05/0.4366, allocations: 7.188 kB / 0.5383 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.188e-05/0.4367, allocations: 35.72 kB / 0.5384 GB, free: 7.742 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 3.457e-06/0.4367, allocations: 0 / 0.5384 GB, free: 7.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.005676/0.4424, allocations: 1.416 MB / 0.5398 GB, free: 6.707 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.4425, allocations: 55.06 kB / 0.5398 GB, free: 6.645 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004317/0.4429, allocations: 212.7 kB / 0.54 GB, free: 6.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.424e-05/0.443, allocations: 32.7 kB / 0.54 GB, free: 6.445 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.4432, allocations: 138.5 kB / 0.5402 GB, free: 6.316 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.4434, allocations: 119.8 kB / 0.5403 GB, free: 6.211 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.4436, allocations: 66.84 kB / 0.5403 GB, free: 6.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003242/0.444, allocations: 336.3 kB / 0.5407 GB, free: 5.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004907/0.4445, allocations: 130.5 kB / 0.5408 GB, free: 5.762 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000528/0.445, allocations: 160.7 kB / 0.5409 GB, free: 5.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008635/0.4459, allocations: 237.8 kB / 0.5412 GB, free: 5.523 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.4459, allocations: 4 kB / 0.5412 GB, free: 5.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001695/0.4476, allocations: 426.9 kB / 0.5416 GB, free: 5.293 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.4477, allocations: 5.625 kB / 0.5416 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.4477, allocations: 4.938 kB / 0.5416 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009133/0.4486, allocations: 192 kB / 0.5418 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004467/0.4491, allocations: 56.53 kB / 0.5418 GB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.4505, allocations: 0.7272 MB / 0.5425 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005305/0.451, allocations: 39.48 kB / 0.5426 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.208e-05/0.4511, allocations: 17.16 kB / 0.5426 GB, free: 4.512 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.0003284/0.4515, allocations: 153.8 kB / 0.5427 GB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.4516, allocations: 23.75 kB / 0.5428 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000155/0.4518, allocations: 35.41 kB / 0.5428 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.4518, allocations: 3.344 kB / 0.5428 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/0.4519, allocations: 3.984 kB / 0.5428 GB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.4519, allocations: 1.188 kB / 0.5428 GB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003162/0.4551, allocations: 0.9422 MB / 0.5437 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.4551, allocations: 0 / 0.5437 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004053/0.4555, allocations: 48.94 kB / 0.5438 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007121/0.4562, allocations: 177.6 kB / 0.5439 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.477e-05/0.4563, allocations: 10.78 kB / 0.544 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.4575, allocations: 0.6924 MB / 0.5446 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.4575, allocations: 1.125 kB / 0.5446 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/0.4596, allocations: 0.6213 MB / 0.5452 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002773/0.4599, allocations: 128.5 kB / 0.5454 GB, free: 2.305 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.4601, allocations: 10.84 kB / 0.5454 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004989/0.4606, allocations: 42.92 kB / 0.5454 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002493/0.4608, allocations: 49.3 kB / 0.5455 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.329e-05/0.4609, allocations: 8 kB / 0.5455 GB, free: 2.219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002878/0.4612, allocations: 157.5 kB / 0.5456 GB, free: 2.066 MB / 398.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4612, allocations: 0 / 0.5456 GB, free: 2.066 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006817/0.4619, allocations: 68 kB / 0.5457 GB, free: 2 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.001567/0.4635, allocations: 364 kB / 0.546 GB, free: 1.754 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001469/0.465, allocations: 311.5 kB / 0.5463 GB, free: 1.449 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.465, allocations: 0 / 0.5463 GB, free: 1.449 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000597/0.4656, allocations: 164 kB / 0.5465 GB, free: 1.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007094/0.4664, allocations: 49.09 kB / 0.5465 GB, free: 1.246 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003459/0.4698, allocations: 0.7651 MB / 0.5473 GB, free: 460 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006565/0.4705, allocations: 0.7525 MB / 0.548 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002156/0.4708, allocations: 22.3 kB / 0.548 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.4709, allocations: 31.36 kB / 0.5481 GB, free: 15.62 MB / 414.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4709, allocations: 0 / 0.5481 GB, free: 15.62 MB / 414.1 MB Notification: Performance of Templates: time 0.01372/0.4847, allocations: 5.182 MB / 0.5531 GB, free: 10.45 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