Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 113.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 185.1 kB / 19.38 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1977/0.1977, allocations: 44.18 MB / 337.4 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 67.88 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2949, allocations: 60.83 MB / 0.5195 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003116/0.2981, allocations: 2.246 MB / 0.5217 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.2994, allocations: 0.7218 MB / 0.5224 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.2995, allocations: 7.594 kB / 0.5225 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000199/0.2997, allocations: 34.03 kB / 0.5225 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.2999, allocations: 71.67 kB / 0.5226 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00041/0.3003, allocations: 135.1 kB / 0.5227 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003538/0.3007, allocations: 336.1 kB / 0.523 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001948/0.3009, allocations: 84.41 kB / 0.5231 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002257/0.3011, allocations: 145.2 kB / 0.5232 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002305/0.3014, allocations: 158 kB / 0.5234 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.061e-05/0.3014, allocations: 27 kB / 0.5234 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001675/0.3016, allocations: 77.12 kB / 0.5235 GB, free: 1.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.847e-05/0.3017, allocations: 67.81 kB / 0.5235 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.3018, allocations: 130.5 kB / 0.5237 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000402/0.3022, allocations: 346.1 kB / 0.524 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.3022, allocations: 0 / 0.524 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3022, allocations: 0 / 0.524 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.3022, allocations: 0 / 0.524 GB, free: 0.7695 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008621/0.3031, allocations: 0.5494 MB / 0.5245 GB, free: 320 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.3032, allocations: 9.375 kB / 0.5245 GB, free: 320 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.922e-05/0.3032, allocations: 28.72 kB / 0.5246 GB, free: 304 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.3035, allocations: 249.3 kB / 0.5248 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.3036, allocations: 17.09 kB / 0.5248 GB, free: 52 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.552e-05/0.3036, allocations: 27.02 kB / 0.5248 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005462/0.3042, allocations: 271.2 kB / 0.5251 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.3042, allocations: 5.891 kB / 0.5251 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/0.3042, allocations: 5.375 kB / 0.5251 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.3043, allocations: 5.75 kB / 0.5251 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004666/0.3047, allocations: 238.8 kB / 0.5253 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.306, allocations: 0.718 MB / 0.526 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005297/0.3066, allocations: 248.2 kB / 0.5263 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002552/0.3069, allocations: 139.2 kB / 0.5264 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.3069, allocations: 6.938 kB / 0.5264 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.3069, allocations: 36.89 kB / 0.5265 GB, free: 15.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.834e-06/0.3069, allocations: 0 / 0.5265 GB, free: 15.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.003019/0.31, allocations: 1.463 MB / 0.5279 GB, free: 14.14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.31, allocations: 59.53 kB / 0.5279 GB, free: 14.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002068/0.3102, allocations: 198.2 kB / 0.5281 GB, free: 13.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.3103, allocations: 36.45 kB / 0.5282 GB, free: 13.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.935e-05/0.3104, allocations: 136.9 kB / 0.5283 GB, free: 13.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.3105, allocations: 108.2 kB / 0.5284 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.3106, allocations: 71.02 kB / 0.5285 GB, free: 13.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.3107, allocations: 331.3 kB / 0.5288 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000256/0.311, allocations: 125.7 kB / 0.5289 GB, free: 13.22 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000273/0.3113, allocations: 171.3 kB / 0.5291 GB, free: 13.12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004239/0.3117, allocations: 253.2 kB / 0.5293 GB, free: 12.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3117, allocations: 0 / 0.5293 GB, free: 12.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007997/0.3125, allocations: 437.4 kB / 0.5297 GB, free: 12.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.3126, allocations: 8.688 kB / 0.5297 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.3126, allocations: 1.031 kB / 0.5297 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004907/0.3131, allocations: 236.6 kB / 0.53 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.3133, allocations: 53.34 kB / 0.53 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007531/0.3141, allocations: 0.7594 MB / 0.5308 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.3143, allocations: 33.86 kB / 0.5308 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.997e-05/0.3144, allocations: 13.12 kB / 0.5308 GB, free: 11.96 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001821/0.3146, allocations: 144.1 kB / 0.5309 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.077e-05/0.3146, allocations: 21.91 kB / 0.531 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.426e-05/0.3147, allocations: 43.5 kB / 0.531 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3147, allocations: 3.438 kB / 0.531 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3147, allocations: 0 / 0.531 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.3148, allocations: 3.984 kB / 0.531 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.3163, allocations: 0.9443 MB / 0.5319 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3164, allocations: 1.219 kB / 0.5319 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002209/0.3166, allocations: 49.12 kB / 0.532 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003799/0.317, allocations: 219 kB / 0.5322 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.317, allocations: 10.7 kB / 0.5322 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006282/0.3176, allocations: 0.7141 MB / 0.5329 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.3177, allocations: 4.125 kB / 0.5329 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.3188, allocations: 0.6373 MB / 0.5335 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.319, allocations: 125.3 kB / 0.5336 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.196e-05/0.319, allocations: 20.53 kB / 0.5337 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002637/0.3193, allocations: 33.02 kB / 0.5337 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.3194, allocations: 51.48 kB / 0.5337 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.651e-05/0.3195, allocations: 14.86 kB / 0.5338 GB, free: 9.715 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000126/0.3196, allocations: 140.7 kB / 0.5339 GB, free: 9.613 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3196, allocations: 0 / 0.5339 GB, free: 9.613 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003895/0.32, allocations: 73.56 kB / 0.534 GB, free: 9.605 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002339/0.3202, allocations: 136.5 kB / 0.5341 GB, free: 9.492 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007231/0.321, allocations: 326.1 kB / 0.5344 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.175e-06/0.321, allocations: 0 / 0.5344 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003357/0.3213, allocations: 160.7 kB / 0.5346 GB, free: 9.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.3218, allocations: 42.64 kB / 0.5346 GB, free: 9.262 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.3238, allocations: 0.7674 MB / 0.5353 GB, free: 8.742 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.3242, allocations: 0.752 MB / 0.5361 GB, free: 8.016 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.686e-05/0.3243, allocations: 25.52 kB / 0.5361 GB, free: 8.004 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3243, allocations: 0 / 0.5361 GB, free: 8.004 MB / 398.1 MB Notification: Performance of Templates: time 0.007674/0.332, allocations: 4.111 MB / 0.5401 GB, free: 5.828 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches