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.001564/0.001564, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001694/0.001694, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.422/1.422, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2159/0.2159, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 59.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3659/0.3673, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003399/0.3707, allocations: 2.234 MB / 0.5206 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.372, allocations: 0.7255 MB / 0.5213 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.3721, allocations: 3.438 kB / 0.5213 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.3724, allocations: 33.83 kB / 0.5213 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.3725, allocations: 67.97 kB / 0.5214 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004409/0.373, allocations: 142.9 kB / 0.5215 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003311/0.3733, allocations: 339 kB / 0.5219 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001797/0.3735, allocations: 77.72 kB / 0.5219 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002142/0.3737, allocations: 141.2 kB / 0.5221 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002363/0.374, allocations: 162.6 kB / 0.5222 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.743e-05/0.374, allocations: 25.69 kB / 0.5223 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.3742, allocations: 73.84 kB / 0.5223 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.582e-05/0.3743, allocations: 72.09 kB / 0.5224 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.3744, allocations: 130.7 kB / 0.5225 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000428/0.3748, allocations: 341.2 kB / 0.5228 GB, free: 484 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.3748, allocations: 1.984 kB / 0.5228 GB, free: 484 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3749, allocations: 0 / 0.5228 GB, free: 484 kB / 382.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.3749, allocations: 0 / 0.5228 GB, free: 484 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.0008587/0.3757, allocations: 0.5535 MB / 0.5234 GB, free: 8 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3758, allocations: 9.359 kB / 0.5234 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.601e-05/0.3759, allocations: 56.28 kB / 0.5234 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.927e-05/0.376, allocations: 29.22 kB / 0.5235 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.3764, allocations: 259 kB / 0.5237 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.779e-05/0.3764, allocations: 18.09 kB / 0.5237 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.76e-05/0.3765, allocations: 20.12 kB / 0.5238 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006315/0.3771, allocations: 270.2 kB / 0.524 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.3772, allocations: 5.016 kB / 0.524 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.408e-05/0.3772, allocations: 11.09 kB / 0.524 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.3772, allocations: 5.375 kB / 0.524 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005381/0.3778, allocations: 233.5 kB / 0.5243 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.3792, allocations: 0.7261 MB / 0.525 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005419/0.3798, allocations: 239.8 kB / 0.5252 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002681/0.38, allocations: 138.8 kB / 0.5253 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/0.3801, allocations: 3.328 kB / 0.5253 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.3801, allocations: 45.66 kB / 0.5254 GB, free: 14.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.363e-06/0.3801, allocations: 0 / 0.5254 GB, free: 14.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.003172/0.3833, allocations: 1.456 MB / 0.5268 GB, free: 13.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.3833, allocations: 59.53 kB / 0.5269 GB, free: 13.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.3836, allocations: 202.1 kB / 0.527 GB, free: 13.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.3836, allocations: 32.45 kB / 0.5271 GB, free: 13.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.982e-05/0.3837, allocations: 134.3 kB / 0.5272 GB, free: 13.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.3838, allocations: 114.8 kB / 0.5273 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.3839, allocations: 66.34 kB / 0.5274 GB, free: 13.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.3841, allocations: 340.2 kB / 0.5277 GB, free: 13.03 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.3843, allocations: 130.2 kB / 0.5278 GB, free: 12.97 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.3846, allocations: 167.8 kB / 0.528 GB, free: 12.87 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004432/0.3851, allocations: 253.5 kB / 0.5282 GB, free: 12.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3851, allocations: 0 / 0.5282 GB, free: 12.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007779/0.3859, allocations: 432.6 kB / 0.5286 GB, free: 12.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3859, allocations: 6.5 kB / 0.5286 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3859, allocations: 0 / 0.5286 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00049/0.3864, allocations: 236.9 kB / 0.5289 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002251/0.3866, allocations: 53.28 kB / 0.5289 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007506/0.3874, allocations: 0.7586 MB / 0.5297 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/0.3877, allocations: 35.11 kB / 0.5297 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.252e-05/0.3877, allocations: 13.03 kB / 0.5297 GB, free: 11.72 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.0001589/0.3879, allocations: 146.9 kB / 0.5299 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.824e-05/0.3879, allocations: 26.88 kB / 0.5299 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.9e-05/0.388, allocations: 38.58 kB / 0.5299 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.388, allocations: 3.562 kB / 0.5299 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.388, allocations: 1.375 kB / 0.5299 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.388, allocations: 0 / 0.5299 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001672/0.3897, allocations: 0.948 MB / 0.5308 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.3897, allocations: 4.062 kB / 0.5308 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.39, allocations: 50.28 kB / 0.5309 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003925/0.3904, allocations: 217.8 kB / 0.5311 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.724e-05/0.3904, allocations: 7.156 kB / 0.5311 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006401/0.391, allocations: 0.7109 MB / 0.5318 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3911, allocations: 4.062 kB / 0.5318 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.3922, allocations: 0.6361 MB / 0.5324 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.3924, allocations: 130 kB / 0.5326 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.095e-05/0.3924, allocations: 20.55 kB / 0.5326 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.3927, allocations: 30.19 kB / 0.5326 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.3928, allocations: 46.67 kB / 0.5326 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.3928, allocations: 14.05 kB / 0.5327 GB, free: 9.477 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.393, allocations: 145.4 kB / 0.5328 GB, free: 9.371 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.393, allocations: 3.938 kB / 0.5328 GB, free: 9.367 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003785/0.3934, allocations: 78.53 kB / 0.5329 GB, free: 9.355 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.001485/0.3949, allocations: 1.204 MB / 0.5341 GB, free: 8.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007423/0.3956, allocations: 322.1 kB / 0.5344 GB, free: 8.277 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3956, allocations: 0 / 0.5344 GB, free: 8.277 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003443/0.396, allocations: 160.7 kB / 0.5345 GB, free: 8.211 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.3964, allocations: 40.5 kB / 0.5346 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00521/0.4016, allocations: 3.098 MB / 0.5376 GB, free: 5.934 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003619/0.402, allocations: 0.7525 MB / 0.5383 GB, free: 5.203 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.854e-05/0.4021, allocations: 21.45 kB / 0.5383 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.4022, allocations: 76.5 kB / 0.5384 GB, free: 5.129 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.4023, allocations: 0 / 0.5384 GB, free: 5.129 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02983/0.4321, allocations: 7.76 MB / 0.546 GB, free: 15.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.91, allocations: 12.14 kB / 0.546 GB, free: 15.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 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.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