Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001398/0.001398, allocations: 105.8 kB / 19.74 MB, free: 2.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001531/0.001531, allocations: 219.9 kB / 22.92 MB, free: 5.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 230.2 MB / 256.2 MB, free: 8.766 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.1977/0.1977, allocations: 46.88 MB / 359.3 MB, free: 4.996 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 83.86 kB / 0.494 GB, free: 9.125 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2652, allocations: 65.99 MB / 0.5584 GB, free: 5.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01022/0.2755, allocations: 8.993 MB / 0.5672 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006766/0.2822, allocations: 3.586 MB / 0.5707 GB, free: 8.594 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001125/0.2834, allocations: 47.88 kB / 0.5707 GB, free: 8.547 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003214/0.2866, allocations: 1.693 MB / 0.5724 GB, free: 6.848 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003463/0.29, allocations: 1.572 MB / 0.5739 GB, free: 5.273 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.2912, allocations: 0.5614 MB / 0.5745 GB, free: 4.711 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004224/0.2954, allocations: 3.576 MB / 0.578 GB, free: 1.125 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001854/0.2973, allocations: 1.63 MB / 0.5796 GB, free: 15.44 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001365/0.2986, allocations: 1.098 MB / 0.5806 GB, free: 14.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001935/0.3006, allocations: 1.663 MB / 0.5823 GB, free: 12.67 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000362/0.3009, allocations: 220 kB / 0.5825 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001749/0.3027, allocations: 1.135 MB / 0.5836 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001363/0.304, allocations: 1.453 MB / 0.585 GB, free: 9.863 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001494/0.3055, allocations: 1.685 MB / 0.5866 GB, free: 8.168 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005467/0.311, allocations: 5.568 MB / 0.5921 GB, free: 2.578 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.311, allocations: 0 / 0.5921 GB, free: 2.578 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.311, allocations: 3.938 kB / 0.5921 GB, free: 2.574 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.294e-05/0.3111, allocations: 0 / 0.5921 GB, free: 2.574 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.007818/0.3189, allocations: 3.889 MB / 0.5959 GB, free: 14.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.3189, allocations: 11.97 kB / 0.5959 GB, free: 14.6 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006529/0.3196, allocations: 0.5423 MB / 0.5964 GB, free: 14.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08361/0.4032, allocations: 6.939 MB / 0.6032 GB, free: 7.094 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004803/0.408, allocations: 2.405 MB / 0.6055 GB, free: 4.637 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.4081, allocations: 164.5 kB / 0.6057 GB, free: 4.473 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003869/0.4085, allocations: 223.7 kB / 0.6059 GB, free: 4.254 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009511/0.418, allocations: 7.34 MB / 0.6131 GB, free: 12.29 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.702e-05/0.4181, allocations: 35.7 kB / 0.6131 GB, free: 12.25 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002693/0.4184, allocations: 103.9 kB / 0.6132 GB, free: 12.15 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002412/0.4208, allocations: 1.55 MB / 0.6147 GB, free: 10.6 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009854/0.4306, allocations: 6.182 MB / 0.6208 GB, free: 4.398 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03008/0.4607, allocations: 29.91 MB / 0.65 GB, free: 5.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004109/0.4648, allocations: 2.098 MB / 0.652 GB, free: 3.324 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001256/0.4661, allocations: 0.9885 MB / 0.653 GB, free: 2.324 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003451/0.4664, allocations: 319.6 kB / 0.6533 GB, free: 1.957 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.4665, allocations: 47 kB / 0.6533 GB, free: 1.902 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 2.845e-06/0.4665, allocations: 0 / 0.6533 GB, free: 1.902 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.0313/0.4978, allocations: 11.06 MB / 0.6641 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.4979, allocations: 192.6 kB / 0.6643 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004628/0.5025, allocations: 3.618 MB / 0.6679 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001804/0.5027, allocations: 45.7 kB / 0.6679 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001884/0.5046, allocations: 2.659 MB / 0.6705 GB, free: 156 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005861/0.5052, allocations: 0.5585 MB / 0.671 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001288/0.5064, allocations: 1.052 MB / 0.6721 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.5066, allocations: 301.1 kB / 0.6724 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002343/0.5089, allocations: 1.63 MB / 0.6739 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004811/0.5137, allocations: 4.961 MB / 0.6788 GB, free: 5.945 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0083/0.522, allocations: 7.187 MB / 0.6858 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.644e-05/0.5221, allocations: 32 kB / 0.6858 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01012/0.5322, allocations: 6.563 MB / 0.6923 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.282e-05/0.5323, allocations: 56.19 kB / 0.6923 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001202/0.5324, allocations: 124 kB / 0.6924 GB, free: 6.316 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000849/0.5332, allocations: 396.5 kB / 0.6928 GB, free: 5.926 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003219/0.5364, allocations: 1.193 MB / 0.694 GB, free: 4.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003616/0.5401, allocations: 3.313 MB / 0.6972 GB, free: 1.277 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002904/0.543, allocations: 279.7 kB / 0.6975 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004045/0.5434, allocations: 331.9 kB / 0.6978 GB, free: 0.6836 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (640): * Single equations (assignments): 636 * 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 {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002229/0.5456, allocations: 1.705 MB / 0.6994 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004852/0.5461, allocations: 313.9 kB / 0.6997 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002969/0.5491, allocations: 1.714 MB / 0.7014 GB, free: 12.93 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.157e-05/0.5491, allocations: 16 kB / 0.7014 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.5491, allocations: 8.047 kB / 0.7014 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.5491, allocations: 11.91 kB / 0.7015 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007807/0.5569, allocations: 5.235 MB / 0.7066 GB, free: 7.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.5569, allocations: 4 kB / 0.7066 GB, free: 7.566 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000922/0.5578, allocations: 203.7 kB / 0.7068 GB, free: 7.367 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006167/0.5585, allocations: 229 kB / 0.707 GB, free: 7.141 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.003e-05/0.5585, allocations: 24 kB / 0.707 GB, free: 7.117 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002905/0.5614, allocations: 2.691 MB / 0.7096 GB, free: 4.277 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.5614, allocations: 7.938 kB / 0.7096 GB, free: 4.27 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005011/0.5665, allocations: 3.734 MB / 0.7133 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006285/0.5671, allocations: 362.9 kB / 0.7136 GB, free: 136 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002614/0.5673, allocations: 20 kB / 0.7137 GB, free: 116 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009978/0.5683, allocations: 63.91 kB / 0.7137 GB, free: 52 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.5685, allocations: 80.44 kB / 0.7138 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.457e-05/0.5686, allocations: 32.06 kB / 0.7138 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003126/0.5717, allocations: 2.265 MB / 0.716 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.5717, allocations: 0 / 0.716 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003405/0.5751, allocations: 0.7655 MB / 0.7168 GB, free: 12.92 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (102): * Single equations (assignments): 98 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005491/0.5806, allocations: 4.358 MB / 0.721 GB, free: 8.523 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005706/0.5863, allocations: 3.787 MB / 0.7247 GB, free: 4.746 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.5863, allocations: 4 kB / 0.7247 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.5877, allocations: 0.9977 MB / 0.7257 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.5895, allocations: 359.5 kB / 0.7261 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2297/0.8193, allocations: 36.6 MB / 0.7618 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001734/0.821, allocations: 2.636 MB / 0.7644 GB, free: 128.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00257/0.8236, allocations: 1.702 MB / 0.766 GB, free: 126.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001219/0.8248, allocations: 1.397 MB / 0.7674 GB, free: 125 MB / 0.5606 GB Notification: Performance of SimCode: time 8.11e-07/0.8248, allocations: 4 kB / 0.7674 GB, free: 125 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07487/0.8997, allocations: 54.01 MB / 0.8202 GB, free: 71.31 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.95/20.85, allocations: 11.98 kB / 0.8202 GB, free: 71.3 MB / 0.5606 GB " [Timeout remaining time 639] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 23.403280019003432]