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.001455/0.001455, allocations: 109 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001912/0.001912, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2243/0.2243, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 71.88 kB / 482 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.3826, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004063/0.3867, allocations: 2.361 MB / 0.5339 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001715/0.3884, allocations: 0.906 MB / 0.5348 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001807/0.3886, allocations: 4.125 kB / 0.5348 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002863/0.389, allocations: 59.69 kB / 0.5349 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000203/0.3892, allocations: 70.41 kB / 0.535 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005002/0.3897, allocations: 148.4 kB / 0.5351 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004635/0.3902, allocations: 352.6 kB / 0.5354 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002175/0.3904, allocations: 86.42 kB / 0.5355 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003158/0.3907, allocations: 159.9 kB / 0.5357 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002693/0.391, allocations: 159.1 kB / 0.5358 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.009e-05/0.3911, allocations: 27.5 kB / 0.5358 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002187/0.3913, allocations: 91.38 kB / 0.5359 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.3914, allocations: 75.61 kB / 0.536 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001588/0.3916, allocations: 130 kB / 0.5361 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005381/0.3922, allocations: 385.5 kB / 0.5365 GB, free: 9.902 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.3922, allocations: 1.375 kB / 0.5365 GB, free: 9.902 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3922, allocations: 3.938 kB / 0.5365 GB, free: 9.898 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.3922, allocations: 0 / 0.5365 GB, free: 9.898 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.00117/0.3934, allocations: 0.5725 MB / 0.5371 GB, free: 9.375 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3934, allocations: 10.48 kB / 0.5371 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002142/0.3936, allocations: 39.39 kB / 0.5371 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.394, allocations: 262.4 kB / 0.5374 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/0.3941, allocations: 18.19 kB / 0.5374 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.836e-05/0.3942, allocations: 24.16 kB / 0.5374 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005705/0.3947, allocations: 278.5 kB / 0.5377 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.3948, allocations: 1.062 kB / 0.5377 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.415e-05/0.3948, allocations: 10.22 kB / 0.5377 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.3948, allocations: 5.688 kB / 0.5377 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005796/0.3954, allocations: 237.9 kB / 0.5379 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001595/0.397, allocations: 0.7331 MB / 0.5386 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000582/0.3976, allocations: 240.6 kB / 0.5389 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002939/0.3979, allocations: 146.2 kB / 0.539 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.3979, allocations: 11.28 kB / 0.539 GB, free: 7.938 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.398, allocations: 35.53 kB / 0.539 GB, free: 7.895 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.234e-06/0.398, allocations: 1.281 kB / 0.539 GB, free: 7.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.003339/0.4013, allocations: 1.399 MB / 0.5404 GB, free: 6.875 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.4014, allocations: 59.75 kB / 0.5405 GB, free: 6.809 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002637/0.4017, allocations: 216.1 kB / 0.5407 GB, free: 6.641 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.922e-05/0.4017, allocations: 32.86 kB / 0.5407 GB, free: 6.605 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.4019, allocations: 142.6 kB / 0.5408 GB, free: 6.473 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.402, allocations: 116.4 kB / 0.5409 GB, free: 6.371 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.4021, allocations: 66.47 kB / 0.541 GB, free: 6.324 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002232/0.4024, allocations: 339.9 kB / 0.5413 GB, free: 5.988 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002479/0.4026, allocations: 122.8 kB / 0.5414 GB, free: 5.926 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002873/0.4029, allocations: 164.8 kB / 0.5416 GB, free: 5.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000461/0.4034, allocations: 240.7 kB / 0.5418 GB, free: 5.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.4034, allocations: 1.219 kB / 0.5418 GB, free: 5.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008963/0.4043, allocations: 427.5 kB / 0.5422 GB, free: 5.453 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.4043, allocations: 4.469 kB / 0.5422 GB, free: 5.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.4044, allocations: 6.062 kB / 0.5423 GB, free: 5.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005285/0.4049, allocations: 191.7 kB / 0.5424 GB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002569/0.4052, allocations: 61.17 kB / 0.5425 GB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007592/0.4059, allocations: 0.7228 MB / 0.5432 GB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002926/0.4062, allocations: 35.33 kB / 0.5432 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.248e-05/0.4063, allocations: 13.25 kB / 0.5432 GB, free: 4.68 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.0001997/0.4065, allocations: 160.8 kB / 0.5434 GB, free: 4.527 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.984e-05/0.4066, allocations: 23.28 kB / 0.5434 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.276e-05/0.4067, allocations: 31.41 kB / 0.5435 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.4067, allocations: 3.656 kB / 0.5435 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.4067, allocations: 0 / 0.5435 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.4067, allocations: 3.984 kB / 0.5435 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001678/0.4084, allocations: 0.9426 MB / 0.5444 GB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.4084, allocations: 1 kB / 0.5444 GB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002467/0.4087, allocations: 52.97 kB / 0.5444 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003879/0.4091, allocations: 181.2 kB / 0.5446 GB, free: 3.633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.4091, allocations: 10.11 kB / 0.5446 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006393/0.4097, allocations: 0.6935 MB / 0.5453 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.4098, allocations: 0 / 0.5453 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.4109, allocations: 0.6178 MB / 0.5459 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.4111, allocations: 132.2 kB / 0.546 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.61e-05/0.4112, allocations: 15.31 kB / 0.546 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002743/0.4114, allocations: 34.27 kB / 0.5461 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.4116, allocations: 53.48 kB / 0.5461 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/0.4116, allocations: 8 kB / 0.5461 GB, free: 2.391 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001515/0.4118, allocations: 157.5 kB / 0.5463 GB, free: 2.238 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4118, allocations: 0 / 0.5463 GB, free: 2.238 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003956/0.4122, allocations: 68 kB / 0.5463 GB, free: 2.172 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.0009124/0.4131, allocations: 364.4 kB / 0.5467 GB, free: 1.926 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007847/0.4139, allocations: 315.4 kB / 0.547 GB, free: 1.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4139, allocations: 0 / 0.547 GB, free: 1.617 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003452/0.4143, allocations: 155.9 kB / 0.5471 GB, free: 1.465 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.4147, allocations: 46.47 kB / 0.5472 GB, free: 1.422 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.4168, allocations: 0.7862 MB / 0.548 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.4172, allocations: 0.7603 MB / 0.5487 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.839e-05/0.4173, allocations: 27.38 kB / 0.5487 GB, free: 15.79 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4173, allocations: 0 / 0.5487 GB, free: 15.79 MB / 414.1 MB Notification: Performance of Templates: time 0.007901/0.4252, allocations: 4.501 MB / 0.5531 GB, free: 11.29 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches