Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001491/0.001491, 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.001775/0.001775, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.493/1.493, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2728/0.2728, allocations: 46.94 MB / 361.7 MB, free: 4.266 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 64.06 kB / 0.4969 GB, free: 7.914 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3476, allocations: 66.05 MB / 0.5614 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004214/0.3519, allocations: 2.381 MB / 0.5637 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001719/0.3536, allocations: 0.9229 MB / 0.5646 GB, free: 1.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.3537, allocations: 4 kB / 0.5646 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002828/0.354, allocations: 55.5 kB / 0.5647 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.3542, allocations: 75.41 kB / 0.5648 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003711/0.3546, allocations: 151.6 kB / 0.5649 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004154/0.355, allocations: 351.2 kB / 0.5652 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.3552, allocations: 71.08 kB / 0.5653 GB, free: 472 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002902/0.3555, allocations: 155.5 kB / 0.5655 GB, free: 316 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000297/0.3558, allocations: 167.4 kB / 0.5656 GB, free: 148 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.493e-05/0.3558, allocations: 28 kB / 0.5656 GB, free: 120 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001833/0.356, allocations: 79.98 kB / 0.5657 GB, free: 40 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.3561, allocations: 79.8 kB / 0.5658 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.3563, allocations: 147.2 kB / 0.5659 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005829/0.3569, allocations: 382.6 kB / 0.5663 GB, free: 15.44 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3569, allocations: 4 kB / 0.5663 GB, free: 15.44 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3569, allocations: 0 / 0.5663 GB, free: 15.44 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.3569, allocations: 3.938 kB / 0.5663 GB, free: 15.43 MB / 414.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.001101/0.358, allocations: 0.5168 MB / 0.5668 GB, free: 14.89 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.3581, allocations: 8.031 kB / 0.5668 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.249e-05/0.3581, allocations: 4.688 kB / 0.5668 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.544e-05/0.3582, allocations: 58.73 kB / 0.5669 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.3584, allocations: 36.78 kB / 0.5669 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004126/0.3588, allocations: 198.8 kB / 0.5671 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.3588, allocations: 20.88 kB / 0.5671 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.856e-05/0.3589, allocations: 24.38 kB / 0.5672 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005806/0.3595, allocations: 267.9 kB / 0.5674 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.3595, allocations: 3.953 kB / 0.5674 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.3595, allocations: 12 kB / 0.5674 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.3595, allocations: 4 kB / 0.5674 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005548/0.3601, allocations: 233.9 kB / 0.5677 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.3616, allocations: 0.7005 MB / 0.5683 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005952/0.3622, allocations: 230.4 kB / 0.5686 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002778/0.3624, allocations: 121.2 kB / 0.5687 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.3625, allocations: 8 kB / 0.5687 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.3625, allocations: 38.5 kB / 0.5687 GB, free: 12.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.453e-06/0.3625, allocations: 0 / 0.5687 GB, free: 12.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003374/0.3659, allocations: 1.189 MB / 0.5699 GB, free: 11.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.3659, allocations: 55.41 kB / 0.5699 GB, free: 11.53 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/0.3662, allocations: 203.9 kB / 0.5701 GB, free: 11.31 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.127e-05/0.3662, allocations: 33.7 kB / 0.5702 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.3664, allocations: 144.8 kB / 0.5703 GB, free: 11.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.3665, allocations: 119 kB / 0.5704 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.3666, allocations: 65.69 kB / 0.5705 GB, free: 10.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3668, allocations: 334.8 kB / 0.5708 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002816/0.3671, allocations: 124 kB / 0.5709 GB, free: 10.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.3674, allocations: 155.4 kB / 0.5711 GB, free: 10.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000473/0.3678, allocations: 244 kB / 0.5713 GB, free: 10.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3678, allocations: 4 kB / 0.5713 GB, free: 10.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009664/0.3688, allocations: 422 kB / 0.5717 GB, free: 9.641 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.3688, allocations: 11.94 kB / 0.5717 GB, free: 9.629 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3688, allocations: 0 / 0.5717 GB, free: 9.629 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000525/0.3694, allocations: 196.7 kB / 0.5719 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002357/0.3696, allocations: 51.95 kB / 0.5719 GB, free: 9.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008717/0.3705, allocations: 0.7281 MB / 0.5727 GB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/0.3707, allocations: 39.95 kB / 0.5727 GB, free: 8.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.844e-05/0.3708, allocations: 12.06 kB / 0.5727 GB, free: 8.578 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.0001974/0.371, allocations: 155 kB / 0.5729 GB, free: 8.418 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.827e-05/0.371, allocations: 23.86 kB / 0.5729 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.912e-05/0.3711, allocations: 34.66 kB / 0.5729 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.3711, allocations: 4 kB / 0.5729 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.3711, allocations: 3.984 kB / 0.5729 GB, free: 8.355 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3711, allocations: 0 / 0.5729 GB, free: 8.355 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001821/0.373, allocations: 0.9123 MB / 0.5738 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.373, allocations: 3.938 kB / 0.5738 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002395/0.3732, allocations: 47.97 kB / 0.5739 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004149/0.3736, allocations: 176.7 kB / 0.574 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.09e-05/0.3737, allocations: 7.984 kB / 0.574 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007682/0.3744, allocations: 0.6966 MB / 0.5747 GB, free: 6.426 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3744, allocations: 4.031 kB / 0.5747 GB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.3757, allocations: 0.6033 MB / 0.5753 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.3758, allocations: 51.8 kB / 0.5754 GB, free: 5.746 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.541e-05/0.3759, allocations: 12 kB / 0.5754 GB, free: 5.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002737/0.3762, allocations: 40.02 kB / 0.5754 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.3763, allocations: 47.91 kB / 0.5755 GB, free: 5.648 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.3764, allocations: 15.98 kB / 0.5755 GB, free: 5.633 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001587/0.3765, allocations: 156.1 kB / 0.5756 GB, free: 5.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3765, allocations: 0 / 0.5756 GB, free: 5.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003843/0.3769, allocations: 68 kB / 0.5757 GB, free: 5.414 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.002714/0.3796, allocations: 1.395 MB / 0.577 GB, free: 4.125 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008114/0.3804, allocations: 299.6 kB / 0.5773 GB, free: 3.832 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3804, allocations: 4 kB / 0.5773 GB, free: 3.828 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004414/0.3809, allocations: 151.7 kB / 0.5775 GB, free: 3.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.3813, allocations: 43.97 kB / 0.5775 GB, free: 3.637 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005486/0.3868, allocations: 3.079 MB / 0.5805 GB, free: 460 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004704/0.3873, allocations: 0.7563 MB / 0.5813 GB, free: 15.67 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.3874, allocations: 30.27 kB / 0.5813 GB, free: 15.63 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.3875, allocations: 71.41 kB / 0.5814 GB, free: 15.56 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3875, allocations: 4 kB / 0.5814 GB, free: 15.56 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0512/0.4387, allocations: 8.272 MB / 0.5894 GB, free: 7.383 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/13.91, allocations: 8 kB / 0.5895 GB, free: 7.375 MB / 430.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.276687990990467]