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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001856/0.001856, allocations: 121.2 kB / 18.5 MB, free: 4.578 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.001792/0.001792, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.479/1.479, allocations: 230.4 MB / 254.7 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] 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.2469/0.2469, allocations: 46.92 MB / 357.7 MB, free: 10.22 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.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"}) [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.00268/0.00268, allocations: 87.84 kB / 0.4917 GB, free: 7.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1409, allocations: 66.03 MB / 0.5561 GB, free: 5.586 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01256/0.1534, allocations: 9.088 MB / 0.565 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008307/0.1617, allocations: 3.594 MB / 0.5685 GB, free: 8.84 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.1633, allocations: 59.75 kB / 0.5686 GB, free: 8.781 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004574/0.1678, allocations: 1.927 MB / 0.5705 GB, free: 6.848 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005447/0.1733, allocations: 1.618 MB / 0.5721 GB, free: 5.227 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001884/0.1752, allocations: 0.5653 MB / 0.5726 GB, free: 4.66 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006769/0.1819, allocations: 3.658 MB / 0.5762 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003906/0.1858, allocations: 2.074 MB / 0.5782 GB, free: 14.86 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002964/0.1888, allocations: 1.187 MB / 0.5794 GB, free: 13.67 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003514/0.1923, allocations: 1.772 MB / 0.5811 GB, free: 11.89 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001182/0.1935, allocations: 244 kB / 0.5813 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002797/0.1963, allocations: 1.158 MB / 0.5825 GB, free: 10.5 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002485/0.1988, allocations: 1.546 MB / 0.584 GB, free: 8.945 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003279/0.2021, allocations: 1.786 MB / 0.5857 GB, free: 7.148 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008849/0.2109, allocations: 5.871 MB / 0.5914 GB, free: 1.254 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.2109, allocations: 4 kB / 0.5914 GB, free: 1.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.2109, allocations: 0 / 0.5914 GB, free: 1.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002017/0.2111, allocations: 0 / 0.5914 GB, free: 1.25 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.2607/0.4718, allocations: 4.054 MB / 0.5954 GB, free: 32.9 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.159e-05/0.4719, allocations: 9.375 kB / 0.5954 GB, free: 32.9 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001828/0.4737, allocations: 0.577 MB / 0.596 GB, free: 32.84 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09012/0.5638, allocations: 6.956 MB / 0.6028 GB, free: 32.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007641/0.5714, allocations: 2.476 MB / 0.6052 GB, free: 31.71 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002356/0.5717, allocations: 179.8 kB / 0.6054 GB, free: 31.65 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00127/0.573, allocations: 232.1 kB / 0.6056 GB, free: 31.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01527/0.5882, allocations: 7.729 MB / 0.6131 GB, free: 27.09 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001693/0.5884, allocations: 39.48 kB / 0.6132 GB, free: 27.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008368/0.5892, allocations: 117.8 kB / 0.6133 GB, free: 26.99 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002999/0.5922, allocations: 1.582 MB / 0.6148 GB, free: 26.37 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0122/0.6044, allocations: 6.464 MB / 0.6211 GB, free: 22.09 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03402/0.6384, allocations: 31.35 MB / 0.6518 GB, free: 5.828 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00551/0.644, allocations: 2.352 MB / 0.6541 GB, free: 3.328 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001639/0.6456, allocations: 0.9798 MB / 0.655 GB, free: 2.336 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004445/0.646, allocations: 323.1 kB / 0.6553 GB, free: 1.965 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.641e-05/0.6461, allocations: 50.44 kB / 0.6554 GB, free: 1.906 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 4.378e-06/0.6461, allocations: 0 / 0.6554 GB, free: 1.906 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02521/0.6713, allocations: 8.549 MB / 0.6637 GB, free: 9.27 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/0.6714, allocations: 188.5 kB / 0.6639 GB, free: 9.043 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006871/0.6783, allocations: 3.77 MB / 0.6676 GB, free: 5.281 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002388/0.6785, allocations: 49.69 kB / 0.6676 GB, free: 5.227 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00269/0.6812, allocations: 2.83 MB / 0.6704 GB, free: 2.367 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007721/0.682, allocations: 0.4964 MB / 0.6709 GB, free: 1.867 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002112/0.6841, allocations: 1.095 MB / 0.6719 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.6842, allocations: 305.1 kB / 0.6722 GB, free: 472 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002827/0.6871, allocations: 1.58 MB / 0.6738 GB, free: 14.88 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006303/0.6934, allocations: 5.15 MB / 0.6788 GB, free: 7.922 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009693/0.7031, allocations: 7.324 MB / 0.686 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001191/0.7032, allocations: 36 kB / 0.686 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01377/0.717, allocations: 6.652 MB / 0.6925 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.7171, allocations: 60 kB / 0.6925 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000199/0.7173, allocations: 128 kB / 0.6927 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.7185, allocations: 396.6 kB / 0.693 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004233/0.7227, allocations: 1.224 MB / 0.6942 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004694/0.7274, allocations: 3.326 MB / 0.6975 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004404/0.7318, allocations: 295.6 kB / 0.6978 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001026/0.7328, allocations: 347.9 kB / 0.6981 GB, free: 2.234 MB / 0.4981 GB 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.003877/0.7367, allocations: 1.775 MB / 0.6998 GB, free: 456 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008408/0.7375, allocations: 321.8 kB / 0.7001 GB, free: 132 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003519/0.7411, allocations: 1.459 MB / 0.7016 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.376e-05/0.7411, allocations: 19.98 kB / 0.7016 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.7411, allocations: 4 kB / 0.7016 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/0.7411, allocations: 3.984 kB / 0.7016 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01145/0.7526, allocations: 4.838 MB / 0.7063 GB, free: 9.727 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/0.7526, allocations: 0 / 0.7063 GB, free: 9.727 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008949/0.7535, allocations: 159.8 kB / 0.7065 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007598/0.7542, allocations: 216.6 kB / 0.7067 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001471/0.7544, allocations: 28.02 kB / 0.7067 GB, free: 9.328 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003527/0.7579, allocations: 2.706 MB / 0.7093 GB, free: 6.484 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.7579, allocations: 4.562 kB / 0.7094 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00561/0.7635, allocations: 3.296 MB / 0.7126 GB, free: 3.164 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009972/0.7645, allocations: 370.8 kB / 0.7129 GB, free: 2.781 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006677/0.7652, allocations: 23.98 kB / 0.7129 GB, free: 2.758 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/0.7666, allocations: 52 kB / 0.713 GB, free: 2.707 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000244/0.7668, allocations: 60.48 kB / 0.7131 GB, free: 2.648 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/0.7669, allocations: 31.94 kB / 0.7131 GB, free: 2.617 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004558/0.7715, allocations: 2.346 MB / 0.7154 GB, free: 292 kB / 0.5137 GB Notification: Performance of sort global known variables: time 5.01e-07/0.7715, allocations: 0 / 0.7154 GB, free: 292 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00455/0.7761, allocations: 0.7694 MB / 0.7161 GB, free: 15.51 MB / 0.5294 GB 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.00622/0.7823, allocations: 3.915 MB / 0.72 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006938/0.7892, allocations: 3.687 MB / 0.7236 GB, free: 7.891 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/0.7892, allocations: 4.125 kB / 0.7236 GB, free: 7.887 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001749/0.791, allocations: 0.884 MB / 0.7244 GB, free: 6.988 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003269/0.7942, allocations: 378.6 kB / 0.7248 GB, free: 6.625 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07089/0.8651, allocations: 37.2 MB / 0.7611 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005649/0.8708, allocations: 2.716 MB / 0.7638 GB, free: 9.297 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005395/0.8762, allocations: 1.703 MB / 0.7654 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003461/0.8796, allocations: 1.46 MB / 0.7669 GB, free: 6.133 MB / 0.5762 GB Notification: Performance of SimCode: time 2.584e-06/0.8796, allocations: 0 / 0.7669 GB, free: 6.133 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1197/0.9994, allocations: 54.52 MB / 0.8201 GB, free: 15.86 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.29/24.29, allocations: 11.86 kB / 0.8201 GB, free: 15.85 MB / 0.6387 GB " [Timeout remaining time 636] (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 9.996e-05 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 27.3898994079791] Failed to read output from testmodel.py, exit status != 0: ['time', 'distance1.distance', 'distance2.distance'] 24.419074553065002 24.440158341 24.224653067 Calling exit ...