Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001386/0.001386, 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.001414/0.001414, 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.48/1.48, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2282/0.2282, allocations: 46.11 MB / 344.2 MB, free: 11.57 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.002281/0.002281, allocations: 76.05 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1355, allocations: 62.45 MB / 480.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01131/0.1469, allocations: 9.048 MB / 489.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007535/0.1544, allocations: 3.563 MB / 492.8 MB, free: 8.484 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001348/0.1558, allocations: 47.88 kB / 492.9 MB, free: 8.438 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003851/0.1597, allocations: 1.908 MB / 494.8 MB, free: 6.523 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004615/0.1644, allocations: 1.584 MB / 496.4 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001549/0.1659, allocations: 0.5575 MB / 496.9 MB, free: 4.375 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005949/0.1719, allocations: 3.658 MB / 0.4888 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003469/0.1754, allocations: 2.433 MB / 0.4912 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001917/0.1774, allocations: 1.152 MB / 0.4923 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002432/0.1798, allocations: 1.635 MB / 0.4939 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005674/0.1804, allocations: 240 kB / 0.4942 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002176/0.1826, allocations: 1.116 MB / 0.4953 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001698/0.1843, allocations: 1.492 MB / 0.4967 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002323/0.1866, allocations: 1.79 MB / 0.4985 GB, free: 6.777 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007382/0.194, allocations: 5.639 MB / 0.504 GB, free: 1.121 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.174e-05/0.1941, allocations: 4 kB / 0.504 GB, free: 1.117 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1941, allocations: 0 / 0.504 GB, free: 1.117 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001755/0.1943, allocations: 4 kB / 0.504 GB, free: 1.113 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.2208/0.4151, allocations: 3.95 MB / 0.5078 GB, free: 39.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.4151, allocations: 12.03 kB / 0.5078 GB, free: 39.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009085/0.4161, allocations: 0.5764 MB / 0.5084 GB, free: 38.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08859/0.5046, allocations: 6.948 MB / 0.5152 GB, free: 38.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0053/0.51, allocations: 2.428 MB / 0.5176 GB, free: 36.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.5101, allocations: 177.6 kB / 0.5177 GB, free: 36.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005046/0.5107, allocations: 232.1 kB / 0.518 GB, free: 36.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/0.5208, allocations: 7.732 MB / 0.5255 GB, free: 31.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-05/0.5209, allocations: 35.34 kB / 0.5255 GB, free: 31.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002936/0.5212, allocations: 115.3 kB / 0.5256 GB, free: 31.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002059/0.5233, allocations: 1.584 MB / 0.5272 GB, free: 30.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009317/0.5326, allocations: 6.47 MB / 0.5335 GB, free: 24.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0322/0.5648, allocations: 31.42 MB / 0.5642 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004919/0.5698, allocations: 2.415 MB / 0.5666 GB, free: 5.238 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001441/0.5713, allocations: 1.054 MB / 0.5676 GB, free: 4.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000378/0.5716, allocations: 331.1 kB / 0.5679 GB, free: 3.793 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.193e-05/0.5717, allocations: 50.44 kB / 0.568 GB, free: 3.734 MB / 398.1 MB Notification: Performance of pre-optimization done (n=104): time 3.246e-06/0.5717, allocations: 0 / 0.568 GB, free: 3.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.02226/0.594, allocations: 8.355 MB / 0.5761 GB, free: 11.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.5941, allocations: 200.4 kB / 0.5763 GB, free: 11.03 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005032/0.5992, allocations: 3.764 MB / 0.58 GB, free: 7.273 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001314/0.5993, allocations: 41.7 kB / 0.58 GB, free: 7.227 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002092/0.6014, allocations: 2.712 MB / 0.5827 GB, free: 4.473 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005461/0.602, allocations: 0.4903 MB / 0.5831 GB, free: 3.977 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001341/0.6033, allocations: 1.083 MB / 0.5842 GB, free: 2.883 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.6035, allocations: 305.1 kB / 0.5845 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002466/0.6059, allocations: 1.586 MB / 0.586 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005447/0.6114, allocations: 5.141 MB / 0.5911 GB, free: 10.05 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009167/0.6206, allocations: 7.325 MB / 0.5982 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/0.6207, allocations: 40 kB / 0.5983 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01375/0.6345, allocations: 6.621 MB / 0.6047 GB, free: 10.28 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.51e-05/0.6346, allocations: 58.03 kB / 0.6048 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/0.6348, allocations: 132.2 kB / 0.6049 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009424/0.6357, allocations: 406.2 kB / 0.6053 GB, free: 9.695 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003699/0.6394, allocations: 1.22 MB / 0.6065 GB, free: 8.473 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004059/0.6435, allocations: 3.345 MB / 0.6097 GB, free: 4.996 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003433/0.647, allocations: 283.5 kB / 0.61 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005297/0.6475, allocations: 336 kB / 0.6103 GB, free: 4.391 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (663): * Single equations (assignments): 659 * 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.002622/0.6501, allocations: 1.775 MB / 0.6121 GB, free: 2.602 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005543/0.6507, allocations: 313 kB / 0.6124 GB, free: 2.293 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002708/0.6534, allocations: 1.462 MB / 0.6138 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.139e-05/0.6535, allocations: 12 kB / 0.6138 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.6535, allocations: 8 kB / 0.6138 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.6535, allocations: 11.95 kB / 0.6138 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008376/0.6619, allocations: 4.863 MB / 0.6186 GB, free: 11.85 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.6619, allocations: 0 / 0.6186 GB, free: 11.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000791/0.6627, allocations: 159.8 kB / 0.6187 GB, free: 11.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000668/0.6634, allocations: 228.5 kB / 0.6189 GB, free: 11.47 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.456e-05/0.6635, allocations: 20 kB / 0.619 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003233/0.6667, allocations: 2.707 MB / 0.6216 GB, free: 8.602 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.6667, allocations: 4.031 kB / 0.6216 GB, free: 8.598 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004782/0.6715, allocations: 3.272 MB / 0.6248 GB, free: 5.297 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007406/0.6723, allocations: 361 kB / 0.6252 GB, free: 4.922 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003252/0.6726, allocations: 20 kB / 0.6252 GB, free: 4.902 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009781/0.6736, allocations: 47.94 kB / 0.6252 GB, free: 4.855 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/0.6738, allocations: 60.47 kB / 0.6253 GB, free: 4.797 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.53e-05/0.6739, allocations: 40.05 kB / 0.6253 GB, free: 4.758 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003676/0.6776, allocations: 2.343 MB / 0.6276 GB, free: 2.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.6776, allocations: 288 / 0.6276 GB, free: 2.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003883/0.6815, allocations: 0.7682 MB / 0.6284 GB, free: 1.664 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.005197/0.6867, allocations: 3.907 MB / 0.6322 GB, free: 13.73 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006961/0.6937, allocations: 4.108 MB / 0.6362 GB, free: 9.645 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.6937, allocations: 0 / 0.6362 GB, free: 9.645 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001574/0.6953, allocations: 0.9474 MB / 0.6371 GB, free: 8.688 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002278/0.6976, allocations: 380.7 kB / 0.6375 GB, free: 8.316 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05834/0.7559, allocations: 41.51 MB / 0.678 GB, free: 7.867 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003147/0.7591, allocations: 2.72 MB / 0.6807 GB, free: 5.125 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004502/0.7637, allocations: 1.695 MB / 0.6823 GB, free: 3.426 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002746/0.7664, allocations: 1.456 MB / 0.6837 GB, free: 1.969 MB / 0.5137 GB Notification: Performance of SimCode: time 1.012e-06/0.7664, allocations: 0 / 0.6837 GB, free: 1.969 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3335/1.1, allocations: 57.77 MB / 0.7401 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.82, allocations: 8.594 kB / 0.7402 GB, free: 161.4 MB / 0.5294 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0002 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1)