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.001609/0.001609, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001897/0.001897, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 247 MB, free: 10.46 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.2241/0.2241, allocations: 46.12 MB / 344.3 MB, free: 11.48 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.002356/0.002356, allocations: 75.88 kB / 480.9 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2999, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01087/0.3108, allocations: 9.051 MB / 0.5394 GB, free: 6.281 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007303/0.3181, allocations: 3.563 MB / 0.5429 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001243/0.3194, allocations: 49.22 kB / 0.543 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003787/0.3232, allocations: 1.909 MB / 0.5448 GB, free: 2.227 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004114/0.3274, allocations: 1.578 MB / 0.5464 GB, free: 1.133 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001384/0.3288, allocations: 0.5672 MB / 0.5469 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005576/0.3344, allocations: 3.654 MB / 0.5505 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003258/0.3376, allocations: 2.434 MB / 0.5529 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001892/0.3396, allocations: 1.152 MB / 0.554 GB, free: 9.652 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002376/0.3419, allocations: 1.635 MB / 0.5556 GB, free: 8.012 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000597/0.3426, allocations: 244 kB / 0.5558 GB, free: 7.773 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002237/0.3448, allocations: 1.112 MB / 0.5569 GB, free: 6.66 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00164/0.3465, allocations: 1.5 MB / 0.5584 GB, free: 5.156 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002171/0.3486, allocations: 1.782 MB / 0.5601 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007457/0.3561, allocations: 5.871 MB / 0.5658 GB, free: 13.47 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.297e-06/0.3562, allocations: 7.984 kB / 0.5659 GB, free: 13.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3562, allocations: 0 / 0.5659 GB, free: 13.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001346/0.3563, allocations: 0 / 0.5659 GB, free: 13.46 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.009751/0.3661, allocations: 4.062 MB / 0.5698 GB, free: 9.324 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.3661, allocations: 8.031 kB / 0.5698 GB, free: 9.316 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009778/0.3671, allocations: 0.5753 MB / 0.5704 GB, free: 8.73 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09489/0.462, allocations: 6.966 MB / 0.5772 GB, free: 1.754 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005804/0.4679, allocations: 2.468 MB / 0.5796 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001582/0.468, allocations: 176.8 kB / 0.5798 GB, free: 15.05 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005788/0.4686, allocations: 239.8 kB / 0.58 GB, free: 14.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01307/0.4817, allocations: 7.724 MB / 0.5875 GB, free: 6.449 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-05/0.4818, allocations: 43.64 kB / 0.5876 GB, free: 6.406 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003323/0.4822, allocations: 115.9 kB / 0.5877 GB, free: 6.293 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002792/0.485, allocations: 1.59 MB / 0.5892 GB, free: 4.703 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01233/0.4973, allocations: 6.457 MB / 0.5956 GB, free: 14.23 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03954/0.5369, allocations: 31.36 MB / 0.6262 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005169/0.5421, allocations: 2.422 MB / 0.6285 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001534/0.5437, allocations: 1.058 MB / 0.6296 GB, free: 10.26 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003879/0.5441, allocations: 327.2 kB / 0.6299 GB, free: 9.887 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.5441, allocations: 38.56 kB / 0.6299 GB, free: 9.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.146e-06/0.5441, allocations: 3.938 kB / 0.6299 GB, free: 9.836 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02175/0.5659, allocations: 8.546 MB / 0.6383 GB, free: 1.199 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.5661, allocations: 196.4 kB / 0.6385 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005435/0.5715, allocations: 3.766 MB / 0.6421 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001578/0.5717, allocations: 41.7 kB / 0.6422 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002276/0.574, allocations: 2.83 MB / 0.6449 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005776/0.5746, allocations: 0.5042 MB / 0.6454 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001466/0.576, allocations: 1.103 MB / 0.6465 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.5762, allocations: 305.1 kB / 0.6468 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002519/0.5787, allocations: 1.584 MB / 0.6484 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005976/0.5847, allocations: 5.141 MB / 0.6534 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009301/0.594, allocations: 7.319 MB / 0.6605 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001105/0.5942, allocations: 40 kB / 0.6606 GB, free: 6.711 MB / 0.5137 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01265/0.6068, allocations: 6.644 MB / 0.667 GB, free: 56 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.144e-05/0.607, allocations: 56.28 kB / 0.6671 GB, free: 0 / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001725/0.6071, allocations: 132.8 kB / 0.6672 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009461/0.6081, allocations: 408.5 kB / 0.6676 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00363/0.6117, allocations: 1.224 MB / 0.6688 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004145/0.6159, allocations: 3.336 MB / 0.6721 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003607/0.6195, allocations: 291.6 kB / 0.6723 GB, free: 10.49 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007098/0.6203, allocations: 340 kB / 0.6727 GB, free: 10.16 MB / 0.5294 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.002897/0.6232, allocations: 1.771 MB / 0.6744 GB, free: 8.371 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005898/0.6238, allocations: 325.8 kB / 0.6747 GB, free: 8.051 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/0.6266, allocations: 1.466 MB / 0.6761 GB, free: 6.578 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.11e-05/0.6266, allocations: 16 kB / 0.6762 GB, free: 6.562 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.579e-05/0.6267, allocations: 11.92 kB / 0.6762 GB, free: 6.551 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.6267, allocations: 3.984 kB / 0.6762 GB, free: 6.547 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009334/0.636, allocations: 4.83 MB / 0.6809 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.6361, allocations: 0 / 0.6809 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007957/0.6369, allocations: 159.8 kB / 0.681 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007096/0.6376, allocations: 228.5 kB / 0.6813 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.337e-05/0.6377, allocations: 23.98 kB / 0.6813 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003334/0.641, allocations: 2.708 MB / 0.6839 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.641, allocations: 4.031 kB / 0.6839 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004975/0.646, allocations: 3.302 MB / 0.6872 GB, free: 11.06 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008674/0.6469, allocations: 366.8 kB / 0.6875 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000343/0.6473, allocations: 23.98 kB / 0.6875 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009381/0.6482, allocations: 43.95 kB / 0.6876 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/0.6484, allocations: 68.41 kB / 0.6876 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.412e-05/0.6485, allocations: 32 kB / 0.6877 GB, free: 10.52 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004104/0.6526, allocations: 2.347 MB / 0.69 GB, free: 8.184 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.7e-07/0.6526, allocations: 0 / 0.69 GB, free: 8.184 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004223/0.6569, allocations: 0.7694 MB / 0.6907 GB, free: 7.414 MB / 0.545 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.005452/0.6623, allocations: 3.911 MB / 0.6945 GB, free: 3.465 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006398/0.6688, allocations: 3.822 MB / 0.6983 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.6688, allocations: 0 / 0.6983 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001536/0.6703, allocations: 0.9548 MB / 0.6992 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/0.6725, allocations: 371.5 kB / 0.6996 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2847/0.9572, allocations: 37.21 MB / 0.7359 GB, free: 170.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002558/0.9598, allocations: 2.712 MB / 0.7385 GB, free: 169.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003098/0.9629, allocations: 1.712 MB / 0.7402 GB, free: 169.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/0.9643, allocations: 1.451 MB / 0.7416 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.753e-06/0.9644, allocations: 0 / 0.7416 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08605/1.05, allocations: 54.14 MB / 0.7945 GB, free: 118.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.29/24.34, allocations: 16.45 kB / 0.7945 GB, free: 118.8 MB / 0.5762 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)