Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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.001617/0.001617, allocations: 107.1 kB / 20.44 MB, free: 1.172 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.001984/0.001984, allocations: 207.4 kB / 23.73 MB, free: 4.379 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.4/1.4, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 55.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2753, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01172/0.2871, allocations: 9.817 MB / 440.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007937/0.295, allocations: 3.867 MB / 444.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001362/0.2964, allocations: 87.56 kB / 444.9 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006183/0.3025, allocations: 3.08 MB / 447.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005394/0.3079, allocations: 1.946 MB / 449.9 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001966/0.3099, allocations: 0.8189 MB / 450.7 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006685/0.3166, allocations: 4.417 MB / 455.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003871/0.3205, allocations: 3.036 MB / 458.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002591/0.323, allocations: 1.639 MB / 459.8 MB, free: 9.805 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003517/0.3266, allocations: 2.286 MB / 462.1 MB, free: 7.512 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007995/0.3274, allocations: 348 kB / 462.4 MB, free: 7.172 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002229/0.3296, allocations: 1.139 MB / 463.6 MB, free: 6.031 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002103/0.3317, allocations: 2.061 MB / 465.6 MB, free: 3.965 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002164/0.3339, allocations: 1.705 MB / 467.3 MB, free: 2.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009244/0.3431, allocations: 7.506 MB / 474.8 MB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3431, allocations: 0 / 474.8 MB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3431, allocations: 0 / 474.8 MB, free: 10.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002672/0.3434, allocations: 0 / 474.8 MB, free: 10.71 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.01243/0.3558, allocations: 5.207 MB / 480 MB, free: 5.449 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.192e-05/0.3559, allocations: 16.02 kB / 480.1 MB, free: 5.434 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001318/0.3572, allocations: 0.7282 MB / 480.8 MB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02197/0.3792, allocations: 3.898 MB / 484.7 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007586/0.3867, allocations: 2.92 MB / 487.6 MB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002181/0.387, allocations: 246.2 kB / 487.8 MB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009862/0.3879, allocations: 319.8 kB / 488.2 MB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01921/0.4072, allocations: 10.4 MB / 498.6 MB, free: 2.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001233/0.4073, allocations: 47.62 kB / 498.6 MB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004434/0.4077, allocations: 155.8 kB / 498.8 MB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00369/0.4114, allocations: 2.025 MB / 0.489 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01748/0.4289, allocations: 8.764 MB / 0.4976 GB, free: 7.148 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2769/0.7058, allocations: 39.12 MB / 0.5358 GB, free: 92.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01158/0.7174, allocations: 3.801 MB / 0.5395 GB, free: 92.23 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002334/0.7197, allocations: 2.23 MB / 0.5417 GB, free: 91.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01038/0.7301, allocations: 6.096 MB / 0.5477 GB, free: 89.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/0.7301, allocations: 54.59 kB / 0.5477 GB, free: 89.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 5.991e-06/0.7302, allocations: 0 / 0.5477 GB, free: 89.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.04107/0.7712, allocations: 17.85 MB / 0.5651 GB, free: 78.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/0.7713, allocations: 175.5 kB / 0.5653 GB, free: 78.56 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005492/0.7768, allocations: 4.794 MB / 0.57 GB, free: 73.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005477/0.7773, allocations: 53.7 kB / 0.57 GB, free: 73.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001902/0.7792, allocations: 3.268 MB / 0.5732 GB, free: 70.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009594/0.7802, allocations: 0.79 MB / 0.574 GB, free: 69.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001449/0.7816, allocations: 1.25 MB / 0.5752 GB, free: 68.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.006e-05/0.7817, allocations: 308.5 kB / 0.5755 GB, free: 68.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002513/0.7842, allocations: 2.282 MB / 0.5777 GB, free: 66.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003704/0.7879, allocations: 5.981 MB / 0.5836 GB, free: 58.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007218/0.7951, allocations: 8.958 MB / 0.5923 GB, free: 47.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001112/0.7952, allocations: 37.78 kB / 0.5924 GB, free: 47.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01281/0.808, allocations: 8.804 MB / 0.601 GB, free: 38.76 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.058e-05/0.8081, allocations: 60 kB / 0.601 GB, free: 38.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/0.8082, allocations: 128 kB / 0.6011 GB, free: 38.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002011/0.8102, allocations: 0.9337 MB / 0.6021 GB, free: 37.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004204/0.8144, allocations: 1.411 MB / 0.6034 GB, free: 36.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006262/0.8207, allocations: 6.353 MB / 0.6096 GB, free: 29.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004654/0.8254, allocations: 343.6 kB / 0.61 GB, free: 29.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001032/0.8264, allocations: 372.8 kB / 0.6103 GB, free: 29.06 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 738 * Array equations: 5 * 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): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003865/0.8302, allocations: 2.159 MB / 0.6124 GB, free: 26.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009887/0.8312, allocations: 409.3 kB / 0.6128 GB, free: 26.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006078/0.8373, allocations: 3.683 MB / 0.6164 GB, free: 22.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.924e-05/0.8374, allocations: 27.47 kB / 0.6164 GB, free: 22.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.826e-05/0.8374, allocations: 11.25 kB / 0.6165 GB, free: 22.76 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.361e-05/0.8374, allocations: 13.05 kB / 0.6165 GB, free: 22.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0166/0.854, allocations: 8.62 MB / 0.6249 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.237e-05/0.854, allocations: 11.94 kB / 0.6249 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001432/0.8555, allocations: 319.5 kB / 0.6252 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001817/0.8573, allocations: 0.765 MB / 0.626 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000205/0.8575, allocations: 43.94 kB / 0.626 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006222/0.8637, allocations: 5.955 MB / 0.6318 GB, free: 6.836 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.8637, allocations: 8 kB / 0.6318 GB, free: 6.828 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007532/0.8712, allocations: 6.606 MB / 0.6383 GB, free: 140 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/0.8725, allocations: 409 kB / 0.6387 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008518/0.8734, allocations: 36 kB / 0.6387 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001965/0.8753, allocations: 119.8 kB / 0.6388 GB, free: 15.58 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003308/0.8757, allocations: 125 kB / 0.6389 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001623/0.8758, allocations: 63.92 kB / 0.639 GB, free: 15.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005268/0.8811, allocations: 2.932 MB / 0.6419 GB, free: 12.46 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8811, allocations: 0 / 0.6419 GB, free: 12.46 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005031/0.8861, allocations: 1.016 MB / 0.6428 GB, free: 11.45 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 153 * Array equations: 3 * 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): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01037/0.8965, allocations: 7.265 MB / 0.6499 GB, free: 4.082 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008473/0.905, allocations: 5.314 MB / 0.6551 GB, free: 14.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/0.905, allocations: 4 kB / 0.6551 GB, free: 14.78 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003141/0.9081, allocations: 1.842 MB / 0.6569 GB, free: 12.92 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003668/0.9118, allocations: 0.5047 MB / 0.6574 GB, free: 12.43 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07803/0.9898, allocations: 50.19 MB / 0.7064 GB, free: 4.34 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004606/0.9944, allocations: 2.827 MB / 0.7092 GB, free: 1.465 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004869/0.9993, allocations: 2.037 MB / 0.7112 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003085/1.002, allocations: 1.987 MB / 0.7131 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of SimCode: time 9.52e-07/1.002, allocations: 0 / 0.7131 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.013/2.016, allocations: 80.04 MB / 0.7913 GB, free: 159.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.34/18.36, allocations: 6.219 kB / 0.7913 GB, free: 159.9 MB / 0.545 GB " [Timeout remaining time 641] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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: 21.9371033560019]