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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.001359, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001299, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2474/0.2474, allocations: 46.1 MB / 344.2 MB, free: 11.59 MB / 286.1 MB 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.003223/0.003224, allocations: 76.38 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1486, allocations: 62.45 MB / 480.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01138/0.16, allocations: 8.926 MB / 489.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00726/0.1673, allocations: 3.547 MB / 492.7 MB, free: 8.629 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001125/0.1685, allocations: 47.88 kB / 492.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003253/0.1718, allocations: 1.662 MB / 494.4 MB, free: 6.914 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003873/0.1757, allocations: 1.537 MB / 495.9 MB, free: 5.371 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001394/0.1771, allocations: 0.5536 MB / 496.5 MB, free: 4.816 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004904/0.182, allocations: 3.567 MB / 0.4883 GB, free: 1.242 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003077/0.1851, allocations: 2.197 MB / 0.4905 GB, free: 14.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002284/0.1874, allocations: 1.082 MB / 0.4915 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002569/0.19, allocations: 1.534 MB / 0.493 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000787/0.1908, allocations: 220 kB / 0.4932 GB, free: 12.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002363/0.1932, allocations: 1.092 MB / 0.4943 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001608/0.1948, allocations: 1.406 MB / 0.4957 GB, free: 9.648 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002115/0.197, allocations: 1.689 MB / 0.4973 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006636/0.2036, allocations: 5.355 MB / 0.5026 GB, free: 2.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2036, allocations: 0 / 0.5026 GB, free: 2.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2037, allocations: 0 / 0.5026 GB, free: 2.578 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001161/0.2038, allocations: 0 / 0.5026 GB, free: 2.578 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.2273/0.4311, allocations: 3.778 MB / 0.5062 GB, free: 39.17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.4311, allocations: 9.641 kB / 0.5063 GB, free: 39.17 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001014/0.4322, allocations: 0.5442 MB / 0.5068 GB, free: 38.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09066/0.5228, allocations: 6.927 MB / 0.5135 GB, free: 38.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00494/0.5278, allocations: 2.366 MB / 0.5159 GB, free: 37.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.528, allocations: 159.9 kB / 0.516 GB, free: 37.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004569/0.5284, allocations: 223.8 kB / 0.5162 GB, free: 37.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009317/0.5377, allocations: 7.34 MB / 0.5234 GB, free: 32.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.658e-05/0.5378, allocations: 38.61 kB / 0.5234 GB, free: 32.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002704/0.5381, allocations: 107.3 kB / 0.5235 GB, free: 32.4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00214/0.5403, allocations: 1.543 MB / 0.525 GB, free: 31.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008426/0.5487, allocations: 6.192 MB / 0.5311 GB, free: 26.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02814/0.5769, allocations: 29.98 MB / 0.5604 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004657/0.5816, allocations: 2.166 MB / 0.5625 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001477/0.5831, allocations: 1.071 MB / 0.5635 GB, free: 7.859 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003993/0.5835, allocations: 319.5 kB / 0.5638 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.139e-05/0.5836, allocations: 43 kB / 0.5639 GB, free: 7.441 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 4.83e-06/0.5836, allocations: 8.047 kB / 0.5639 GB, free: 7.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=132): time 0.03422/0.6178, allocations: 10.86 MB / 0.5745 GB, free: 12.44 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.618, allocations: 192.6 kB / 0.5747 GB, free: 12.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005705/0.6237, allocations: 3.609 MB / 0.5782 GB, free: 8.602 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002622/0.624, allocations: 52.14 kB / 0.5782 GB, free: 8.547 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002074/0.6261, allocations: 2.558 MB / 0.5807 GB, free: 5.949 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006062/0.6267, allocations: 0.5287 MB / 0.5813 GB, free: 5.414 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001356/0.628, allocations: 1.055 MB / 0.5823 GB, free: 4.348 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.6282, allocations: 301.1 kB / 0.5826 GB, free: 4.051 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002696/0.6309, allocations: 1.626 MB / 0.5842 GB, free: 2.418 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006217/0.6371, allocations: 4.969 MB / 0.589 GB, free: 11.76 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009305/0.6465, allocations: 7.171 MB / 0.596 GB, free: 2.934 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.868e-05/0.6466, allocations: 36 kB / 0.5961 GB, free: 2.898 MB / 430.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01173/0.6583, allocations: 6.556 MB / 0.6025 GB, free: 12.33 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.364e-05/0.6584, allocations: 56 kB / 0.6025 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001231/0.6586, allocations: 120 kB / 0.6026 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009363/0.6595, allocations: 406.8 kB / 0.603 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00359/0.6631, allocations: 1.189 MB / 0.6042 GB, free: 10.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00415/0.6673, allocations: 3.31 MB / 0.6074 GB, free: 7.121 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003487/0.6708, allocations: 287.8 kB / 0.6077 GB, free: 6.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005263/0.6713, allocations: 324 kB / 0.608 GB, free: 6.523 MB / 446.1 MB 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.002495/0.6738, allocations: 1.701 MB / 0.6097 GB, free: 4.812 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005384/0.6744, allocations: 300 kB / 0.6099 GB, free: 4.516 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003174/0.6776, allocations: 1.725 MB / 0.6116 GB, free: 2.777 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.441e-05/0.6776, allocations: 15.94 kB / 0.6116 GB, free: 2.762 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.6776, allocations: 4 kB / 0.6116 GB, free: 2.758 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.6776, allocations: 3.984 kB / 0.6116 GB, free: 2.754 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009113/0.6868, allocations: 5.306 MB / 0.6168 GB, free: 13.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-06/0.6868, allocations: 0 / 0.6168 GB, free: 13.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000992/0.6878, allocations: 199.6 kB / 0.617 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007006/0.6885, allocations: 232.6 kB / 0.6172 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.094e-05/0.6886, allocations: 20 kB / 0.6173 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003142/0.6917, allocations: 2.691 MB / 0.6199 GB, free: 10.08 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6918, allocations: 288 / 0.6199 GB, free: 10.08 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005454/0.6972, allocations: 3.714 MB / 0.6235 GB, free: 6.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006995/0.6979, allocations: 353.1 kB / 0.6239 GB, free: 5.973 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003375/0.6983, allocations: 24 kB / 0.6239 GB, free: 5.949 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.6994, allocations: 71.91 kB / 0.6239 GB, free: 5.879 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001923/0.6996, allocations: 72.44 kB / 0.624 GB, free: 5.809 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.045e-05/0.6997, allocations: 36 kB / 0.624 GB, free: 5.773 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003502/0.7032, allocations: 2.261 MB / 0.6263 GB, free: 3.523 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7032, allocations: 4 kB / 0.6263 GB, free: 3.52 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003657/0.7069, allocations: 0.759 MB / 0.627 GB, free: 2.766 MB / 462.1 MB 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.005901/0.7128, allocations: 4.342 MB / 0.6312 GB, free: 14.39 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008002/0.7208, allocations: 4.292 MB / 0.6354 GB, free: 10.12 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/0.7208, allocations: 0 / 0.6354 GB, free: 10.12 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001721/0.7226, allocations: 1.071 MB / 0.6365 GB, free: 9.039 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002428/0.725, allocations: 372.7 kB / 0.6368 GB, free: 8.68 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06159/0.7866, allocations: 40.62 MB / 0.6765 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002998/0.7897, allocations: 2.639 MB / 0.6791 GB, free: 6.844 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004422/0.7941, allocations: 1.671 MB / 0.6807 GB, free: 5.168 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00245/0.7966, allocations: 1.409 MB / 0.6821 GB, free: 3.758 MB / 0.5137 GB Notification: Performance of SimCode: time 8.82e-07/0.7966, allocations: 0 / 0.6821 GB, free: 3.758 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3325/1.129, allocations: 57.25 MB / 0.738 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.86, allocations: 4.469 kB / 0.738 GB, free: 163.6 MB / 0.5294 GB (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.002 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1)