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.001465/0.001465, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.001671/0.001671, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.578/1.578, allocations: 230.6 MB / 257.5 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.2465/0.2465, allocations: 46.93 MB / 360.9 MB, free: 4.285 MB / 286.1 MB " [Timeout remaining time 180] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002352/0.002352, allocations: 63.91 kB / 0.4961 GB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3564, allocations: 66.04 MB / 0.5606 GB, free: 4.477 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004154/0.3605, allocations: 2.384 MB / 0.563 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001718/0.3622, allocations: 0.9229 MB / 0.5639 GB, free: 1.152 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.3624, allocations: 4 kB / 0.5639 GB, free: 1.148 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003018/0.3627, allocations: 55.5 kB / 0.5639 GB, free: 1.094 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002227/0.3629, allocations: 79.41 kB / 0.564 GB, free: 1.016 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003742/0.3633, allocations: 147.6 kB / 0.5641 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003986/0.3637, allocations: 351.2 kB / 0.5645 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.3639, allocations: 66.95 kB / 0.5645 GB, free: 468 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002975/0.3642, allocations: 163.5 kB / 0.5647 GB, free: 304 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002831/0.3644, allocations: 167.4 kB / 0.5649 GB, free: 136 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.269e-05/0.3645, allocations: 28 kB / 0.5649 GB, free: 108 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001712/0.3647, allocations: 83.98 kB / 0.565 GB, free: 24 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.3648, allocations: 75.8 kB / 0.565 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.365, allocations: 139.3 kB / 0.5652 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005027/0.3655, allocations: 382.5 kB / 0.5655 GB, free: 15.44 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3655, allocations: 0 / 0.5655 GB, free: 15.44 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3655, allocations: 4 kB / 0.5655 GB, free: 15.43 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.3655, allocations: 0 / 0.5655 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.001017/0.3665, allocations: 0.5246 MB / 0.566 GB, free: 14.88 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3665, allocations: 8.031 kB / 0.5661 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.008e-05/0.3666, allocations: 54.73 kB / 0.5661 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/0.3668, allocations: 36.78 kB / 0.5661 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003647/0.3671, allocations: 202.8 kB / 0.5663 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/0.3672, allocations: 12.88 kB / 0.5663 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.566e-05/0.3672, allocations: 24.38 kB / 0.5664 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005594/0.3678, allocations: 272.1 kB / 0.5666 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.3678, allocations: 7.953 kB / 0.5666 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.3678, allocations: 8 kB / 0.5666 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.3679, allocations: 8 kB / 0.5667 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005171/0.3684, allocations: 229.9 kB / 0.5669 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.3698, allocations: 0.7044 MB / 0.5676 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005577/0.3703, allocations: 234.3 kB / 0.5678 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002592/0.3706, allocations: 125.2 kB / 0.5679 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.3706, allocations: 4 kB / 0.5679 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.3707, allocations: 38.5 kB / 0.5679 GB, free: 12.83 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.433e-06/0.3707, allocations: 0 / 0.5679 GB, free: 12.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003183/0.3738, allocations: 1.19 MB / 0.5691 GB, free: 11.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.562e-05/0.3739, allocations: 59.41 kB / 0.5692 GB, free: 11.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/0.3742, allocations: 211.8 kB / 0.5694 GB, free: 11.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.3742, allocations: 29.7 kB / 0.5694 GB, free: 11.26 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.3743, allocations: 144.8 kB / 0.5695 GB, free: 11.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.3744, allocations: 119.1 kB / 0.5696 GB, free: 10.99 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.3745, allocations: 65.69 kB / 0.5697 GB, free: 10.92 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3747, allocations: 338.8 kB / 0.57 GB, free: 10.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/0.375, allocations: 120 kB / 0.5701 GB, free: 10.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003035/0.3753, allocations: 159.4 kB / 0.5703 GB, free: 10.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004608/0.3757, allocations: 239.9 kB / 0.5705 GB, free: 10.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3757, allocations: 0 / 0.5705 GB, free: 10.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008995/0.3766, allocations: 430 kB / 0.5709 GB, free: 9.621 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3767, allocations: 7.938 kB / 0.5709 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.3767, allocations: 0 / 0.5709 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004918/0.3772, allocations: 188.8 kB / 0.5711 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002426/0.3774, allocations: 63.89 kB / 0.5712 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000813/0.3782, allocations: 0.7241 MB / 0.5719 GB, free: 8.613 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002714/0.3785, allocations: 35.98 kB / 0.5719 GB, free: 8.578 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.969e-05/0.3785, allocations: 12 kB / 0.5719 GB, free: 8.566 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.0001861/0.3787, allocations: 163.1 kB / 0.5721 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.537e-05/0.3788, allocations: 23.86 kB / 0.5721 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.317e-05/0.3789, allocations: 34.66 kB / 0.5721 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3789, allocations: 4 kB / 0.5721 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3789, allocations: 0 / 0.5721 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.3789, allocations: 3.984 kB / 0.5722 GB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001749/0.3806, allocations: 0.912 MB / 0.573 GB, free: 7.363 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3806, allocations: 0 / 0.573 GB, free: 7.363 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002341/0.3809, allocations: 39.98 kB / 0.5731 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003944/0.3813, allocations: 180.7 kB / 0.5733 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.3813, allocations: 8 kB / 0.5733 GB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000712/0.382, allocations: 0.6966 MB / 0.5739 GB, free: 6.414 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.382, allocations: 3.984 kB / 0.5739 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.3832, allocations: 0.6076 MB / 0.5745 GB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.3833, allocations: 51.8 kB / 0.5746 GB, free: 5.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.851e-05/0.3834, allocations: 12 kB / 0.5746 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.3836, allocations: 31.95 kB / 0.5746 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.3837, allocations: 51.97 kB / 0.5747 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/0.3838, allocations: 19.98 kB / 0.5747 GB, free: 5.617 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001584/0.3839, allocations: 152.2 kB / 0.5748 GB, free: 5.469 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3839, allocations: 0 / 0.5748 GB, free: 5.469 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003723/0.3843, allocations: 71.94 kB / 0.5749 GB, free: 5.398 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.002716/0.387, allocations: 1.391 MB / 0.5763 GB, free: 4.109 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000827/0.3878, allocations: 291.9 kB / 0.5765 GB, free: 3.824 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3878, allocations: 0 / 0.5765 GB, free: 3.824 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000373/0.3882, allocations: 159.7 kB / 0.5767 GB, free: 3.668 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004537/0.3887, allocations: 50.12 kB / 0.5767 GB, free: 3.621 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00535/0.394, allocations: 3.07 MB / 0.5797 GB, free: 452 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/0.3945, allocations: 0.7602 MB / 0.5805 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000126/0.3946, allocations: 34.25 kB / 0.5805 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.3947, allocations: 75.41 kB / 0.5806 GB, free: 15.54 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3947, allocations: 0 / 0.5806 GB, free: 15.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04088/0.4356, allocations: 8.237 MB / 0.5886 GB, free: 7.395 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/13.86, allocations: 11.06 kB / 0.5886 GB, free: 7.387 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.143249339889735]