Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.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.RelativeSensor,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001354/0.001354, allocations: 122.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001487/0.001487, allocations: 197.2 kB / 18.74 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, 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.2393/0.2393, allocations: 46.11 MB / 344.3 MB, free: 11.47 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.002223/0.002223, allocations: 75.88 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3038, allocations: 62.45 MB / 0.5306 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.02886/0.3327, allocations: 24.98 MB / 0.555 GB, free: 8.559 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01901/0.3518, allocations: 8.357 MB / 0.5632 GB, free: 184 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005805/0.3576, allocations: 215.5 kB / 0.5634 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03946/0.3971, allocations: 21.91 MB / 0.5847 GB, free: 10 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01162/0.4088, allocations: 3.75 MB / 0.5884 GB, free: 6.238 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01093/0.4198, allocations: 4.806 MB / 0.5931 GB, free: 1.422 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01757/0.4374, allocations: 10.91 MB / 0.6038 GB, free: 6.484 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04912/0.4866, allocations: 32.48 MB / 0.6355 GB, free: 5.793 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01461/0.5012, allocations: 7.29 MB / 0.6426 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01659/0.5179, allocations: 9.067 MB / 0.6515 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.006912/0.5248, allocations: 2.246 MB / 0.6536 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01004/0.5349, allocations: 3.568 MB / 0.6571 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.01374/0.5487, allocations: 8.612 MB / 0.6655 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.01845/0.5672, allocations: 9.909 MB / 0.6752 GB, free: 13 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04326/0.6105, allocations: 32.93 MB / 0.7074 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.144e-05/0.6105, allocations: 0 / 0.7074 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.386e-06/0.6106, allocations: 3.938 kB / 0.7074 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.001109/0.6117, allocations: 0 / 0.7074 GB, free: 11.96 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5575 * Number of variables: 5575 Notification: Performance of Generate backend data structure: time 0.5078/1.12, allocations: 18.92 MB / 0.7259 GB, free: 146 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/1.12, allocations: 9.719 kB / 0.7259 GB, free: 146 MB / 0.5607 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007755/1.127, allocations: 2.805 MB / 0.7286 GB, free: 144.2 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.181/1.308, allocations: 13.72 MB / 0.742 GB, free: 134.5 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01787/1.326, allocations: 9.517 MB / 0.7513 GB, free: 125.8 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007445/1.327, allocations: 1.268 MB / 0.7525 GB, free: 124.6 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004692/1.332, allocations: 1.679 MB / 0.7542 GB, free: 123 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07276/1.405, allocations: 38.38 MB / 0.7916 GB, free: 83.54 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005597/1.405, allocations: 95.28 kB / 0.7917 GB, free: 83.45 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004682/1.41, allocations: 0.7285 MB / 0.7924 GB, free: 82.77 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004354/1.414, allocations: 3.549 MB / 0.7959 GB, free: 79.22 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05712/1.471, allocations: 31.14 MB / 0.8263 GB, free: 48.07 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1403/1.612, allocations: 111.6 MB / 0.9353 GB, free: 15.51 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06298/1.675, allocations: 21.51 MB / 0.9563 GB, free: 9.531 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009408/1.684, allocations: 6.703 MB / 0.9628 GB, free: 2.812 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.52/2.204, allocations: 26.43 MB / 0.9886 GB, free: 214.9 MB / 0.6545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/2.204, allocations: 75.59 kB / 0.9887 GB, free: 214.9 MB / 0.6545 GB Notification: Performance of pre-optimization done (n=336): time 7.565e-06/2.204, allocations: 1.641 kB / 0.9887 GB, free: 214.9 MB / 0.6545 GB Notification: Performance of matching and sorting (n=450): time 1.292/3.496, allocations: 321.9 MB / 1.303 GB, free: 174.1 MB / 0.6702 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.333e-05/3.497, allocations: 282.2 kB / 1.303 GB, free: 173.7 MB / 0.6702 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01309/3.51, allocations: 9.766 MB / 1.313 GB, free: 164.2 MB / 0.6702 GB Notification: Performance of collectPreVariables (initialization): time 0.001973/3.512, allocations: 93.7 kB / 1.313 GB, free: 164.1 MB / 0.6702 GB Notification: Performance of collectInitialEqns (initialization): time 0.005512/3.517, allocations: 10.61 MB / 1.323 GB, free: 154.3 MB / 0.6702 GB Notification: Performance of collectInitialBindings (initialization): time 0.003323/3.521, allocations: 1.831 MB / 1.325 GB, free: 152.5 MB / 0.6702 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01257/3.533, allocations: 3.546 MB / 1.329 GB, free: 148.9 MB / 0.6702 GB Notification: Performance of setup shared object (initialization): time 6.197e-05/3.533, allocations: 309.1 kB / 1.329 GB, free: 148.6 MB / 0.6702 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01879/3.552, allocations: 15.73 MB / 1.344 GB, free: 132.9 MB / 0.6702 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02275/3.575, allocations: 25.79 MB / 1.369 GB, free: 102.1 MB / 0.6702 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04206/3.617, allocations: 43.55 MB / 1.412 GB, free: 53.52 MB / 0.6702 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003387/3.617, allocations: 104 kB / 1.412 GB, free: 53.42 MB / 0.6702 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.0579/3.675, allocations: 41.3 MB / 1.452 GB, free: 12.1 MB / 0.6702 GB Notification: Performance of prepare postOptimizeDAE: time 0.000382/3.676, allocations: 156 kB / 1.453 GB, free: 11.95 MB / 0.6702 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005586/3.676, allocations: 356.9 kB / 1.453 GB, free: 11.6 MB / 0.6702 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002553/3.679, allocations: 0.927 MB / 1.454 GB, free: 10.67 MB / 0.6702 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02183/3.701, allocations: 4.967 MB / 1.459 GB, free: 5.691 MB / 0.6702 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2908/3.991, allocations: 6.891 MB / 1.465 GB, free: 200.1 MB / 0.6702 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01744/4.009, allocations: 2.062 MB / 1.467 GB, free: 200.1 MB / 0.6702 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00365/4.013, allocations: 0.9659 MB / 1.468 GB, free: 200.1 MB / 0.6702 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1622 * Number of states: 0 () * Number of discrete variables: 58 (relativeSensor.arrow.twoHeadedArrow,relativeSensor.arrow.headAtOrigin,relative_b1.arrow.twoHeadedArrow,relative_b1.arrow.headAtOrigin,relative_b2.arrow.twoHeadedArrow,relative_b2.arrow.headAtOrigin,relative_a2.arrow.twoHeadedArrow,relative_a2.arrow.headAtOrigin,relative_a1.arrow.twoHeadedArrow,relative_a1.arrow.headAtOrigin,relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (2022): * Single equations (assignments): 2012 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01394/4.027, allocations: 7.439 MB / 1.476 GB, free: 197.8 MB / 0.6702 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002548/4.029, allocations: 0.8665 MB / 1.476 GB, free: 197.8 MB / 0.6702 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04361/4.073, allocations: 29.96 MB / 1.506 GB, free: 183.9 MB / 0.6702 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001191/4.073, allocations: 90.81 kB / 1.506 GB, free: 183.9 MB / 0.6702 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-05/4.073, allocations: 3.938 kB / 1.506 GB, free: 183.9 MB / 0.6702 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-05/4.073, allocations: 20.44 kB / 1.506 GB, free: 183.9 MB / 0.6702 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08349/4.157, allocations: 71.14 MB / 1.575 GB, free: 126.1 MB / 0.6702 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.109e-05/4.157, allocations: 4 kB / 1.575 GB, free: 126.1 MB / 0.6702 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01203/4.169, allocations: 1.967 MB / 1.577 GB, free: 124.1 MB / 0.6702 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001327/4.17, allocations: 466.7 kB / 1.578 GB, free: 123.7 MB / 0.6702 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001792/4.172, allocations: 72.17 kB / 1.578 GB, free: 123.6 MB / 0.6702 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004914/4.177, allocations: 5.404 MB / 1.583 GB, free: 118 MB / 0.6702 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/4.177, allocations: 7.984 kB / 1.583 GB, free: 118 MB / 0.6702 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05779/4.235, allocations: 50.22 MB / 1.632 GB, free: 68.23 MB / 0.6702 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002217/4.237, allocations: 0.8319 MB / 1.633 GB, free: 67.88 MB / 0.6702 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003876/4.241, allocations: 75.38 kB / 1.633 GB, free: 67.81 MB / 0.6702 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01149/4.252, allocations: 1.532 MB / 1.634 GB, free: 66.28 MB / 0.6702 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002587/4.255, allocations: 233.5 kB / 1.635 GB, free: 66.06 MB / 0.6702 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001384/4.256, allocations: 120 kB / 1.635 GB, free: 65.94 MB / 0.6702 GB Notification: Performance of sorting global known variables: time 0.009839/4.266, allocations: 6.042 MB / 1.641 GB, free: 59.95 MB / 0.6702 GB Notification: Performance of sort global known variables: time 5.91e-07/4.266, allocations: 0 / 1.641 GB, free: 59.95 MB / 0.6702 GB Notification: Performance of remove unused functions: time 0.01609/4.282, allocations: 4.101 MB / 1.645 GB, free: 55.86 MB / 0.6702 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (404): * Single equations (assignments): 394 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,8,100.0%), (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.05818/4.341, allocations: 51.07 MB / 1.695 GB, free: 5.051 MB / 0.6702 GB Notification: Performance of simCode: created initialization part: time 0.3239/4.664, allocations: 34.64 MB / 1.728 GB, free: 248.8 MB / 0.7014 GB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/4.665, allocations: 3.344 kB / 1.728 GB, free: 248.8 MB / 0.7014 GB Notification: Performance of simCode: created simulation system equations: time 0.01729/4.682, allocations: 14.84 MB / 1.743 GB, free: 241.9 MB / 0.7014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01096/4.693, allocations: 1.487 MB / 1.744 GB, free: 241.3 MB / 0.7014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2349/4.928, allocations: 213.4 MB / 1.953 GB, free: 29.23 MB / 0.7014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01698/4.945, allocations: 10.43 MB / 1.963 GB, free: 18.75 MB / 0.7014 GB Notification: Performance of simCode: alias equations: time 0.01921/4.964, allocations: 7.095 MB / 1.97 GB, free: 11.64 MB / 0.7014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01676/4.981, allocations: 7.302 MB / 1.977 GB, free: 4.336 MB / 0.7014 GB Notification: Performance of SimCode: time 1.092e-06/4.981, allocations: 0 / 1.977 GB, free: 4.336 MB / 0.7014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5538/5.535, allocations: 244.7 MB / 2.216 GB, free: 31.37 MB / 0.7014 GB Notification: Performance of buildModelFMU: Generate platform static: time 113.2/118.7, allocations: 7.375 kB / 2.216 GB, free: 31.37 MB / 0.7014 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1)