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.001312/0.001312, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001312/0.001312, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 247 MB, free: 10.45 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.2363/0.2363, allocations: 46.11 MB / 344.3 MB, free: 11.46 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.002278/0.002278, allocations: 75.88 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3232, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.03106/0.3543, allocations: 24.98 MB / 0.555 GB, free: 8.672 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02229/0.3766, allocations: 8.365 MB / 0.5631 GB, free: 296 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006904/0.3836, allocations: 215.5 kB / 0.5634 GB, free: 80 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03996/0.4236, allocations: 21.91 MB / 0.5848 GB, free: 10.1 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01096/0.4346, allocations: 3.746 MB / 0.5884 GB, free: 6.34 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01101/0.4457, allocations: 4.806 MB / 0.5931 GB, free: 1.523 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01816/0.4639, allocations: 10.9 MB / 0.6037 GB, free: 6.594 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04778/0.5117, allocations: 32.47 MB / 0.6355 GB, free: 5.918 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01178/0.5235, allocations: 7.305 MB / 0.6426 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01473/0.5383, allocations: 9.064 MB / 0.6514 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.006588/0.5449, allocations: 2.242 MB / 0.6536 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01085/0.5558, allocations: 3.58 MB / 0.6571 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.01259/0.5684, allocations: 8.612 MB / 0.6655 GB, free: 7.059 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.01813/0.5866, allocations: 9.909 MB / 0.6752 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04196/0.6286, allocations: 32.92 MB / 0.7074 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.6286, allocations: 0 / 0.7074 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of FrontEnd: time 4.248e-06/0.6287, allocations: 0 / 0.7074 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0009323/0.6296, allocations: 3.938 kB / 0.7074 GB, free: 12.07 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.4932/1.123, allocations: 18.92 MB / 0.7258 GB, free: 145.9 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/1.123, allocations: 9.031 kB / 0.7259 GB, free: 145.9 MB / 0.5607 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008845/1.132, allocations: 2.802 MB / 0.7286 GB, free: 144.2 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1842/1.316, allocations: 13.72 MB / 0.742 GB, free: 134.6 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0189/1.335, allocations: 9.508 MB / 0.7513 GB, free: 125.9 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007585/1.336, allocations: 1.27 MB / 0.7525 GB, free: 124.7 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004925/1.341, allocations: 1.685 MB / 0.7542 GB, free: 123.1 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07584/1.417, allocations: 38.37 MB / 0.7916 GB, free: 83.62 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005781/1.417, allocations: 99.28 kB / 0.7917 GB, free: 83.53 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004371/1.422, allocations: 0.7297 MB / 0.7924 GB, free: 82.85 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004234/1.426, allocations: 3.55 MB / 0.7959 GB, free: 79.3 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05798/1.484, allocations: 31.14 MB / 0.8263 GB, free: 48.14 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1516/1.635, allocations: 111.6 MB / 0.9353 GB, free: 15.6 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06434/1.7, allocations: 21.51 MB / 0.9563 GB, free: 9.621 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009308/1.709, allocations: 6.7 MB / 0.9628 GB, free: 2.902 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5111/2.22, allocations: 26.44 MB / 0.9886 GB, free: 214.8 MB / 0.6545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.586e-05/2.22, allocations: 69.08 kB / 0.9887 GB, free: 214.8 MB / 0.6545 GB Notification: Performance of pre-optimization done (n=336): time 6.993e-06/2.22, allocations: 0 / 0.9887 GB, free: 214.8 MB / 0.6545 GB Notification: Performance of matching and sorting (n=450): time 1.292/3.513, allocations: 321.9 MB / 1.303 GB, free: 174.2 MB / 0.6702 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.959e-05/3.513, allocations: 284 kB / 1.303 GB, free: 173.9 MB / 0.6702 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01288/3.526, allocations: 9.758 MB / 1.313 GB, free: 164.4 MB / 0.6702 GB Notification: Performance of collectPreVariables (initialization): time 0.001726/3.528, allocations: 105.7 kB / 1.313 GB, free: 164.3 MB / 0.6702 GB Notification: Performance of collectInitialEqns (initialization): time 0.004495/3.532, allocations: 10.61 MB / 1.323 GB, free: 154.4 MB / 0.6702 GB Notification: Performance of collectInitialBindings (initialization): time 0.002679/3.535, allocations: 1.837 MB / 1.325 GB, free: 152.6 MB / 0.6702 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009648/3.545, allocations: 3.546 MB / 1.329 GB, free: 149 MB / 0.6702 GB Notification: Performance of setup shared object (initialization): time 4.865e-05/3.545, allocations: 305.1 kB / 1.329 GB, free: 148.7 MB / 0.6702 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01756/3.562, allocations: 15.72 MB / 1.344 GB, free: 133 MB / 0.6702 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02195/3.584, allocations: 25.79 MB / 1.369 GB, free: 102.2 MB / 0.6702 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03983/3.624, allocations: 43.56 MB / 1.412 GB, free: 53.62 MB / 0.6702 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002564/3.624, allocations: 104 kB / 1.412 GB, free: 53.52 MB / 0.6702 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.05766/3.682, allocations: 41.29 MB / 1.452 GB, free: 12.21 MB / 0.6702 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003055/3.682, allocations: 160 kB / 1.453 GB, free: 12.06 MB / 0.6702 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005102/3.683, allocations: 352 kB / 1.453 GB, free: 11.71 MB / 0.6702 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002246/3.685, allocations: 0.9324 MB / 1.454 GB, free: 10.78 MB / 0.6702 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02107/3.706, allocations: 4.971 MB / 1.459 GB, free: 5.797 MB / 0.6702 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2738/3.98, allocations: 6.889 MB / 1.465 GB, free: 200 MB / 0.6702 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01893/3.999, allocations: 2.06 MB / 1.467 GB, free: 200 MB / 0.6702 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004313/4.003, allocations: 0.9668 MB / 1.468 GB, free: 200 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.01521/4.019, allocations: 7.442 MB / 1.476 GB, free: 197.6 MB / 0.6702 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003285/4.022, allocations: 0.866 MB / 1.476 GB, free: 197.6 MB / 0.6702 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04327/4.065, allocations: 29.96 MB / 1.506 GB, free: 183.8 MB / 0.6702 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001146/4.065, allocations: 89.72 kB / 1.506 GB, free: 183.8 MB / 0.6702 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.565e-05/4.065, allocations: 4.344 kB / 1.506 GB, free: 183.8 MB / 0.6702 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.991e-05/4.066, allocations: 24.08 kB / 1.506 GB, free: 183.8 MB / 0.6702 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08479/4.15, allocations: 71.14 MB / 1.575 GB, free: 126.2 MB / 0.6702 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.069e-05/4.15, allocations: 4.844 kB / 1.575 GB, free: 126.2 MB / 0.6702 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01202/4.162, allocations: 1.969 MB / 1.577 GB, free: 124.2 MB / 0.6702 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/4.164, allocations: 460.6 kB / 1.578 GB, free: 123.8 MB / 0.6702 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001681/4.166, allocations: 72 kB / 1.578 GB, free: 123.7 MB / 0.6702 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004636/4.17, allocations: 5.407 MB / 1.583 GB, free: 118.1 MB / 0.6702 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/4.17, allocations: 0 / 1.583 GB, free: 118.1 MB / 0.6702 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05512/4.225, allocations: 50.22 MB / 1.632 GB, free: 68.36 MB / 0.6702 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/4.227, allocations: 0.8393 MB / 1.633 GB, free: 68 MB / 0.6702 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003357/4.231, allocations: 71.91 kB / 1.633 GB, free: 67.93 MB / 0.6702 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01131/4.242, allocations: 1.531 MB / 1.634 GB, free: 66.41 MB / 0.6702 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002538/4.245, allocations: 233.6 kB / 1.635 GB, free: 66.18 MB / 0.6702 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001425/4.246, allocations: 118.5 kB / 1.635 GB, free: 66.07 MB / 0.6702 GB Notification: Performance of sorting global known variables: time 0.009146/4.255, allocations: 6.046 MB / 1.641 GB, free: 60.07 MB / 0.6702 GB Notification: Performance of sort global known variables: time 2.91e-07/4.255, allocations: 0 / 1.641 GB, free: 60.07 MB / 0.6702 GB Notification: Performance of remove unused functions: time 0.01613/4.271, allocations: 4.103 MB / 1.645 GB, free: 55.98 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.05805/4.33, allocations: 51.06 MB / 1.695 GB, free: 5.184 MB / 0.6702 GB Notification: Performance of simCode: created initialization part: time 0.3051/4.635, allocations: 34.64 MB / 1.728 GB, free: 248.6 MB / 0.7014 GB Notification: Performance of simCode: created event and clocks part: time 1.222e-05/4.635, allocations: 3.875 kB / 1.728 GB, free: 248.6 MB / 0.7014 GB Notification: Performance of simCode: created simulation system equations: time 0.01714/4.652, allocations: 14.83 MB / 1.743 GB, free: 241.7 MB / 0.7014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01151/4.663, allocations: 1.49 MB / 1.744 GB, free: 241.1 MB / 0.7014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2513/4.915, allocations: 213.4 MB / 1.953 GB, free: 29.25 MB / 0.7014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01954/4.934, allocations: 10.42 MB / 1.963 GB, free: 18.78 MB / 0.7014 GB Notification: Performance of simCode: alias equations: time 0.02086/4.955, allocations: 7.097 MB / 1.97 GB, free: 11.67 MB / 0.7014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01863/4.974, allocations: 7.302 MB / 1.977 GB, free: 4.367 MB / 0.7014 GB Notification: Performance of SimCode: time 1.232e-06/4.974, allocations: 0 / 1.977 GB, free: 4.367 MB / 0.7014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5431/5.517, allocations: 244.7 MB / 2.216 GB, free: 31.48 MB / 0.7014 GB Notification: Performance of buildModelFMU: Generate platform static: time 106.1/111.6, allocations: 7.375 kB / 2.216 GB, free: 31.48 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1)