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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 113.2 kB / 291.9 MB, free: 10.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4575/0.4575, allocations: 44.13 MB / 386.1 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001063/0.001063, allocations: 51.91 kB / 457.7 MB, free: 2.336 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3695/0.3706, allocations: 60.8 MB / 0.5064 GB, free: 38.51 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003482/0.3741, allocations: 2.295 MB / 0.5086 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.3754, allocations: 0.7285 MB / 0.5093 GB, free: 36.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.3755, allocations: 3.031 kB / 0.5093 GB, free: 36.43 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002038/0.3757, allocations: 24.23 kB / 0.5094 GB, free: 36.41 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.3759, allocations: 58.25 kB / 0.5094 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003461/0.3763, allocations: 111.8 kB / 0.5095 GB, free: 36.31 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002814/0.3766, allocations: 315.9 kB / 0.5098 GB, free: 36.18 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.3767, allocations: 80.31 kB / 0.5099 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001655/0.3769, allocations: 135.9 kB / 0.51 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.3771, allocations: 148.9 kB / 0.5102 GB, free: 36.01 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.408e-05/0.3771, allocations: 20.69 kB / 0.5102 GB, free: 36 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.3773, allocations: 58.78 kB / 0.5103 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.385e-05/0.3774, allocations: 57.7 kB / 0.5103 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.807e-05/0.3775, allocations: 119.9 kB / 0.5104 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003055/0.3778, allocations: 327.5 kB / 0.5107 GB, free: 35.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3778, allocations: 0 / 0.5107 GB, free: 35.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3778, allocations: 6.812 kB / 0.5107 GB, free: 35.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.3778, allocations: 0 / 0.5107 GB, free: 35.77 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008119/0.3786, allocations: 0.5469 MB / 0.5113 GB, free: 35.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.3787, allocations: 10.62 kB / 0.5113 GB, free: 35.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.818e-05/0.3787, allocations: 24.66 kB / 0.5113 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.379, allocations: 258.7 kB / 0.5116 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.379, allocations: 16.62 kB / 0.5116 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.763e-05/0.379, allocations: 24.28 kB / 0.5116 GB, free: 35.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004256/0.3795, allocations: 264.1 kB / 0.5118 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.3795, allocations: 2.688 kB / 0.5118 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.676e-05/0.3795, allocations: 6.812 kB / 0.5119 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.3796, allocations: 5.094 kB / 0.5119 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004099/0.38, allocations: 241 kB / 0.5121 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.3812, allocations: 0.7246 MB / 0.5128 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005301/0.3817, allocations: 248.8 kB / 0.513 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00023/0.3819, allocations: 138.6 kB / 0.5132 GB, free: 34.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.382, allocations: 2.969 kB / 0.5132 GB, free: 34.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.497e-05/0.382, allocations: 30.56 kB / 0.5132 GB, free: 34.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 1.623e-06/0.382, allocations: 4 kB / 0.5132 GB, free: 34.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.00296/0.385, allocations: 1.466 MB / 0.5146 GB, free: 33.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.314e-05/0.385, allocations: 58.47 kB / 0.5147 GB, free: 33.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001804/0.3852, allocations: 198.7 kB / 0.5149 GB, free: 33.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.3853, allocations: 36.27 kB / 0.5149 GB, free: 33.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.3853, allocations: 132.1 kB / 0.515 GB, free: 32.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.73e-05/0.3854, allocations: 114.3 kB / 0.5151 GB, free: 32.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.3856, allocations: 65.09 kB / 0.5152 GB, free: 32.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.282e-05/0.3856, allocations: 330.7 kB / 0.5155 GB, free: 32.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/0.3859, allocations: 129.7 kB / 0.5156 GB, free: 32.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.3861, allocations: 170.2 kB / 0.5158 GB, free: 32.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004439/0.3866, allocations: 248.1 kB / 0.516 GB, free: 32.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3866, allocations: 1.188 kB / 0.516 GB, free: 32.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007937/0.3874, allocations: 448.2 kB / 0.5165 GB, free: 32.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.3874, allocations: 5.594 kB / 0.5165 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.3875, allocations: 0 / 0.5165 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000689/0.3882, allocations: 239.7 kB / 0.5167 GB, free: 31.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002407/0.3884, allocations: 58.06 kB / 0.5168 GB, free: 31.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000757/0.3892, allocations: 0.7555 MB / 0.5175 GB, free: 31.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002727/0.3895, allocations: 35.72 kB / 0.5175 GB, free: 31.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.378e-05/0.3895, allocations: 13.77 kB / 0.5176 GB, free: 31.32 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,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.000169/0.3897, allocations: 140.8 kB / 0.5177 GB, free: 31.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.156e-05/0.3898, allocations: 21.02 kB / 0.5177 GB, free: 31.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.3899, allocations: 42.89 kB / 0.5177 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.3899, allocations: 6.969 kB / 0.5178 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.3899, allocations: 4 kB / 0.5178 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.3899, allocations: 6.188 kB / 0.5178 GB, free: 31.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001658/0.3916, allocations: 0.9562 MB / 0.5187 GB, free: 30.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3916, allocations: 0 / 0.5187 GB, free: 30.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002141/0.3919, allocations: 46.86 kB / 0.5187 GB, free: 30.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004186/0.3923, allocations: 215.3 kB / 0.5189 GB, free: 30.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.529e-05/0.3923, allocations: 13.95 kB / 0.519 GB, free: 30.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005916/0.3929, allocations: 0.7185 MB / 0.5197 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3929, allocations: 0 / 0.5197 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007956/0.4009, allocations: 5.049 MB / 0.5246 GB, free: 26.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.4011, allocations: 122.1 kB / 0.5247 GB, free: 26.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.309e-05/0.4011, allocations: 11.09 kB / 0.5247 GB, free: 26.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.4014, allocations: 44.62 kB / 0.5248 GB, free: 26.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.4015, allocations: 45.36 kB / 0.5248 GB, free: 26.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.258e-05/0.4016, allocations: 19.27 kB / 0.5248 GB, free: 26.22 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001089/0.4017, allocations: 142.5 kB / 0.525 GB, free: 26.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4017, allocations: 0 / 0.525 GB, free: 26.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005387/0.4022, allocations: 127.8 kB / 0.5251 GB, free: 26.11 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002466/0.4025, allocations: 155.2 kB / 0.5252 GB, free: 26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006809/0.4032, allocations: 316.9 kB / 0.5255 GB, free: 25.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4032, allocations: 0 / 0.5255 GB, free: 25.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003155/0.4035, allocations: 156.5 kB / 0.5257 GB, free: 25.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/0.4039, allocations: 36.97 kB / 0.5257 GB, free: 25.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.406, allocations: 1.216 MB / 0.5269 GB, free: 25.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.4063, allocations: 0.761 MB / 0.5276 GB, free: 24.32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.4064, allocations: 30.03 kB / 0.5277 GB, free: 24.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.249e-05/0.4064, allocations: 23.52 kB / 0.5277 GB, free: 24.3 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.4065, allocations: 0 / 0.5277 GB, free: 24.3 MB / 378.7 MB Notification: Performance of Templates: time 0.01038/0.4168, allocations: 6.407 MB / 0.534 GB, free: 23.86 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches