Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 104.2 kB / 17.63 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 191.9 kB / 18.56 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 242.3 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2101/0.2101, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001287, allocations: 67.98 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1247, allocations: 60.83 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01624/0.141, allocations: 14.78 MB / 484.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.1516, allocations: 5.015 MB / 489.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002622/0.1543, allocations: 99.69 kB / 489.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008204/0.1625, allocations: 4.166 MB / 493.4 MB, free: 6.113 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007266/0.1698, allocations: 2.361 MB / 495.8 MB, free: 3.742 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003221/0.1731, allocations: 1.072 MB / 496.9 MB, free: 2.668 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01086/0.184, allocations: 7.058 MB / 0.4921 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008467/0.1925, allocations: 5.155 MB / 0.4971 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00458/0.1971, allocations: 2.243 MB / 0.4993 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005247/0.2024, allocations: 3.077 MB / 0.5023 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001972/0.2044, allocations: 500 kB / 0.5028 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2381/0.4425, allocations: 1.38 MB / 0.5042 GB, free: 20.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004604/0.4471, allocations: 2.765 MB / 0.5069 GB, free: 20.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01047/0.4576, allocations: 3.319 MB / 0.5101 GB, free: 19.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01579/0.4735, allocations: 9.998 MB / 0.5199 GB, free: 18.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.4735, allocations: 0 / 0.5199 GB, free: 18.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4735, allocations: 2.156 kB / 0.5199 GB, free: 18.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004172/0.4739, allocations: 3.938 kB / 0.5199 GB, free: 18.51 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: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.02891/0.5029, allocations: 7.172 MB / 0.5269 GB, free: 15.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.5029, allocations: 9.875 kB / 0.5269 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00411/0.5071, allocations: 0.9473 MB / 0.5278 GB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2063/0.7134, allocations: 12.54 MB / 0.5401 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01304/0.7264, allocations: 5.305 MB / 0.5452 GB, free: 5.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002619/0.7267, allocations: 331.2 kB / 0.5456 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002406/0.7292, allocations: 449 kB / 0.546 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02827/0.7574, allocations: 13.15 MB / 0.5588 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003698/0.7579, allocations: 72.73 kB / 0.5589 GB, free: 7.152 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002032/0.7599, allocations: 207.8 kB / 0.5591 GB, free: 6.992 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005186/0.7651, allocations: 2.587 MB / 0.5616 GB, free: 4.441 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02664/0.7918, allocations: 11.3 MB / 0.5726 GB, free: 9.375 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07843/0.8703, allocations: 52.78 MB / 0.6242 GB, free: 3.789 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01437/0.8847, allocations: 5.538 MB / 0.6296 GB, free: 14.12 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004775/0.8895, allocations: 3.377 MB / 0.6329 GB, free: 10.73 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000804/0.8903, allocations: 0.6853 MB / 0.6336 GB, free: 9.953 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.227e-05/0.8904, allocations: 63.56 kB / 0.6336 GB, free: 9.887 MB / 478.1 MB Notification: Performance of pre-optimization done (n=245): time 6.281e-06/0.8904, allocations: 3.938 kB / 0.6336 GB, free: 9.883 MB / 478.1 MB Notification: Performance of matching and sorting (n=315): time 0.114/1.004, allocations: 35.05 MB / 0.6679 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/1.005, allocations: 273.3 kB / 0.6681 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009908/1.015, allocations: 5.249 MB / 0.6732 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001141/1.016, allocations: 69.7 kB / 0.6733 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003167/1.019, allocations: 3.959 MB / 0.6772 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001998/1.021, allocations: 1.17 MB / 0.6783 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002913/1.024, allocations: 1.526 MB / 0.6798 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001331/1.024, allocations: 305.1 kB / 0.6801 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005548/1.03, allocations: 3.413 MB / 0.6834 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01084/1.04, allocations: 7.582 MB / 0.6908 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2816/1.322, allocations: 11.88 MB / 0.7024 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000218/1.322, allocations: 40.78 kB / 0.7025 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02992/1.352, allocations: 12.75 MB / 0.7149 GB, free: 178 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001248/1.352, allocations: 69.78 kB / 0.715 GB, free: 178 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002482/1.353, allocations: 145 kB / 0.7151 GB, free: 178 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005935/1.359, allocations: 2.255 MB / 0.7173 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006286/1.365, allocations: 1.73 MB / 0.719 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01742/1.382, allocations: 16.39 MB / 0.735 GB, free: 168.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008525/1.391, allocations: 442.5 kB / 0.7355 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001589/1.393, allocations: 447.9 kB / 0.7359 GB, free: 168.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (909): * Single equations (assignments): 904 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006583/1.399, allocations: 2.767 MB / 0.7386 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001386/1.401, allocations: 489.7 kB / 0.7391 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01192/1.412, allocations: 7.305 MB / 0.7462 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.562e-05/1.413, allocations: 32 kB / 0.7462 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.152e-05/1.413, allocations: 12 kB / 0.7462 GB, free: 161.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.191e-05/1.413, allocations: 12.47 kB / 0.7463 GB, free: 161.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03119/1.444, allocations: 16.43 MB / 0.7623 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.252e-05/1.444, allocations: 7.984 kB / 0.7623 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002275/1.446, allocations: 0.4952 MB / 0.7628 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004658/1.451, allocations: 2.006 MB / 0.7647 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005062/1.451, allocations: 60 kB / 0.7648 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01731/1.469, allocations: 14.8 MB / 0.7793 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/1.469, allocations: 18.67 kB / 0.7793 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01656/1.485, allocations: 11.65 MB / 0.7906 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00212/1.487, allocations: 0.5376 MB / 0.7912 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001557/1.489, allocations: 67.94 kB / 0.7912 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003033/1.492, allocations: 210.6 kB / 0.7914 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006534/1.493, allocations: 201.6 kB / 0.7916 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002328/1.493, allocations: 86.8 kB / 0.7917 GB, free: 115.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005248/1.498, allocations: 3.326 MB / 0.795 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.11e-07/1.498, allocations: 0 / 0.795 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008643/1.507, allocations: 1.483 MB / 0.7964 GB, free: 110.4 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (253): * Single equations (assignments): 248 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,17,46.9%), (7,17,46.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01622/1.523, allocations: 12.36 MB / 0.8085 GB, free: 97.85 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01778/1.541, allocations: 11.93 MB / 0.8201 GB, free: 85.91 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/1.541, allocations: 0 / 0.8201 GB, free: 85.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006616/1.548, allocations: 4.094 MB / 0.8241 GB, free: 81.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004641/1.552, allocations: 0.7039 MB / 0.8248 GB, free: 81.11 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.103/1.655, allocations: 80.27 MB / 0.9032 GB, free: 6.902 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006156/1.662, allocations: 4.328 MB / 0.9074 GB, free: 2.531 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006416/1.668, allocations: 2.469 MB / 0.9098 GB, free: 56 kB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2232/1.891, allocations: 2.744 MB / 0.9125 GB, free: 192.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.953e-06/1.891, allocations: 2.734 kB / 0.9125 GB, free: 192.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2099/2.101, allocations: 117 MB / 1.027 GB, free: 101.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/14.44, allocations: 13.58 kB / 1.027 GB, free: 101.2 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1)