Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_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.001539/0.001539, allocations: 102.1 kB / 16.27 MB, free: 5.98 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.001707/0.001707, allocations: 188.5 kB / 17.19 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2313/0.2313, allocations: 43.53 MB / 313.9 MB, free: 0.5234 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 67.25 kB / 382.8 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1292, allocations: 57.79 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.02573/0.155, allocations: 27.32 MB / 467.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02194/0.1769, allocations: 8.763 MB / 476.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01032/0.1873, allocations: 223.5 kB / 476.9 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03944/0.2268, allocations: 22.1 MB / 499 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01164/0.2385, allocations: 4.128 MB / 0.4914 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01074/0.2493, allocations: 4.83 MB / 0.4961 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01695/0.2663, allocations: 11.19 MB / 0.507 GB, free: 8.008 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3013/0.5677, allocations: 32.83 MB / 0.5391 GB, free: 17.23 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01741/0.5851, allocations: 7.565 MB / 0.5464 GB, free: 16.98 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01773/0.6029, allocations: 9.55 MB / 0.5558 GB, free: 16.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008803/0.6118, allocations: 2.328 MB / 0.558 GB, free: 16.25 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01239/0.6242, allocations: 3.634 MB / 0.5616 GB, free: 16.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01389/0.6381, allocations: 9.043 MB / 0.5704 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01849/0.6567, allocations: 10.43 MB / 0.5806 GB, free: 7.445 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03821/0.6949, allocations: 34 MB / 0.6138 GB, free: 15.09 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.6949, allocations: 0 / 0.6138 GB, free: 15.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.695, allocations: 4 kB / 0.6138 GB, free: 15.08 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001428/0.6964, allocations: 0 / 0.6138 GB, free: 15.08 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5965 * Number of variables: 5965 Notification: Performance of Generate backend data structure: time 0.0684/0.7648, allocations: 19.43 MB / 0.6328 GB, free: 11.76 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/0.7649, allocations: 11.89 kB / 0.6328 GB, free: 11.75 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0118/0.7767, allocations: 2.974 MB / 0.6357 GB, free: 8.828 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.171/0.9477, allocations: 13.84 MB / 0.6492 GB, free: 10.95 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02705/0.9748, allocations: 10.25 MB / 0.6592 GB, free: 1.25 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001673/0.9765, allocations: 1.322 MB / 0.6605 GB, free: 15.98 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008193/0.9848, allocations: 1.738 MB / 0.6622 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1105/1.095, allocations: 40.82 MB / 0.7021 GB, free: 4.531 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001282/1.097, allocations: 92.92 kB / 0.7022 GB, free: 4.477 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009037/1.106, allocations: 0.7601 MB / 0.7029 GB, free: 3.781 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007324/1.113, allocations: 4.175 MB / 0.707 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5427/1.656, allocations: 33.36 MB / 0.7396 GB, free: 178.6 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1528/1.809, allocations: 118.9 MB / 0.8557 GB, free: 92.22 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05544/1.864, allocations: 21.91 MB / 0.8771 GB, free: 69.83 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006953/1.871, allocations: 6.955 MB / 0.8839 GB, free: 62.86 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03155/1.903, allocations: 27.3 MB / 0.9106 GB, free: 35.23 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.385e-05/1.903, allocations: 76.92 kB / 0.9106 GB, free: 35.15 MB / 0.545 GB Notification: Performance of pre-optimization done (n=372): time 7.103e-06/1.903, allocations: 4 kB / 0.9106 GB, free: 35.14 MB / 0.545 GB Notification: Performance of matching and sorting (n=486): time 1.712/3.615, allocations: 323.5 MB / 1.227 GB, free: 134 MB / 0.5452 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.874e-05/3.615, allocations: 289.5 kB / 1.227 GB, free: 133.7 MB / 0.5452 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01478/3.629, allocations: 10.25 MB / 1.237 GB, free: 123.4 MB / 0.5452 GB Notification: Performance of collectPreVariables (initialization): time 0.002251/3.632, allocations: 109 kB / 1.237 GB, free: 123.3 MB / 0.5452 GB Notification: Performance of collectInitialEqns (initialization): time 0.005798/3.638, allocations: 10.8 MB / 1.247 GB, free: 112.5 MB / 0.5452 GB Notification: Performance of collectInitialBindings (initialization): time 0.003978/3.642, allocations: 1.893 MB / 1.249 GB, free: 110.6 MB / 0.5452 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009221/3.651, allocations: 3.711 MB / 1.253 GB, free: 106.9 MB / 0.5452 GB Notification: Performance of setup shared object (initialization): time 4.315e-05/3.651, allocations: 305.1 kB / 1.253 GB, free: 106.6 MB / 0.5452 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01825/3.669, allocations: 16.05 MB / 1.269 GB, free: 90.55 MB / 0.5452 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0243/3.693, allocations: 26.68 MB / 1.295 GB, free: 58.67 MB / 0.5452 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0438/3.737, allocations: 44.87 MB / 1.339 GB, free: 8.512 MB / 0.5452 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002958/3.738, allocations: 108 kB / 1.339 GB, free: 8.406 MB / 0.5452 GB Notification: Performance of matching and sorting (n=2205) (initialization): time 0.3182/4.056, allocations: 42.41 MB / 1.38 GB, free: 157.6 MB / 0.5608 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002134/4.056, allocations: 168.5 kB / 1.38 GB, free: 157.6 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005224/4.057, allocations: 374.1 kB / 1.381 GB, free: 157.6 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002213/4.059, allocations: 0.9575 MB / 1.382 GB, free: 157.5 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02009/4.079, allocations: 5.227 MB / 1.387 GB, free: 157 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006193/4.085, allocations: 6.932 MB / 1.394 GB, free: 152.6 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01955/4.105, allocations: 2.11 MB / 1.396 GB, free: 152.3 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003547/4.108, allocations: 1.022 MB / 1.397 GB, free: 152.2 MB / 0.5608 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1713 * Number of states: 0 () * Number of discrete variables: 48 (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 (2149): * Single equations (assignments): 2139 * 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.01525/4.124, allocations: 7.841 MB / 1.404 GB, free: 148.5 MB / 0.5608 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002266/4.126, allocations: 0.8745 MB / 1.405 GB, free: 148.5 MB / 0.5608 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03745/4.163, allocations: 30.5 MB / 1.435 GB, free: 122.4 MB / 0.5608 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001117/4.163, allocations: 87.12 kB / 1.435 GB, free: 122.3 MB / 0.5608 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/4.163, allocations: 12 kB / 1.435 GB, free: 122.3 MB / 0.5608 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.023e-05/4.164, allocations: 24.61 kB / 1.435 GB, free: 122.3 MB / 0.5608 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08429/4.248, allocations: 72.82 MB / 1.506 GB, free: 49.38 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.618e-05/4.248, allocations: 4 kB / 1.506 GB, free: 49.37 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01278/4.261, allocations: 2.043 MB / 1.508 GB, free: 47.32 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001316/4.262, allocations: 458.1 kB / 1.509 GB, free: 46.87 MB / 0.5608 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001573/4.264, allocations: 84.92 kB / 1.509 GB, free: 46.79 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004363/4.268, allocations: 5.404 MB / 1.514 GB, free: 41.15 MB / 0.5608 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/4.268, allocations: 11.3 kB / 1.514 GB, free: 41.14 MB / 0.5608 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3216/4.59, allocations: 50.94 MB / 1.564 GB, free: 180.6 MB / 0.5764 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009675/4.599, allocations: 3.957 MB / 1.568 GB, free: 180.5 MB / 0.5764 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004093/4.604, allocations: 75.66 kB / 1.568 GB, free: 180.5 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01295/4.616, allocations: 1.553 MB / 1.569 GB, free: 180.5 MB / 0.5764 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003023/4.62, allocations: 249.7 kB / 1.569 GB, free: 180.5 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001392/4.621, allocations: 131.6 kB / 1.57 GB, free: 180.5 MB / 0.5764 GB Notification: Performance of sorting global known variables: time 0.01449/4.635, allocations: 6.366 MB / 1.576 GB, free: 179 MB / 0.5764 GB Notification: Performance of sort global known variables: time 1.072e-06/4.635, allocations: 0 / 1.576 GB, free: 179 MB / 0.5764 GB Notification: Performance of remove unused functions: time 0.01943/4.655, allocations: 4.289 MB / 1.58 GB, free: 178.7 MB / 0.5764 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 (444): * Single equations (assignments): 434 * 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.06386/4.719, allocations: 51.8 MB / 1.631 GB, free: 149.9 MB / 0.5764 GB Notification: Performance of simCode: created initialization part: time 0.06654/4.785, allocations: 49.5 MB / 1.679 GB, free: 104.4 MB / 0.5764 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/4.785, allocations: 4.188 kB / 1.679 GB, free: 104.4 MB / 0.5764 GB Notification: Performance of simCode: created simulation system equations: time 0.01761/4.803, allocations: 15.09 MB / 1.694 GB, free: 90.88 MB / 0.5764 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01134/4.814, allocations: 1.53 MB / 1.695 GB, free: 89.62 MB / 0.5764 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.505/5.319, allocations: 262 MB / 1.951 GB, free: 29.99 MB / 0.5764 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0212/5.341, allocations: 11.02 MB / 1.962 GB, free: 18.98 MB / 0.5764 GB Notification: Performance of simCode: alias equations: time 0.02445/5.365, allocations: 7.361 MB / 1.969 GB, free: 11.62 MB / 0.5764 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01577/5.381, allocations: 7.779 MB / 1.977 GB, free: 3.836 MB / 0.5764 GB Notification: Performance of SimCode: time 9.11e-07/5.381, allocations: 0 / 1.977 GB, free: 3.836 MB / 0.5764 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7429/6.124, allocations: 250.1 MB / 2.221 GB, free: 165.7 MB / 0.592 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.98/22.11, allocations: 12.95 kB / 2.221 GB, free: 165.7 MB / 0.592 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/RelativeSensor/RelativeSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches