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: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 118.4 kB / 17.78 MB, free: 5.262 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.001996/0.001996, allocations: 183 kB / 18.72 MB, free: 4.336 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.402/1.402, allocations: 222.9 MB / 242.4 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.2172/0.2172, allocations: 44.18 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 67.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3515, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004009/0.3556, allocations: 2.229 MB / 0.5206 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.357, allocations: 0.7339 MB / 0.5213 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.3572, allocations: 7.375 kB / 0.5213 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000202/0.3574, allocations: 38.06 kB / 0.5213 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.3576, allocations: 67.67 kB / 0.5214 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004381/0.358, allocations: 130.2 kB / 0.5215 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003923/0.3584, allocations: 340 kB / 0.5219 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.3586, allocations: 84.88 kB / 0.5219 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002312/0.3588, allocations: 147.2 kB / 0.5221 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.3591, allocations: 153.1 kB / 0.5222 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.141e-05/0.3591, allocations: 26.28 kB / 0.5223 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001692/0.3593, allocations: 78.45 kB / 0.5223 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.744e-05/0.3594, allocations: 63.3 kB / 0.5224 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.3595, allocations: 133.6 kB / 0.5225 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006083/0.3602, allocations: 344 kB / 0.5228 GB, free: 476 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.3602, allocations: 1.188 kB / 0.5228 GB, free: 476 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3602, allocations: 0 / 0.5228 GB, free: 476 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.987e-05/0.3602, allocations: 0 / 0.5228 GB, free: 476 kB / 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.001256/0.3615, allocations: 0.5598 MB / 0.5234 GB, free: 15.99 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.248e-05/0.3616, allocations: 9.406 kB / 0.5234 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.96e-05/0.3617, allocations: 63.36 kB / 0.5235 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.036e-05/0.3618, allocations: 27.22 kB / 0.5235 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004769/0.3622, allocations: 258.9 kB / 0.5237 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.242e-05/0.3623, allocations: 18.41 kB / 0.5238 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.784e-05/0.3624, allocations: 24.3 kB / 0.5238 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006373/0.363, allocations: 265.2 kB / 0.524 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.363, allocations: 6.078 kB / 0.524 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.169e-05/0.3631, allocations: 5.438 kB / 0.524 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.3631, allocations: 9.812 kB / 0.524 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005251/0.3636, allocations: 238.2 kB / 0.5243 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.3651, allocations: 0.7169 MB / 0.525 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000548/0.3657, allocations: 245.8 kB / 0.5252 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000263/0.366, allocations: 135.2 kB / 0.5253 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.25e-05/0.366, allocations: 6.75 kB / 0.5253 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.366, allocations: 33.36 kB / 0.5254 GB, free: 14.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.613e-06/0.366, allocations: 0 / 0.5254 GB, free: 14.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.003373/0.3694, allocations: 1.464 MB / 0.5268 GB, free: 13.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.3695, allocations: 58.91 kB / 0.5269 GB, free: 13.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/0.3697, allocations: 194.7 kB / 0.527 GB, free: 13.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.862e-05/0.3698, allocations: 40.73 kB / 0.5271 GB, free: 13.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.835e-05/0.3699, allocations: 140.5 kB / 0.5272 GB, free: 13.51 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.104e-05/0.37, allocations: 117.7 kB / 0.5273 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.3701, allocations: 69.83 kB / 0.5274 GB, free: 13.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3703, allocations: 339.4 kB / 0.5277 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002584/0.3705, allocations: 126.4 kB / 0.5278 GB, free: 12.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002947/0.3708, allocations: 167.7 kB / 0.528 GB, free: 12.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004422/0.3713, allocations: 249.3 kB / 0.5282 GB, free: 12.72 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3713, allocations: 0 / 0.5282 GB, free: 12.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008204/0.3721, allocations: 438.1 kB / 0.5287 GB, free: 12.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.3722, allocations: 4.844 kB / 0.5287 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3722, allocations: 5.062 kB / 0.5287 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000534/0.3727, allocations: 237 kB / 0.5289 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002377/0.373, allocations: 52.31 kB / 0.5289 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007931/0.3738, allocations: 0.7635 MB / 0.5297 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002904/0.3741, allocations: 38.92 kB / 0.5297 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.3741, allocations: 11.75 kB / 0.5297 GB, free: 11.7 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.0001885/0.3743, allocations: 143.7 kB / 0.5299 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7e-05/0.3744, allocations: 27.11 kB / 0.5299 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.25e-05/0.3745, allocations: 38.2 kB / 0.5299 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.3745, allocations: 4.938 kB / 0.5299 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.3745, allocations: 4 kB / 0.5299 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3745, allocations: 0 / 0.5299 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/0.3762, allocations: 0.9436 MB / 0.5309 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.3762, allocations: 1.156 kB / 0.5309 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002401/0.3765, allocations: 56.91 kB / 0.5309 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004708/0.3769, allocations: 214.3 kB / 0.5311 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.377, allocations: 11.23 kB / 0.5311 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007354/0.3777, allocations: 0.7111 MB / 0.5318 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3777, allocations: 0 / 0.5318 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.379, allocations: 0.6444 MB / 0.5325 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.3792, allocations: 129.7 kB / 0.5326 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.889e-05/0.3792, allocations: 16.31 kB / 0.5326 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002632/0.3795, allocations: 38.7 kB / 0.5326 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.3796, allocations: 42.62 kB / 0.5327 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/0.3797, allocations: 14.08 kB / 0.5327 GB, free: 9.453 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001636/0.3798, allocations: 147 kB / 0.5328 GB, free: 9.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3798, allocations: 0 / 0.5328 GB, free: 9.348 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004112/0.3803, allocations: 72.22 kB / 0.5329 GB, free: 9.34 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.001602/0.3819, allocations: 1.206 MB / 0.5341 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008071/0.3827, allocations: 329.2 kB / 0.5344 GB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3827, allocations: 1.062 kB / 0.5344 GB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003563/0.3831, allocations: 164.2 kB / 0.5346 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004508/0.3835, allocations: 38.78 kB / 0.5346 GB, free: 8.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005349/0.3889, allocations: 3.101 MB / 0.5376 GB, free: 5.906 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.3893, allocations: 0.7518 MB / 0.5384 GB, free: 5.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001189/0.3894, allocations: 22.84 kB / 0.5384 GB, free: 5.164 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.3896, allocations: 68.05 kB / 0.5384 GB, free: 5.109 MB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3896, allocations: 4 kB / 0.5384 GB, free: 5.105 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03154/0.4211, allocations: 7.576 MB / 0.5458 GB, free: 15.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.73, allocations: 11.94 kB / 0.5459 GB, free: 15.46 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv","/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