Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007928/0.0007929, allocations: 95.86 kB / 17 MB, free: 6.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007884/0.0007886, allocations: 181 kB / 17.88 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 223.3 MB / 241.9 MB, free: 352 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2092/0.2092, allocations: 44.23 MB / 337.2 MB, free: 2.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003343, allocations: 8 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.118, allocations: 61.91 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.3079/0.4259, allocations: 82.99 MB / 0.5416 GB, free: 6.102 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04447/0.4704, allocations: 18.46 MB / 0.5597 GB, free: 8.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01705/0.4875, allocations: 427.5 kB / 0.5601 GB, free: 8.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01469/0.5022, allocations: 4.551 MB / 0.5645 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03992/0.5422, allocations: 12.77 MB / 0.577 GB, free: 8.688 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009445/0.5516, allocations: 1.755 MB / 0.5787 GB, free: 6.93 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.09098/0.6427, allocations: 69.75 MB / 0.6468 GB, free: 1.09 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06366/0.7064, allocations: 39.68 MB / 0.6856 GB, free: 9.27 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009264/0.7157, allocations: 3.807 MB / 0.6893 GB, free: 5.449 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01097/0.7267, allocations: 5.966 MB / 0.6951 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.002467/0.7292, allocations: 0.5195 MB / 0.6956 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005114/0.7343, allocations: 1.697 MB / 0.6973 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.008028/0.7424, allocations: 6.32 MB / 0.7034 GB, free: 6.91 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.005852/0.7483, allocations: 3.184 MB / 0.7066 GB, free: 3.711 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.6055/1.354, allocations: 27.32 MB / 0.7332 GB, free: 90.73 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/1.354, allocations: 2 kB / 0.7332 GB, free: 90.73 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.165e-06/1.354, allocations: 0 / 0.7332 GB, free: 90.73 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.00212/1.356, allocations: 0.7812 kB / 0.7332 GB, free: 90.73 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5720 * Number of variables: 5720 Notification: Performance of Generate backend data structure: time 0.047/1.403, allocations: 14.96 MB / 0.7478 GB, free: 82.37 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/1.403, allocations: 7.938 kB / 0.7479 GB, free: 82.37 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01732/1.42, allocations: 2.861 MB / 0.7507 GB, free: 81.67 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1356/1.556, allocations: 14.09 MB / 0.7644 GB, free: 76.72 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02406/1.58, allocations: 9.628 MB / 0.7738 GB, free: 74.28 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00153/1.582, allocations: 1.283 MB / 0.7751 GB, free: 74.25 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009319/1.591, allocations: 1.695 MB / 0.7767 GB, free: 74.23 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0985/1.69, allocations: 39.3 MB / 0.8151 GB, free: 47.77 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008911/1.691, allocations: 95.33 kB / 0.8152 GB, free: 47.71 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007835/1.698, allocations: 0.7379 MB / 0.8159 GB, free: 47.54 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005317/1.704, allocations: 3.848 MB / 0.8197 GB, free: 44.39 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07112/1.775, allocations: 31.89 MB / 0.8508 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5108/2.286, allocations: 114.5 MB / 0.9626 GB, free: 160.2 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04986/2.336, allocations: 21.76 MB / 0.9839 GB, free: 157.8 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008773/2.344, allocations: 6.686 MB / 0.9904 GB, free: 157.8 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04155/2.386, allocations: 26.48 MB / 1.016 GB, free: 143.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.9e-05/2.386, allocations: 72.7 kB / 1.016 GB, free: 143.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=336): time 1.074e-05/2.386, allocations: 0 / 1.016 GB, free: 143.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=450): time 1.269/3.655, allocations: 322.8 MB / 1.332 GB, free: 75.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/3.655, allocations: 285.5 kB / 1.332 GB, free: 75.27 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02601/3.681, allocations: 9.81 MB / 1.341 GB, free: 65.51 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.002339/3.684, allocations: 94.88 kB / 1.342 GB, free: 65.41 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.006515/3.69, allocations: 10.41 MB / 1.352 GB, free: 55.02 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.003723/3.694, allocations: 1.759 MB / 1.353 GB, free: 53.27 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003532/3.698, allocations: 320 kB / 1.354 GB, free: 52.96 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.002083/3.7, allocations: 0.9957 MB / 1.355 GB, free: 51.95 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02158/3.721, allocations: 15.69 MB / 1.37 GB, free: 36.25 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3198/4.041, allocations: 25.86 MB / 1.395 GB, free: 191.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.025/4.066, allocations: 19.54 MB / 1.414 GB, free: 182.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005417/4.067, allocations: 101.3 kB / 1.414 GB, free: 182.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=2096) (initialization): time 0.08003/4.147, allocations: 41.27 MB / 1.455 GB, free: 153.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006603/4.147, allocations: 157.7 kB / 1.455 GB, free: 153.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005471/4.148, allocations: 363.7 kB / 1.455 GB, free: 152.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00189/4.15, allocations: 0.9903 MB / 1.456 GB, free: 152 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01981/4.17, allocations: 5.003 MB / 1.461 GB, free: 148.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005842/4.176, allocations: 6.364 MB / 1.467 GB, free: 142.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01609/4.192, allocations: 2.068 MB / 1.469 GB, free: 140.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003497/4.195, allocations: 0.973 MB / 1.47 GB, free: 139.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1640 * Number of states: 0 () * Number of discrete variables: 58 (relativeSensor.arrow.arrowLine.twoHeadedArrow,relativeSensor.arrow.headAtOrigin,relative_b1.arrow.arrowLine.twoHeadedArrow,relative_b1.arrow.headAtOrigin,relative_b2.arrow.arrowLine.twoHeadedArrow,relative_b2.arrow.headAtOrigin,relative_a2.arrow.arrowLine.twoHeadedArrow,relative_a2.arrow.headAtOrigin,relative_a1.arrow.arrowLine.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 (2040): * Single equations (assignments): 2030 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01667/4.212, allocations: 7.587 MB / 1.478 GB, free: 133.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003953/4.216, allocations: 0.8278 MB / 1.479 GB, free: 132.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04512/4.261, allocations: 29.94 MB / 1.508 GB, free: 106.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001155/4.261, allocations: 83.98 kB / 1.508 GB, free: 106 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.188e-05/4.261, allocations: 8 kB / 1.508 GB, free: 106 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.384e-05/4.261, allocations: 21.67 kB / 1.508 GB, free: 106 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09614/4.358, allocations: 71.63 MB / 1.578 GB, free: 31.51 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-05/4.358, allocations: 4 kB / 1.578 GB, free: 31.51 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01061/4.368, allocations: 1.961 MB / 1.58 GB, free: 29.54 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001402/4.37, allocations: 462.4 kB / 1.58 GB, free: 29.09 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002186/4.372, allocations: 72 kB / 1.58 GB, free: 29.02 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004852/4.377, allocations: 5.048 MB / 1.585 GB, free: 23.75 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/4.377, allocations: 0 / 1.585 GB, free: 23.75 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3615/4.738, allocations: 50.13 MB / 1.634 GB, free: 171.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002294/4.741, allocations: 0.8067 MB / 1.635 GB, free: 171.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003855/4.744, allocations: 78.27 kB / 1.635 GB, free: 171.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01052/4.755, allocations: 1.571 MB / 1.637 GB, free: 171.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002491/4.758, allocations: 232 kB / 1.637 GB, free: 171.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009086/4.758, allocations: 118.8 kB / 1.637 GB, free: 171.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.01072/4.769, allocations: 6.062 MB / 1.643 GB, free: 169.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.71e-07/4.769, allocations: 0 / 1.643 GB, free: 169.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01785/4.787, allocations: 4.148 MB / 1.647 GB, free: 165.9 MB / 0.5919 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05958/4.847, allocations: 50.97 MB / 1.697 GB, free: 120.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.04455/4.891, allocations: 34.55 MB / 1.73 GB, free: 88.43 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/4.891, allocations: 0.625 kB / 1.73 GB, free: 88.43 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01773/4.909, allocations: 14.83 MB / 1.745 GB, free: 73.59 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01234/4.921, allocations: 1.413 MB / 1.746 GB, free: 72.22 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4818/5.403, allocations: 168.7 MB / 1.911 GB, free: 120.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02598/5.429, allocations: 10.65 MB / 1.921 GB, free: 112.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.02544/5.455, allocations: 7.14 MB / 1.928 GB, free: 106.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01671/5.471, allocations: 7.431 MB / 1.936 GB, free: 98.81 MB / 0.5919 GB Notification: Performance of SimCode: time 7.62e-07/5.471, allocations: 6.844 kB / 1.936 GB, free: 98.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7596/6.231, allocations: 264.3 MB / 2.194 GB, free: 66.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004368/6.232, allocations: 223.5 kB / 2.194 GB, free: 66.16 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.551/13.78, allocations: 0 / 2.194 GB, free: 66.16 MB / 0.5919 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat