Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001208/0.001208, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 226.5 MB / 243.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007533/0.0007533, allocations: 98.97 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.298/0.298, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003055/0.0003056, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.3356, allocations: 62.95 MB / 0.5159 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.06928/0.405, allocations: 83.04 MB / 0.597 GB, free: 5.559 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04699/0.452, allocations: 18.45 MB / 0.6151 GB, free: 3.742 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02024/0.4723, allocations: 430.9 kB / 0.6155 GB, free: 3.32 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01589/0.4882, allocations: 4.548 MB / 0.6199 GB, free: 14.75 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03605/0.5243, allocations: 12.78 MB / 0.6324 GB, free: 1.918 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008793/0.5332, allocations: 1.876 MB / 0.6342 GB, free: 40 kB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.3176/0.8508, allocations: 70.01 MB / 0.7026 GB, free: 48.92 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05458/0.9054, allocations: 45.25 MB / 0.7468 GB, free: 28.85 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007148/0.9126, allocations: 3.82 MB / 0.7505 GB, free: 26.39 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008486/0.9212, allocations: 5.957 MB / 0.7563 GB, free: 22.34 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002057/0.9233, allocations: 0.5156 MB / 0.7568 GB, free: 21.82 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004353/0.9276, allocations: 1.93 MB / 0.7587 GB, free: 20.25 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005429/0.9331, allocations: 6.325 MB / 0.7649 GB, free: 15.62 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009562/0.9426, allocations: 6.888 MB / 0.7716 GB, free: 13.02 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02359/0.9663, allocations: 27.33 MB / 0.7983 GB, free: 5.391 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.974e-06/0.9663, allocations: 0 / 0.7983 GB, free: 5.391 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.485e-06/0.9663, allocations: 0 / 0.7983 GB, free: 5.391 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0009671/0.9673, allocations: 0 / 0.7983 GB, free: 5.391 MB / 0.4948 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.03454/1.002, allocations: 14.8 MB / 0.8128 GB, free: 7.898 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/1.002, allocations: 8.031 kB / 0.8128 GB, free: 7.891 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009071/1.011, allocations: 2.861 MB / 0.8156 GB, free: 6.277 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1665/1.177, allocations: 14.09 MB / 0.8293 GB, free: 8.594 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02123/1.199, allocations: 9.509 MB / 0.8386 GB, free: 1.809 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001292/1.2, allocations: 1.285 MB / 0.8399 GB, free: 1.082 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0059/1.206, allocations: 1.701 MB / 0.8415 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09132/1.297, allocations: 39.31 MB / 0.8799 GB, free: 9.332 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006914/1.298, allocations: 95.14 kB / 0.88 GB, free: 9.238 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005099/1.303, allocations: 0.744 MB / 0.8807 GB, free: 8.551 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006042/1.309, allocations: 3.851 MB / 0.8845 GB, free: 4.715 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5413/1.851, allocations: 31.89 MB / 0.9156 GB, free: 201.3 MB / 0.5887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1346/1.985, allocations: 114.6 MB / 1.028 GB, free: 115 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05214/2.037, allocations: 21.76 MB / 1.049 GB, free: 92.79 MB / 0.5887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006413/2.044, allocations: 6.689 MB / 1.055 GB, free: 86.09 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03124/2.075, allocations: 26.47 MB / 1.081 GB, free: 59.27 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.596e-05/2.075, allocations: 76.62 kB / 1.081 GB, free: 59.18 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=336): time 7.945e-06/2.075, allocations: 3.984 kB / 1.081 GB, free: 59.18 MB / 0.5887 GB Notification: Performance of matching and sorting (n=450): time 1.644/3.719, allocations: 322.9 MB / 1.397 GB, free: 170.3 MB / 0.5888 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.522e-05/3.719, allocations: 278.8 kB / 1.397 GB, free: 170.1 MB / 0.5888 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01214/3.731, allocations: 9.803 MB / 1.406 GB, free: 166.5 MB / 0.5888 GB Notification: Performance of collectPreVariables (initialization): time 0.00171/3.733, allocations: 101 kB / 1.406 GB, free: 166.4 MB / 0.5888 GB Notification: Performance of collectInitialEqns (initialization): time 0.004879/3.738, allocations: 10.41 MB / 1.417 GB, free: 158.5 MB / 0.5888 GB Notification: Performance of collectInitialBindings (initialization): time 0.00285/3.741, allocations: 1.764 MB / 1.418 GB, free: 157.3 MB / 0.5888 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001767/3.742, allocations: 322.9 kB / 1.419 GB, free: 157 MB / 0.5888 GB Notification: Performance of setup shared object (initialization): time 0.0008106/3.743, allocations: 0.9968 MB / 1.42 GB, free: 156.4 MB / 0.5888 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01875/3.762, allocations: 15.69 MB / 1.435 GB, free: 149.4 MB / 0.5888 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02085/3.783, allocations: 25.86 MB / 1.46 GB, free: 121 MB / 0.5888 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03932/3.822, allocations: 43.66 MB / 1.503 GB, free: 75.21 MB / 0.5888 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000209/3.822, allocations: 100 kB / 1.503 GB, free: 75.11 MB / 0.5888 GB Notification: Performance of matching and sorting (n=2096) (initialization): time 0.05475/3.877, allocations: 41.25 MB / 1.543 GB, free: 35.1 MB / 0.5888 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001863/3.877, allocations: 160 kB / 1.543 GB, free: 34.94 MB / 0.5888 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003196/3.878, allocations: 360.1 kB / 1.544 GB, free: 34.59 MB / 0.5888 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001584/3.879, allocations: 0.9375 MB / 1.545 GB, free: 33.65 MB / 0.5888 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01835/3.898, allocations: 4.998 MB / 1.549 GB, free: 28.64 MB / 0.5888 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005382/3.903, allocations: 6.373 MB / 1.556 GB, free: 22.02 MB / 0.5888 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01675/3.92, allocations: 2.071 MB / 1.558 GB, free: 19.95 MB / 0.5888 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002947/3.923, allocations: 0.9745 MB / 1.559 GB, free: 18.98 MB / 0.5888 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.2445/4.167, allocations: 7.583 MB / 1.566 GB, free: 171 MB / 0.5888 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002153/4.169, allocations: 0.8316 MB / 1.567 GB, free: 171 MB / 0.5888 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03929/4.209, allocations: 29.94 MB / 1.596 GB, free: 158.4 MB / 0.5888 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001655/4.209, allocations: 91.56 kB / 1.596 GB, free: 158.3 MB / 0.5888 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.226e-05/4.209, allocations: 5.188 kB / 1.596 GB, free: 158.3 MB / 0.5888 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001051/4.209, allocations: 20.44 kB / 1.596 GB, free: 158.3 MB / 0.5888 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09041/4.3, allocations: 71.63 MB / 1.666 GB, free: 110.9 MB / 0.5888 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.178e-05/4.3, allocations: 0 / 1.666 GB, free: 110.9 MB / 0.5888 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01142/4.311, allocations: 1.97 MB / 1.668 GB, free: 109.7 MB / 0.5888 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00136/4.312, allocations: 458 kB / 1.669 GB, free: 109.3 MB / 0.5888 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001623/4.314, allocations: 80.11 kB / 1.669 GB, free: 109.3 MB / 0.5888 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004273/4.318, allocations: 5.033 MB / 1.674 GB, free: 104.5 MB / 0.5888 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/4.318, allocations: 4 kB / 1.674 GB, free: 104.5 MB / 0.5888 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05335/4.372, allocations: 50.14 MB / 1.723 GB, free: 55.57 MB / 0.5888 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002368/4.374, allocations: 0.8028 MB / 1.723 GB, free: 55.2 MB / 0.5888 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003408/4.378, allocations: 73.5 kB / 1.723 GB, free: 55.12 MB / 0.5888 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0108/4.388, allocations: 1.575 MB / 1.725 GB, free: 53.56 MB / 0.5888 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003309/4.392, allocations: 230.7 kB / 1.725 GB, free: 53.34 MB / 0.5888 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001429/4.393, allocations: 122.2 kB / 1.725 GB, free: 53.22 MB / 0.5888 GB Notification: Performance of sorting global known variables: time 0.009673/4.403, allocations: 6.06 MB / 1.731 GB, free: 47.21 MB / 0.5888 GB Notification: Performance of sort global known variables: time 3.01e-07/4.403, allocations: 2 kB / 1.731 GB, free: 47.21 MB / 0.5888 GB Notification: Performance of remove unused functions: time 0.01564/4.419, allocations: 4.146 MB / 1.735 GB, free: 43.07 MB / 0.5888 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.2986/4.717, allocations: 50.99 MB / 1.785 GB, free: 185.2 MB / 0.6044 GB Notification: Performance of simCode: created initialization part: time 0.04309/4.76, allocations: 34.55 MB / 1.819 GB, free: 172 MB / 0.6044 GB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/4.76, allocations: 8.344 kB / 1.819 GB, free: 172 MB / 0.6044 GB Notification: Performance of simCode: created simulation system equations: time 0.01689/4.777, allocations: 14.83 MB / 1.833 GB, free: 165.1 MB / 0.6044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01228/4.79, allocations: 1.387 MB / 1.835 GB, free: 164.6 MB / 0.6044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2122/5.002, allocations: 170.7 MB / 2.001 GB, free: 4.656 MB / 0.6044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2421/5.244, allocations: 10.64 MB / 2.012 GB, free: 185.7 MB / 0.6044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01542/5.259, allocations: 7.556 MB / 2.019 GB, free: 183.6 MB / 0.6044 GB Notification: Performance of SimCode: time 1.243e-06/5.259, allocations: 0 / 2.019 GB, free: 183.6 MB / 0.6044 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 19.69/24.95, allocations: 413.8 MB / 2.423 GB, free: 26.54 MB / 0.6044 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/RelativeSensor/RelativeSensor.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches