Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009518/0.0009562, allocations: 200.3 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007295/0.0007295, allocations: 95.64 kB / 299.8 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3137/0.3137, allocations: 45.01 MB / 397 MB, free: 31.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002562/0.0002561, allocations: 11.98 kB / 470.8 MB, free: 7.074 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2977, allocations: 63.09 MB / 0.5214 GB, free: 38.42 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002131/0.2999, allocations: 1.994 MB / 0.5233 GB, free: 37 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.301, allocations: 1.043 MB / 0.5243 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.3011, allocations: 5.156 kB / 0.5243 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002309/0.3014, allocations: 37.33 kB / 0.5244 GB, free: 36.13 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.3015, allocations: 69.05 kB / 0.5244 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.3018, allocations: 116.8 kB / 0.5245 GB, free: 36.01 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002463/0.302, allocations: 319.8 kB / 0.5249 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.3022, allocations: 66.86 kB / 0.5249 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.3024, allocations: 138.7 kB / 0.525 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.3026, allocations: 156 kB / 0.5252 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.683e-05/0.3026, allocations: 13.06 kB / 0.5252 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001339/0.3028, allocations: 63.31 kB / 0.5253 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.3029, allocations: 53.31 kB / 0.5253 GB, free: 35.68 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.303, allocations: 153.5 kB / 0.5255 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003023/0.3033, allocations: 342.8 kB / 0.5258 GB, free: 35.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3033, allocations: 0 / 0.5258 GB, free: 35.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.3033, allocations: 0 / 0.5258 GB, free: 35.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.3033, allocations: 0 / 0.5258 GB, free: 35.46 MB / 378.7 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.0006886/0.304, allocations: 0.5373 MB / 0.5263 GB, free: 35.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.3041, allocations: 15.66 kB / 0.5263 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.3042, allocations: 40.86 kB / 0.5264 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.3044, allocations: 250.1 kB / 0.5266 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.3045, allocations: 24.81 kB / 0.5266 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.183e-05/0.3045, allocations: 30.73 kB / 0.5267 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000428/0.305, allocations: 261.8 kB / 0.5269 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.305, allocations: 7.328 kB / 0.5269 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.535e-05/0.305, allocations: 10.94 kB / 0.5269 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.305, allocations: 13.41 kB / 0.5269 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004053/0.3054, allocations: 225.7 kB / 0.5272 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.3065, allocations: 0.7415 MB / 0.5279 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004403/0.307, allocations: 251.8 kB / 0.5281 GB, free: 33.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002071/0.3072, allocations: 136.3 kB / 0.5283 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.3072, allocations: 6.781 kB / 0.5283 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.683e-05/0.3072, allocations: 38.5 kB / 0.5283 GB, free: 33.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.402e-06/0.3072, allocations: 0 / 0.5283 GB, free: 33.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002552/0.3098, allocations: 1.438 MB / 0.5297 GB, free: 32.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.225e-05/0.3098, allocations: 54.28 kB / 0.5298 GB, free: 32.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.31, allocations: 204.9 kB / 0.5299 GB, free: 32.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.31, allocations: 35.81 kB / 0.53 GB, free: 32.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.055e-05/0.3101, allocations: 141.9 kB / 0.5301 GB, free: 32.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.62e-05/0.3102, allocations: 118.9 kB / 0.5302 GB, free: 32.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.702e-05/0.3102, allocations: 4 kB / 0.5302 GB, free: 32.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.424e-05/0.3103, allocations: 342.5 kB / 0.5306 GB, free: 32.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.3105, allocations: 119 kB / 0.5307 GB, free: 32.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.3107, allocations: 163.7 kB / 0.5308 GB, free: 32.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000348/0.3111, allocations: 238.9 kB / 0.5311 GB, free: 31.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.3111, allocations: 0 / 0.5311 GB, free: 31.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006241/0.3117, allocations: 407.7 kB / 0.5314 GB, free: 31.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.3117, allocations: 7 kB / 0.5315 GB, free: 31.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3117, allocations: 0 / 0.5315 GB, free: 31.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003956/0.3121, allocations: 169.6 kB / 0.5316 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002029/0.3124, allocations: 55.67 kB / 0.5317 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000536/0.3129, allocations: 0.7277 MB / 0.5324 GB, free: 31.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.3131, allocations: 48.47 kB / 0.5324 GB, free: 31.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.3132, allocations: 17.81 kB / 0.5324 GB, free: 31 MB / 378.7 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,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * 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.0001118/0.3133, allocations: 154.5 kB / 0.5326 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.433e-05/0.3133, allocations: 26.53 kB / 0.5326 GB, free: 30.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.371e-05/0.3134, allocations: 35.03 kB / 0.5326 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3134, allocations: 4.438 kB / 0.5327 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.748e-06/0.3134, allocations: 0 / 0.5327 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3134, allocations: 3.375 kB / 0.5327 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.3146, allocations: 0.9126 MB / 0.5335 GB, free: 30.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3146, allocations: 6.688 kB / 0.5336 GB, free: 30.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001986/0.3148, allocations: 59.27 kB / 0.5336 GB, free: 30.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002727/0.3151, allocations: 155.1 kB / 0.5338 GB, free: 30.15 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/0.3151, allocations: 9.953 kB / 0.5338 GB, free: 30.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004199/0.3156, allocations: 0.6807 MB / 0.5344 GB, free: 29.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3156, allocations: 7.25 kB / 0.5344 GB, free: 29.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007939/0.3164, allocations: 0.5958 MB / 0.535 GB, free: 29.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.888e-05/0.3165, allocations: 124.7 kB / 0.5351 GB, free: 29.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.651e-05/0.3165, allocations: 13.41 kB / 0.5352 GB, free: 29.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.3168, allocations: 51.41 kB / 0.5352 GB, free: 29.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.3169, allocations: 44.56 kB / 0.5352 GB, free: 29.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/0.3169, allocations: 13.12 kB / 0.5353 GB, free: 29.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001079/0.3171, allocations: 155.4 kB / 0.5354 GB, free: 28.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3171, allocations: 0 / 0.5354 GB, free: 28.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002977/0.3174, allocations: 71.78 kB / 0.5355 GB, free: 28.95 MB / 378.7 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.0007521/0.3181, allocations: 424.7 kB / 0.5359 GB, free: 28.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005958/0.3187, allocations: 303.2 kB / 0.5362 GB, free: 28.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3187, allocations: 0 / 0.5362 GB, free: 28.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000274/0.319, allocations: 156.9 kB / 0.5363 GB, free: 28.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000371/0.3194, allocations: 43.86 kB / 0.5364 GB, free: 28.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.321, allocations: 0.9903 MB / 0.5373 GB, free: 27.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001471/0.3212, allocations: 0.7552 MB / 0.5381 GB, free: 27.28 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.942e-05/0.3213, allocations: 22.23 kB / 0.5381 GB, free: 27.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.502e-05/0.3213, allocations: 20.88 kB / 0.5381 GB, free: 27.27 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3213, allocations: 0 / 0.5381 GB, free: 27.27 MB / 378.7 MB Notification: Performance of Templates: time 0.00939/0.3307, allocations: 4.691 MB / 0.5427 GB, free: 26.89 MB / 378.7 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","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches