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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001712/0.001712, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002207/0.002207, allocations: 216.2 kB / 24.53 MB, free: 4.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.623/1.623, allocations: 230.6 MB / 258.3 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2546/0.2546, allocations: 44.91 MB / 359.6 MB, free: 6.277 MB / 286.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002152/0.002152, allocations: 67.91 kB / 0.4938 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4505/0.4526, allocations: 65.47 MB / 0.5578 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.006235/0.4589, allocations: 2.386 MB / 0.5601 GB, free: 5.375 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002511/0.4614, allocations: 0.9307 MB / 0.561 GB, free: 4.438 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002587/0.4616, allocations: 4 kB / 0.561 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003704/0.462, allocations: 51.52 kB / 0.5611 GB, free: 4.383 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003156/0.4623, allocations: 75.39 kB / 0.5611 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005788/0.4629, allocations: 143.6 kB / 0.5613 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006195/0.4635, allocations: 359.2 kB / 0.5616 GB, free: 3.816 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002616/0.4638, allocations: 75.08 kB / 0.5617 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004219/0.4642, allocations: 151.6 kB / 0.5618 GB, free: 3.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003735/0.4646, allocations: 163.4 kB / 0.562 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.021e-05/0.4647, allocations: 28 kB / 0.562 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002669/0.4649, allocations: 87.95 kB / 0.5621 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001609/0.4651, allocations: 79.7 kB / 0.5622 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002123/0.4653, allocations: 135.4 kB / 0.5623 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007826/0.4661, allocations: 386.5 kB / 0.5627 GB, free: 2.727 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.4661, allocations: 0 / 0.5627 GB, free: 2.727 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4661, allocations: 4 kB / 0.5627 GB, free: 2.723 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.729e-06/0.4661, allocations: 7.938 kB / 0.5627 GB, free: 2.715 MB / 398.1 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.001432/0.4675, allocations: 0.509 MB / 0.5632 GB, free: 2.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/0.4676, allocations: 8.031 kB / 0.5632 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.306e-05/0.4676, allocations: 4.688 kB / 0.5632 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.418e-05/0.4677, allocations: 62.66 kB / 0.5633 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002603/0.468, allocations: 36.8 kB / 0.5633 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005412/0.4685, allocations: 198.8 kB / 0.5635 GB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.977e-05/0.4685, allocations: 20.88 kB / 0.5635 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.638e-05/0.4686, allocations: 20.38 kB / 0.5635 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005833/0.4692, allocations: 271.9 kB / 0.5638 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.4692, allocations: 3.953 kB / 0.5638 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.361e-05/0.4692, allocations: 12 kB / 0.5638 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.4693, allocations: 8 kB / 0.5638 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005464/0.4698, allocations: 237.8 kB / 0.564 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001985/0.4718, allocations: 0.6927 MB / 0.5647 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007159/0.4725, allocations: 234.4 kB / 0.5649 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002656/0.4728, allocations: 121.2 kB / 0.565 GB, free: 180 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.4728, allocations: 4 kB / 0.5651 GB, free: 176 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.4728, allocations: 34.5 kB / 0.5651 GB, free: 132 kB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.174e-06/0.4728, allocations: 0 / 0.5651 GB, free: 132 kB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.003413/0.4762, allocations: 1.197 MB / 0.5663 GB, free: 14.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.4763, allocations: 55.41 kB / 0.5663 GB, free: 14.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.4765, allocations: 203.9 kB / 0.5665 GB, free: 14.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.4766, allocations: 37.7 kB / 0.5665 GB, free: 14.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.4767, allocations: 140.8 kB / 0.5667 GB, free: 14.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.4768, allocations: 126.9 kB / 0.5668 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.477, allocations: 65.69 kB / 0.5669 GB, free: 14.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.4772, allocations: 334.8 kB / 0.5672 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002597/0.4774, allocations: 116 kB / 0.5673 GB, free: 13.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003055/0.4777, allocations: 171.2 kB / 0.5674 GB, free: 13.58 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004511/0.4782, allocations: 236 kB / 0.5677 GB, free: 13.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.4782, allocations: 0 / 0.5677 GB, free: 13.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009559/0.4791, allocations: 426 kB / 0.5681 GB, free: 12.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.4792, allocations: 11.94 kB / 0.5681 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.4792, allocations: 0 / 0.5681 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005083/0.4797, allocations: 192.6 kB / 0.5683 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002389/0.4799, allocations: 51.97 kB / 0.5683 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008381/0.4807, allocations: 0.732 MB / 0.569 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/0.481, allocations: 31.95 kB / 0.5691 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.185e-05/0.4811, allocations: 19.98 kB / 0.5691 GB, free: 11.85 MB / 414.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,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002088/0.4813, allocations: 151 kB / 0.5692 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.144e-05/0.4814, allocations: 23.92 kB / 0.5693 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.231e-05/0.4814, allocations: 42.64 kB / 0.5693 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.4815, allocations: 4 kB / 0.5693 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.4815, allocations: 64 / 0.5693 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.4815, allocations: 4 kB / 0.5693 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001868/0.4833, allocations: 0.9158 MB / 0.5702 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.4833, allocations: 0 / 0.5702 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002393/0.4836, allocations: 47.97 kB / 0.5702 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000423/0.484, allocations: 176.6 kB / 0.5704 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.857e-05/0.484, allocations: 7.984 kB / 0.5704 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007793/0.4848, allocations: 0.6928 MB / 0.5711 GB, free: 9.699 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4848, allocations: 4.031 kB / 0.5711 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.486, allocations: 0.6075 MB / 0.5717 GB, free: 9.066 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.4862, allocations: 51.8 kB / 0.5717 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.498e-05/0.4863, allocations: 16 kB / 0.5718 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/0.4865, allocations: 35.95 kB / 0.5718 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.4867, allocations: 47.91 kB / 0.5718 GB, free: 8.918 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.4867, allocations: 7.984 kB / 0.5718 GB, free: 8.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001969/0.4869, allocations: 164.1 kB / 0.572 GB, free: 8.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4869, allocations: 4.062 kB / 0.572 GB, free: 8.746 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004041/0.4873, allocations: 71.98 kB / 0.5721 GB, free: 8.676 MB / 414.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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002818/0.4901, allocations: 1.381 MB / 0.5734 GB, free: 7.398 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009096/0.491, allocations: 299.9 kB / 0.5737 GB, free: 7.105 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.491, allocations: 0 / 0.5737 GB, free: 7.105 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000356/0.4914, allocations: 151.8 kB / 0.5739 GB, free: 6.957 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005063/0.4919, allocations: 51.75 kB / 0.5739 GB, free: 6.906 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006104/0.498, allocations: 3.074 MB / 0.5769 GB, free: 3.723 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/0.4985, allocations: 0.7641 MB / 0.5777 GB, free: 2.934 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001445/0.4987, allocations: 18.3 kB / 0.5777 GB, free: 2.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/0.4988, allocations: 75.41 kB / 0.5777 GB, free: 2.836 MB / 414.1 MB Notification: Performance of SimCode: time 2.415e-06/0.4988, allocations: 0 / 0.5777 GB, free: 2.836 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0367/0.5355, allocations: 8.277 MB / 0.5858 GB, free: 10.66 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.52, allocations: 4.062 kB / 0.5858 GB, free: 10.65 MB / 430.1 MB " [Timeout remaining time 646] (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 --stepSize=0.000219912 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.204814760014415]