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.001341/0.001341, 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.001512/0.001512, allocations: 213.9 kB / 23.73 MB, free: 4.16 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.541/1.541, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.2427/0.2427, allocations: 46.96 MB / 360.9 MB, free: 4.043 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="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.002314/0.002314, allocations: 75.86 kB / 0.4961 GB, free: 7.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3326/0.335, allocations: 66.03 MB / 0.5606 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.00387/0.3388, allocations: 2.255 MB / 0.5628 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.3403, allocations: 0.8645 MB / 0.5636 GB, free: 1.117 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.3404, allocations: 7.938 kB / 0.5636 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002615/0.3407, allocations: 59.5 kB / 0.5637 GB, free: 1.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.3409, allocations: 75.41 kB / 0.5638 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003572/0.3412, allocations: 143.6 kB / 0.5639 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003832/0.3416, allocations: 359.2 kB / 0.5642 GB, free: 496 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.3418, allocations: 62.94 kB / 0.5643 GB, free: 428 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002618/0.342, allocations: 151.6 kB / 0.5644 GB, free: 276 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002428/0.3423, allocations: 155.3 kB / 0.5646 GB, free: 120 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.139e-05/0.3423, allocations: 28 kB / 0.5646 GB, free: 92 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.3425, allocations: 87.97 kB / 0.5647 GB, free: 4 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.3426, allocations: 71.88 kB / 0.5648 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.3428, allocations: 115.5 kB / 0.5649 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004646/0.3432, allocations: 386.4 kB / 0.5653 GB, free: 15.44 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3432, allocations: 0 / 0.5653 GB, free: 15.44 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3432, allocations: 4 kB / 0.5653 GB, free: 15.44 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.3432, allocations: 3.938 kB / 0.5653 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.0009498/0.3442, allocations: 0.5168 MB / 0.5658 GB, free: 14.89 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.3442, allocations: 8.031 kB / 0.5658 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.373e-05/0.3443, allocations: 62.72 kB / 0.5658 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/0.3445, allocations: 36.78 kB / 0.5659 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003531/0.3448, allocations: 194.8 kB / 0.5661 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.3448, allocations: 12.88 kB / 0.5661 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.532e-05/0.3449, allocations: 28.36 kB / 0.5661 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005453/0.3454, allocations: 272.1 kB / 0.5664 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.3455, allocations: 3.953 kB / 0.5664 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.248e-05/0.3455, allocations: 11.98 kB / 0.5664 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.3455, allocations: 8 kB / 0.5664 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000535/0.346, allocations: 229.9 kB / 0.5666 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.3474, allocations: 0.6498 MB / 0.5672 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005862/0.348, allocations: 218.6 kB / 0.5674 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002735/0.3483, allocations: 133.2 kB / 0.5676 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.3483, allocations: 11.94 kB / 0.5676 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.3484, allocations: 34.5 kB / 0.5676 GB, free: 12.89 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.343e-06/0.3484, allocations: 0 / 0.5676 GB, free: 12.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003387/0.3518, allocations: 1.178 MB / 0.5688 GB, free: 11.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/0.3518, allocations: 59.34 kB / 0.5688 GB, free: 11.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000288/0.3521, allocations: 207.9 kB / 0.569 GB, free: 11.37 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/0.3521, allocations: 29.7 kB / 0.569 GB, free: 11.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.3523, allocations: 148.8 kB / 0.5692 GB, free: 11.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.3524, allocations: 119 kB / 0.5693 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.3526, allocations: 69.64 kB / 0.5694 GB, free: 10.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.3527, allocations: 338.8 kB / 0.5697 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002958/0.353, allocations: 120 kB / 0.5698 GB, free: 10.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003016/0.3533, allocations: 155.4 kB / 0.57 GB, free: 10.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004657/0.3538, allocations: 243.9 kB / 0.5702 GB, free: 10.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3538, allocations: 0 / 0.5702 GB, free: 10.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009076/0.3547, allocations: 418 kB / 0.5706 GB, free: 9.703 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.3547, allocations: 11.94 kB / 0.5706 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.3547, allocations: 4.062 kB / 0.5706 GB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005044/0.3553, allocations: 200.5 kB / 0.5708 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002427/0.3555, allocations: 51.91 kB / 0.5708 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008141/0.3563, allocations: 0.7281 MB / 0.5715 GB, free: 8.688 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002551/0.3566, allocations: 35.94 kB / 0.5716 GB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.299e-05/0.3566, allocations: 15.98 kB / 0.5716 GB, free: 8.637 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.0001769/0.3568, allocations: 154 kB / 0.5717 GB, free: 8.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.011e-05/0.3568, allocations: 19.92 kB / 0.5718 GB, free: 8.461 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.034e-05/0.3569, allocations: 46.64 kB / 0.5718 GB, free: 8.418 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.3569, allocations: 4 kB / 0.5718 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3569, allocations: 0 / 0.5718 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3569, allocations: 0 / 0.5718 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001655/0.3586, allocations: 0.8653 MB / 0.5727 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.3586, allocations: 8.031 kB / 0.5727 GB, free: 7.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/0.3588, allocations: 47.91 kB / 0.5727 GB, free: 7.434 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003885/0.3592, allocations: 176.6 kB / 0.5729 GB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.024e-05/0.3592, allocations: 11.98 kB / 0.5729 GB, free: 7.246 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000704/0.36, allocations: 0.6966 MB / 0.5736 GB, free: 6.523 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.36, allocations: 0 / 0.5736 GB, free: 6.523 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.3611, allocations: 0.6112 MB / 0.5742 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.3612, allocations: 47.84 kB / 0.5742 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.613e-05/0.3613, allocations: 12 kB / 0.5742 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000263/0.3616, allocations: 35.95 kB / 0.5743 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.3617, allocations: 47.91 kB / 0.5743 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.002e-05/0.3617, allocations: 15.98 kB / 0.5743 GB, free: 5.734 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001536/0.3619, allocations: 160.2 kB / 0.5745 GB, free: 5.578 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3619, allocations: 0 / 0.5745 GB, free: 5.578 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003614/0.3622, allocations: 75.92 kB / 0.5745 GB, free: 5.504 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.002761/0.365, allocations: 1.409 MB / 0.5759 GB, free: 4.219 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000754/0.3657, allocations: 303.6 kB / 0.5762 GB, free: 3.922 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3657, allocations: 4 kB / 0.5762 GB, free: 3.918 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003511/0.3661, allocations: 143.8 kB / 0.5764 GB, free: 3.777 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004277/0.3665, allocations: 44.31 kB / 0.5764 GB, free: 3.734 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005211/0.3717, allocations: 3.068 MB / 0.5794 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001792/0.3719, allocations: 158.6 kB / 0.5795 GB, free: 388 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001089/0.372, allocations: 22.3 kB / 0.5796 GB, free: 368 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.3722, allocations: 75.41 kB / 0.5796 GB, free: 292 kB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3722, allocations: 0 / 0.5796 GB, free: 292 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03885/0.411, allocations: 7.756 MB / 0.5872 GB, free: 8.605 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.36, allocations: 6.859 kB / 0.5872 GB, free: 8.602 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: 16.578761210199445]