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.001689/0.001689, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002073/0.002073, allocations: 206 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.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 7.777 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.001565/0.001565, allocations: 47.92 kB / 377.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2479, allocations: 53.37 MB / 431.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.0133/0.2612, allocations: 9.836 MB / 440.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008477/0.2696, allocations: 3.855 MB / 444.8 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001479/0.2711, allocations: 79.62 kB / 444.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006255/0.2774, allocations: 3.088 MB / 447.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004989/0.2824, allocations: 1.946 MB / 449.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001965/0.2843, allocations: 0.8267 MB / 450.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006648/0.291, allocations: 4.404 MB / 455.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004161/0.2951, allocations: 3.036 MB / 458.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002613/0.2978, allocations: 1.647 MB / 459.8 MB, free: 9.738 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003516/0.3013, allocations: 2.278 MB / 462.1 MB, free: 7.453 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008704/0.3021, allocations: 348 kB / 462.4 MB, free: 7.113 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002321/0.3045, allocations: 1.147 MB / 463.6 MB, free: 5.965 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002108/0.3066, allocations: 2.057 MB / 465.6 MB, free: 3.902 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002176/0.3087, allocations: 1.709 MB / 467.3 MB, free: 2.184 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008544/0.3173, allocations: 7.49 MB / 474.8 MB, free: 10.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3173, allocations: 0 / 474.8 MB, free: 10.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3173, allocations: 7.938 kB / 474.8 MB, free: 10.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001857/0.3175, allocations: 0 / 474.8 MB, free: 10.65 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.01213/0.3296, allocations: 5.208 MB / 480 MB, free: 5.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.3297, allocations: 12.03 kB / 480.1 MB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001458/0.3311, allocations: 0.732 MB / 480.8 MB, free: 4.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0233/0.3544, allocations: 3.898 MB / 484.7 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007254/0.3617, allocations: 2.912 MB / 487.6 MB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002105/0.3619, allocations: 250.2 kB / 487.8 MB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007635/0.3626, allocations: 323.8 kB / 488.2 MB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01826/0.3809, allocations: 10.4 MB / 498.6 MB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001259/0.381, allocations: 55.56 kB / 498.6 MB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004083/0.3814, allocations: 151.8 kB / 498.8 MB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00354/0.385, allocations: 2.029 MB / 0.4891 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01784/0.4028, allocations: 8.76 MB / 0.4976 GB, free: 7.078 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2276/0.6304, allocations: 39.12 MB / 0.5358 GB, free: 92.37 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01054/0.6409, allocations: 3.792 MB / 0.5395 GB, free: 92.28 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002094/0.643, allocations: 2.237 MB / 0.5417 GB, free: 91.94 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009068/0.6521, allocations: 6.105 MB / 0.5477 GB, free: 89.63 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.6521, allocations: 50.94 kB / 0.5477 GB, free: 89.58 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.699e-06/0.6521, allocations: 0 / 0.5477 GB, free: 89.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.0376/0.6897, allocations: 17.86 MB / 0.5651 GB, free: 78.67 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.6898, allocations: 175.5 kB / 0.5653 GB, free: 78.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004292/0.6941, allocations: 4.793 MB / 0.57 GB, free: 73.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000186/0.6942, allocations: 53.7 kB / 0.57 GB, free: 73.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001198/0.6954, allocations: 3.269 MB / 0.5732 GB, free: 70.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004489/0.6959, allocations: 0.7889 MB / 0.574 GB, free: 69.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001147/0.697, allocations: 1.254 MB / 0.5752 GB, free: 68.53 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.055e-05/0.6971, allocations: 305.1 kB / 0.5755 GB, free: 68.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002357/0.6994, allocations: 2.272 MB / 0.5777 GB, free: 65.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003297/0.7027, allocations: 5.985 MB / 0.5836 GB, free: 58.19 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006843/0.7096, allocations: 8.959 MB / 0.5923 GB, free: 47.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.281e-05/0.7096, allocations: 39.94 kB / 0.5924 GB, free: 47.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01153/0.7212, allocations: 8.805 MB / 0.601 GB, free: 38.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.068e-05/0.7212, allocations: 60.19 kB / 0.601 GB, free: 38.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.665e-05/0.7213, allocations: 132 kB / 0.6012 GB, free: 38.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001922/0.7232, allocations: 0.9412 MB / 0.6021 GB, free: 37.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00449/0.7277, allocations: 1.4 MB / 0.6034 GB, free: 36.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006561/0.7343, allocations: 6.347 MB / 0.6096 GB, free: 29.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00426/0.7385, allocations: 343.6 kB / 0.61 GB, free: 29.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007102/0.7392, allocations: 383.9 kB / 0.6103 GB, free: 28.97 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.002589/0.7418, allocations: 2.166 MB / 0.6124 GB, free: 26.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006175/0.7424, allocations: 413.2 kB / 0.6128 GB, free: 26.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005135/0.7476, allocations: 3.679 MB / 0.6164 GB, free: 22.69 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.633e-05/0.7476, allocations: 20 kB / 0.6165 GB, free: 22.67 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.7476, allocations: 8 kB / 0.6165 GB, free: 22.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.7476, allocations: 7.969 kB / 0.6165 GB, free: 22.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01387/0.7615, allocations: 8.623 MB / 0.6249 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/0.7615, allocations: 8 kB / 0.6249 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/0.763, allocations: 315.5 kB / 0.6252 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001759/0.7647, allocations: 0.7689 MB / 0.6259 GB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002158/0.765, allocations: 43.53 kB / 0.626 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006673/0.7716, allocations: 5.968 MB / 0.6318 GB, free: 6.738 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.7716, allocations: 7.938 kB / 0.6318 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008065/0.7797, allocations: 6.606 MB / 0.6383 GB, free: 32 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001314/0.781, allocations: 405.3 kB / 0.6387 GB, free: 15.63 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005628/0.7816, allocations: 39 kB / 0.6387 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/0.7831, allocations: 115.8 kB / 0.6388 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/0.7834, allocations: 124.8 kB / 0.6389 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001506/0.7836, allocations: 63.34 kB / 0.639 GB, free: 15.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00489/0.7885, allocations: 2.936 MB / 0.6419 GB, free: 12.36 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7885, allocations: 0 / 0.6419 GB, free: 12.36 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005195/0.7937, allocations: 1.027 MB / 0.6429 GB, free: 11.34 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.01145/0.8051, allocations: 7.252 MB / 0.6499 GB, free: 3.988 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009549/0.8147, allocations: 5.313 MB / 0.6551 GB, free: 14.69 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/0.8147, allocations: 4.125 kB / 0.6551 GB, free: 14.69 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003532/0.8182, allocations: 1.847 MB / 0.6569 GB, free: 12.83 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003023/0.8212, allocations: 0.4935 MB / 0.6574 GB, free: 12.34 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08452/0.9057, allocations: 50.19 MB / 0.7064 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004753/0.9105, allocations: 2.831 MB / 0.7092 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005003/0.9155, allocations: 2.032 MB / 0.7112 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003334/0.9188, allocations: 1.995 MB / 0.7131 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of SimCode: time 9.62e-07/0.9188, allocations: 0 / 0.7131 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3179/1.237, allocations: 80.04 MB / 0.7913 GB, free: 159.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.84/18.07, allocations: 2.844 kB / 0.7913 GB, free: 159.9 MB / 0.545 GB " [Timeout remaining time 642] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000201919 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.csv","/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: 20.71164681398659]