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.001389/0.001389, allocations: 105 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.001589/0.001589, allocations: 213.4 kB / 22.92 MB, free: 5.535 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.292/1.292, allocations: 230.2 MB / 256.2 MB, free: 8.762 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.2076/0.2076, allocations: 46.88 MB / 359.3 MB, free: 4.988 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.002104/0.002104, allocations: 83.84 kB / 0.494 GB, free: 9.117 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2502, allocations: 65.99 MB / 0.5584 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009827/0.26, allocations: 9.117 MB / 0.5673 GB, free: 12.04 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006307/0.2663, allocations: 3.609 MB / 0.5708 GB, free: 8.41 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001207/0.2675, allocations: 51.88 kB / 0.5709 GB, free: 8.359 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003642/0.2712, allocations: 1.943 MB / 0.5728 GB, free: 6.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003589/0.2748, allocations: 1.611 MB / 0.5744 GB, free: 4.797 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.276, allocations: 0.5731 MB / 0.5749 GB, free: 4.223 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004432/0.2804, allocations: 3.65 MB / 0.5785 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002112/0.2825, allocations: 1.804 MB / 0.5802 GB, free: 14.7 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001429/0.2839, allocations: 1.168 MB / 0.5814 GB, free: 13.53 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002001/0.2859, allocations: 1.776 MB / 0.5831 GB, free: 11.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000392/0.2863, allocations: 240 kB / 0.5833 GB, free: 11.52 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001676/0.288, allocations: 1.151 MB / 0.5845 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001293/0.2893, allocations: 1.55 MB / 0.586 GB, free: 8.809 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001588/0.2909, allocations: 1.786 MB / 0.5877 GB, free: 7.012 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005736/0.2966, allocations: 5.871 MB / 0.5935 GB, free: 1.117 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2966, allocations: 0 / 0.5935 GB, free: 1.117 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2966, allocations: 0 / 0.5935 GB, free: 1.117 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.118e-05/0.2967, allocations: 0 / 0.5935 GB, free: 1.117 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.007435/0.3041, allocations: 4.066 MB / 0.5974 GB, free: 12.97 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.3042, allocations: 12.03 kB / 0.5974 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006286/0.3048, allocations: 0.5676 MB / 0.598 GB, free: 12.38 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08284/0.3876, allocations: 6.97 MB / 0.6048 GB, free: 5.402 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005013/0.3927, allocations: 2.468 MB / 0.6072 GB, free: 2.883 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/0.3928, allocations: 176.8 kB / 0.6074 GB, free: 2.707 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000503/0.3933, allocations: 243.8 kB / 0.6076 GB, free: 2.469 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01039/0.4037, allocations: 7.724 MB / 0.6152 GB, free: 10.09 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.191e-05/0.4038, allocations: 39.64 kB / 0.6152 GB, free: 10.05 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002919/0.4041, allocations: 115.9 kB / 0.6153 GB, free: 9.938 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002427/0.4065, allocations: 1.586 MB / 0.6169 GB, free: 8.355 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01034/0.4168, allocations: 6.461 MB / 0.6232 GB, free: 1.879 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03066/0.4475, allocations: 31.37 MB / 0.6538 GB, free: 1.543 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004335/0.4518, allocations: 2.332 MB / 0.6561 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001221/0.4531, allocations: 0.9872 MB / 0.657 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003172/0.4534, allocations: 323.2 kB / 0.6573 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.4534, allocations: 46.5 kB / 0.6574 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=104): time 2.745e-06/0.4534, allocations: 0 / 0.6574 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of matching and sorting (n=118): time 0.01923/0.4726, allocations: 8.542 MB / 0.6657 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.4727, allocations: 188.5 kB / 0.6659 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00456/0.4773, allocations: 3.769 MB / 0.6696 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001121/0.4774, allocations: 45.69 kB / 0.6696 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00192/0.4793, allocations: 2.826 MB / 0.6724 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004551/0.4798, allocations: 0.5041 MB / 0.6729 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001207/0.481, allocations: 1.103 MB / 0.674 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.4811, allocations: 301.1 kB / 0.6743 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002186/0.4833, allocations: 1.588 MB / 0.6758 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004693/0.488, allocations: 5.133 MB / 0.6808 GB, free: 3.66 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007718/0.4957, allocations: 7.326 MB / 0.688 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.775e-05/0.4958, allocations: 36 kB / 0.688 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.009646/0.5054, allocations: 6.637 MB / 0.6945 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.272e-05/0.5055, allocations: 60 kB / 0.6945 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001099/0.5056, allocations: 128 kB / 0.6947 GB, free: 3.695 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008017/0.5064, allocations: 404.6 kB / 0.6951 GB, free: 3.297 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003005/0.5094, allocations: 1.228 MB / 0.6963 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003548/0.5129, allocations: 3.34 MB / 0.6995 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00276/0.5157, allocations: 283.6 kB / 0.6998 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003766/0.5161, allocations: 344 kB / 0.7001 GB, free: 13.97 MB / 0.545 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.002147/0.5182, allocations: 1.779 MB / 0.7018 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004061/0.5186, allocations: 317.8 kB / 0.7022 GB, free: 11.87 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002422/0.5211, allocations: 1.462 MB / 0.7036 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.032e-05/0.5211, allocations: 12.11 kB / 0.7036 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/0.5211, allocations: 11.88 kB / 0.7036 GB, free: 10.38 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.5211, allocations: 7.922 kB / 0.7036 GB, free: 10.37 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007245/0.5283, allocations: 4.838 MB / 0.7083 GB, free: 5.465 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.5283, allocations: 0 / 0.7083 GB, free: 5.465 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007051/0.529, allocations: 159.8 kB / 0.7085 GB, free: 5.309 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005921/0.5296, allocations: 224.6 kB / 0.7087 GB, free: 5.086 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.91e-05/0.5297, allocations: 20 kB / 0.7087 GB, free: 5.066 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002928/0.5326, allocations: 2.712 MB / 0.7114 GB, free: 2.215 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.5326, allocations: 0 / 0.7114 GB, free: 2.215 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0043/0.5369, allocations: 3.296 MB / 0.7146 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006001/0.5375, allocations: 378.8 kB / 0.7149 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002533/0.5378, allocations: 19.94 kB / 0.715 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008777/0.5387, allocations: 51.94 kB / 0.715 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.5388, allocations: 64.42 kB / 0.7151 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.442e-05/0.5389, allocations: 39.98 kB / 0.7151 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003187/0.5421, allocations: 2.343 MB / 0.7174 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5421, allocations: 0 / 0.7174 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003328/0.5454, allocations: 0.7655 MB / 0.7182 GB, free: 11.24 MB / 0.5606 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.00466/0.5501, allocations: 3.919 MB / 0.722 GB, free: 7.273 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005372/0.5555, allocations: 3.668 MB / 0.7256 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5555, allocations: 1.062 kB / 0.7256 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.5568, allocations: 0.8995 MB / 0.7264 GB, free: 2.715 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001791/0.5586, allocations: 376.2 kB / 0.7268 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2225/0.7811, allocations: 37.25 MB / 0.7632 GB, free: 128.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00188/0.783, allocations: 2.715 MB / 0.7658 GB, free: 125.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002639/0.7856, allocations: 1.703 MB / 0.7675 GB, free: 124.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001234/0.7868, allocations: 1.46 MB / 0.7689 GB, free: 122.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.323e-06/0.7868, allocations: 0 / 0.7689 GB, free: 122.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07604/0.8629, allocations: 54.83 MB / 0.8225 GB, free: 68.12 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.75/21.62, allocations: 3.938 kB / 0.8225 GB, free: 68.12 MB / 0.5606 GB " [Timeout remaining time 638] (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: 24.164137414001743]