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.001327/0.001327, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001511/0.001511, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.491/1.491, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.2332/0.2332, allocations: 44.93 MB / 358.8 MB, free: 6.059 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="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"}) [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.002199/0.002199, allocations: 67.89 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3607, allocations: 65.47 MB / 0.557 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.00412/0.3648, allocations: 2.257 MB / 0.5592 GB, free: 5.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001674/0.3665, allocations: 0.8607 MB / 0.56 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.3666, allocations: 3.938 kB / 0.56 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002925/0.3669, allocations: 51.58 kB / 0.5601 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002184/0.3671, allocations: 75.39 kB / 0.5601 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.3676, allocations: 151.6 kB / 0.5603 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005118/0.3681, allocations: 355.3 kB / 0.5606 GB, free: 3.777 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.3683, allocations: 66.88 kB / 0.5607 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003155/0.3686, allocations: 155.6 kB / 0.5608 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003645/0.369, allocations: 147.4 kB / 0.561 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.156e-05/0.3691, allocations: 28 kB / 0.561 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.3693, allocations: 87.97 kB / 0.5611 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.3694, allocations: 79.69 kB / 0.5611 GB, free: 3.219 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.3695, allocations: 111.5 kB / 0.5613 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005346/0.37, allocations: 398.5 kB / 0.5616 GB, free: 2.719 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3701, allocations: 0 / 0.5616 GB, free: 2.719 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3701, allocations: 0 / 0.5616 GB, free: 2.719 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.3701, allocations: 0 / 0.5616 GB, free: 2.719 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.001047/0.3711, allocations: 0.5129 MB / 0.5621 GB, free: 2.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.3712, allocations: 8.031 kB / 0.5621 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.515e-05/0.3712, allocations: 58.73 kB / 0.5622 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.3714, allocations: 36.78 kB / 0.5622 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.3718, allocations: 202.8 kB / 0.5624 GB, free: 1.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/0.3719, allocations: 16.88 kB / 0.5624 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.983e-05/0.3719, allocations: 24.38 kB / 0.5625 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005851/0.3725, allocations: 272.1 kB / 0.5627 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.3725, allocations: 3.953 kB / 0.5627 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.3726, allocations: 12 kB / 0.5627 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.3726, allocations: 4 kB / 0.5627 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005685/0.3731, allocations: 229.8 kB / 0.563 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.3747, allocations: 0.6498 MB / 0.5636 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006003/0.3753, allocations: 226.4 kB / 0.5638 GB, free: 372 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002651/0.3755, allocations: 121.2 kB / 0.5639 GB, free: 248 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.468e-05/0.3756, allocations: 7.938 kB / 0.5639 GB, free: 240 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/0.3756, allocations: 38.56 kB / 0.564 GB, free: 192 kB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.214e-06/0.3756, allocations: 4 kB / 0.564 GB, free: 188 kB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.003371/0.379, allocations: 1.185 MB / 0.5651 GB, free: 14.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.379, allocations: 59.41 kB / 0.5652 GB, free: 14.87 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002456/0.3793, allocations: 203.9 kB / 0.5654 GB, free: 14.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.909e-05/0.3793, allocations: 33.7 kB / 0.5654 GB, free: 14.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.3794, allocations: 140.8 kB / 0.5656 GB, free: 14.47 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.3795, allocations: 123 kB / 0.5657 GB, free: 14.35 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.3797, allocations: 69.64 kB / 0.5657 GB, free: 14.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002626/0.3799, allocations: 342.8 kB / 0.5661 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002813/0.3802, allocations: 116 kB / 0.5662 GB, free: 13.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003002/0.3805, allocations: 167.2 kB / 0.5663 GB, free: 13.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004559/0.381, allocations: 236 kB / 0.5666 GB, free: 13.4 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.381, allocations: 0 / 0.5666 GB, free: 13.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008927/0.3819, allocations: 422 kB / 0.567 GB, free: 12.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.3819, allocations: 11.94 kB / 0.567 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.3819, allocations: 3.938 kB / 0.567 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004984/0.3824, allocations: 192.6 kB / 0.5672 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002424/0.3826, allocations: 60.05 kB / 0.5672 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008439/0.3835, allocations: 0.7344 MB / 0.5679 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003128/0.3838, allocations: 35.98 kB / 0.568 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.471e-05/0.3838, allocations: 15.94 kB / 0.568 GB, free: 11.91 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.0001835/0.384, allocations: 151.9 kB / 0.5681 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.685e-05/0.3841, allocations: 23.86 kB / 0.5682 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.706e-05/0.3842, allocations: 34.66 kB / 0.5682 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.3842, allocations: 8.062 kB / 0.5682 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3842, allocations: 0 / 0.5682 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.3842, allocations: 3.984 kB / 0.5682 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/0.3859, allocations: 0.8613 MB / 0.569 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.3859, allocations: 4 kB / 0.569 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.3861, allocations: 43.98 kB / 0.5691 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003984/0.3865, allocations: 180.7 kB / 0.5693 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.898e-05/0.3866, allocations: 11.98 kB / 0.5693 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007229/0.3873, allocations: 0.6927 MB / 0.5699 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3873, allocations: 0 / 0.5699 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.3885, allocations: 0.6114 MB / 0.5705 GB, free: 9.176 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.3886, allocations: 51.84 kB / 0.5706 GB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.449e-05/0.3887, allocations: 8 kB / 0.5706 GB, free: 9.117 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.389, allocations: 35.95 kB / 0.5706 GB, free: 9.082 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.3891, allocations: 47.91 kB / 0.5707 GB, free: 9.035 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.782e-05/0.3891, allocations: 15.98 kB / 0.5707 GB, free: 9.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002905/0.3894, allocations: 152.2 kB / 0.5708 GB, free: 8.871 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3894, allocations: 0 / 0.5708 GB, free: 8.871 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003731/0.3898, allocations: 80 kB / 0.5709 GB, free: 8.793 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.003087/0.3929, allocations: 1.417 MB / 0.5723 GB, free: 7.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000777/0.3937, allocations: 291.9 kB / 0.5726 GB, free: 7.215 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3937, allocations: 4 kB / 0.5726 GB, free: 7.211 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003521/0.394, allocations: 155.7 kB / 0.5727 GB, free: 7.059 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/0.3945, allocations: 39.72 kB / 0.5728 GB, free: 7.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005746/0.4002, allocations: 3.075 MB / 0.5758 GB, free: 3.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001807/0.4004, allocations: 146.7 kB / 0.5759 GB, free: 3.672 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.4005, allocations: 42.19 kB / 0.5759 GB, free: 3.633 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002413/0.4007, allocations: 75.41 kB / 0.576 GB, free: 3.559 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4007, allocations: 0 / 0.576 GB, free: 3.559 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04737/0.4481, allocations: 7.749 MB / 0.5836 GB, free: 11.88 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.4, allocations: 9.922 kB / 0.5836 GB, free: 11.88 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: 16.59178678598255]