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.001286/0.001286, allocations: 114.4 kB / 17.78 MB, free: 5.277 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.001268/0.001268, allocations: 183.8 kB / 18.72 MB, free: 4.352 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.433/1.433, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2252/0.2252, allocations: 44.19 MB / 336.8 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 71.89 kB / 470.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3499, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01728/0.3672, allocations: 14.78 MB / 0.5329 GB, free: 8.727 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.3797, allocations: 5.009 MB / 0.5378 GB, free: 4.758 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00305/0.3828, allocations: 101.5 kB / 0.5379 GB, free: 4.738 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008475/0.3913, allocations: 4.161 MB / 0.5419 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00696/0.3984, allocations: 2.369 MB / 0.5442 GB, free: 220 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00283/0.4012, allocations: 1.074 MB / 0.5453 GB, free: 15.46 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01141/0.4126, allocations: 7.052 MB / 0.5522 GB, free: 9.523 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007007/0.4197, allocations: 5.162 MB / 0.5572 GB, free: 4.301 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004814/0.4245, allocations: 2.255 MB / 0.5594 GB, free: 2.039 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00524/0.4298, allocations: 3.069 MB / 0.5624 GB, free: 14.96 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001514/0.4314, allocations: 500 kB / 0.5629 GB, free: 14.47 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004087/0.4355, allocations: 1.381 MB / 0.5642 GB, free: 13.09 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003585/0.4391, allocations: 2.778 MB / 0.567 GB, free: 10.3 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005591/0.4447, allocations: 3.318 MB / 0.5702 GB, free: 6.969 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01451/0.4592, allocations: 10.31 MB / 0.5803 GB, free: 12.62 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.4593, allocations: 0 / 0.5803 GB, free: 12.62 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4593, allocations: 0 / 0.5803 GB, free: 12.62 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003927/0.4597, allocations: 0 / 0.5803 GB, free: 12.62 MB / 446.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.02077/0.4805, allocations: 7.364 MB / 0.5875 GB, free: 5.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.4805, allocations: 8.031 kB / 0.5875 GB, free: 5.152 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00231/0.4828, allocations: 0.9385 MB / 0.5884 GB, free: 4.203 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.179/0.6619, allocations: 12.59 MB / 0.6007 GB, free: 7.586 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01286/0.6748, allocations: 5.421 MB / 0.606 GB, free: 2.082 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003383/0.6752, allocations: 332.6 kB / 0.6063 GB, free: 1.754 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001614/0.6768, allocations: 447.7 kB / 0.6067 GB, free: 1.316 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02916/0.7059, allocations: 13.15 MB / 0.6196 GB, free: 3.297 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000272/0.7063, allocations: 71.47 kB / 0.6196 GB, free: 3.227 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009618/0.7073, allocations: 211.8 kB / 0.6198 GB, free: 3.02 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005227/0.7125, allocations: 2.582 MB / 0.6223 GB, free: 444 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02515/0.7377, allocations: 11.28 MB / 0.6334 GB, free: 5.141 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08245/0.8202, allocations: 52.63 MB / 0.6848 GB, free: 14.99 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01507/0.8353, allocations: 5.528 MB / 0.6902 GB, free: 9.316 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005223/0.8406, allocations: 3.389 MB / 0.6935 GB, free: 5.922 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009829/0.8416, allocations: 0.6838 MB / 0.6941 GB, free: 5.129 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.028e-05/0.8417, allocations: 60.5 kB / 0.6942 GB, free: 5.059 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 1.22e-05/0.8417, allocations: 7.922 kB / 0.6942 GB, free: 5.051 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.3489/1.191, allocations: 35.37 MB / 0.7287 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.883e-05/1.191, allocations: 270 kB / 0.729 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009283/1.2, allocations: 5.259 MB / 0.7341 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007123/1.201, allocations: 72.36 kB / 0.7342 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003059/1.204, allocations: 4.108 MB / 0.7382 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001667/1.206, allocations: 1.228 MB / 0.7394 GB, free: 156.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003626/1.209, allocations: 1.529 MB / 0.7409 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.823e-05/1.209, allocations: 307.5 kB / 0.7412 GB, free: 155.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004642/1.214, allocations: 3.408 MB / 0.7445 GB, free: 154 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006476/1.22, allocations: 7.588 MB / 0.7519 GB, free: 147.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01164/1.232, allocations: 11.87 MB / 0.7635 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001349/1.232, allocations: 44 kB / 0.7636 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02152/1.254, allocations: 12.78 MB / 0.7761 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001368/1.254, allocations: 69.88 kB / 0.7761 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001864/1.254, allocations: 144.9 kB / 0.7763 GB, free: 124.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005526/1.26, allocations: 2.247 MB / 0.7785 GB, free: 122.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00561/1.265, allocations: 1.723 MB / 0.7801 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01709/1.283, allocations: 16.39 MB / 0.7961 GB, free: 103.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006675/1.289, allocations: 455.1 kB / 0.7966 GB, free: 103.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001412/1.291, allocations: 447.9 kB / 0.797 GB, free: 103 MB / 0.5606 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.00507/1.296, allocations: 2.767 MB / 0.7997 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001353/1.297, allocations: 0.5083 MB / 0.8002 GB, free: 99.74 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01219/1.309, allocations: 7.3 MB / 0.8073 GB, free: 92.38 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.172e-05/1.309, allocations: 35.09 kB / 0.8074 GB, free: 92.34 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.361e-05/1.31, allocations: 8 kB / 0.8074 GB, free: 92.34 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.905e-05/1.31, allocations: 16.45 kB / 0.8074 GB, free: 92.32 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03094/1.341, allocations: 16.16 MB / 0.8232 GB, free: 76.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.652e-05/1.341, allocations: 4 kB / 0.8232 GB, free: 76.09 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0026/1.343, allocations: 0.4992 MB / 0.8237 GB, free: 75.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005105/1.348, allocations: 2.011 MB / 0.8256 GB, free: 73.58 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008472/1.349, allocations: 59.98 kB / 0.8257 GB, free: 73.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01783/1.367, allocations: 14.9 MB / 0.8402 GB, free: 58.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/1.367, allocations: 11.78 kB / 0.8402 GB, free: 58.36 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01828/1.385, allocations: 11.7 MB / 0.8517 GB, free: 46.46 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001715/1.387, allocations: 0.5638 MB / 0.8522 GB, free: 45.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001801/1.389, allocations: 56 kB / 0.8523 GB, free: 45.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003432/1.392, allocations: 211.7 kB / 0.8525 GB, free: 45.61 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008653/1.393, allocations: 203.2 kB / 0.8527 GB, free: 45.42 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004892/1.394, allocations: 87.98 kB / 0.8528 GB, free: 45.33 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005812/1.4, allocations: 3.326 MB / 0.856 GB, free: 42.02 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.91e-07/1.4, allocations: 0 / 0.856 GB, free: 42.02 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007954/1.408, allocations: 1.481 MB / 0.8574 GB, free: 40.54 MB / 0.5606 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.01878/1.426, allocations: 12.41 MB / 0.8696 GB, free: 27.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0122/1.439, allocations: 8.479 MB / 0.8778 GB, free: 19.44 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/1.439, allocations: 4 kB / 0.8779 GB, free: 19.44 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007678/1.446, allocations: 4.096 MB / 0.8819 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006766/1.453, allocations: 0.7178 MB / 0.8826 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4319/1.885, allocations: 68.58 MB / 0.9495 GB, free: 212.9 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005832/1.891, allocations: 4.326 MB / 0.9538 GB, free: 212.1 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.006041/1.897, allocations: 2.472 MB / 0.9562 GB, free: 212 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003868/1.901, allocations: 2.742 MB / 0.9588 GB, free: 212 MB / 0.6231 GB Notification: Performance of SimCode: time 8.62e-07/1.901, allocations: 2 kB / 0.9588 GB, free: 212 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1545/2.056, allocations: 112.6 MB / 1.069 GB, free: 117.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.02/25.08, allocations: 11.61 kB / 1.069 GB, free: 117.9 MB / 0.6231 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)