Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_trunk_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.001337/0.001337, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001372/0.001372, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2329/0.2329, allocations: 46.11 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002218/0.002218, allocations: 79.88 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3294, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.02959/0.359, allocations: 24.98 MB / 0.555 GB, free: 8.645 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02146/0.3805, allocations: 8.357 MB / 0.5631 GB, free: 272 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01001/0.3906, allocations: 215.5 kB / 0.5633 GB, free: 56 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.04107/0.4317, allocations: 21.91 MB / 0.5847 GB, free: 10.09 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01142/0.4432, allocations: 3.743 MB / 0.5884 GB, free: 6.328 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01092/0.4542, allocations: 4.814 MB / 0.5931 GB, free: 1.504 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01882/0.473, allocations: 10.9 MB / 0.6037 GB, free: 6.578 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04988/0.523, allocations: 32.48 MB / 0.6355 GB, free: 5.891 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01306/0.5361, allocations: 7.302 MB / 0.6426 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01569/0.5518, allocations: 9.071 MB / 0.6514 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.006694/0.5586, allocations: 2.242 MB / 0.6536 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009238/0.5678, allocations: 3.576 MB / 0.6571 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.01239/0.5803, allocations: 8.612 MB / 0.6655 GB, free: 7.031 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.02086/0.6012, allocations: 9.905 MB / 0.6752 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04343/0.6446, allocations: 32.92 MB / 0.7074 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.6447, allocations: 0 / 0.7074 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.495e-06/0.6447, allocations: 0 / 0.7074 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.001126/0.6458, allocations: 4 kB / 0.7074 GB, free: 12.05 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.5373/1.183, allocations: 18.92 MB / 0.7258 GB, free: 145.8 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/1.183, allocations: 10.19 kB / 0.7259 GB, free: 145.8 MB / 0.5607 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008959/1.192, allocations: 2.812 MB / 0.7286 GB, free: 144.1 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.181/1.373, allocations: 13.71 MB / 0.742 GB, free: 134.5 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01944/1.393, allocations: 9.515 MB / 0.7513 GB, free: 125.8 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007798/1.393, allocations: 1.269 MB / 0.7525 GB, free: 124.6 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005016/1.398, allocations: 1.685 MB / 0.7542 GB, free: 123 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0721/1.471, allocations: 38.37 MB / 0.7916 GB, free: 83.54 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000576/1.471, allocations: 95.28 kB / 0.7917 GB, free: 83.44 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004801/1.476, allocations: 0.7352 MB / 0.7924 GB, free: 82.76 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004099/1.48, allocations: 3.541 MB / 0.7959 GB, free: 79.23 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05714/1.537, allocations: 31.15 MB / 0.8263 GB, free: 48.08 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1472/1.685, allocations: 111.5 MB / 0.9353 GB, free: 15.55 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06328/1.748, allocations: 21.5 MB / 0.9563 GB, free: 9.578 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009193/1.757, allocations: 6.703 MB / 0.9628 GB, free: 2.859 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4954/2.253, allocations: 26.44 MB / 0.9886 GB, free: 214.8 MB / 0.6545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.743e-05/2.253, allocations: 76.8 kB / 0.9887 GB, free: 214.7 MB / 0.6545 GB Notification: Performance of pre-optimization done (n=336): time 7.233e-06/2.253, allocations: 0 / 0.9887 GB, free: 214.7 MB / 0.6545 GB Notification: Performance of matching and sorting (n=450): time 1.305/3.558, allocations: 321.9 MB / 1.303 GB, free: 174.1 MB / 0.6702 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.876e-05/3.558, allocations: 282.2 kB / 1.303 GB, free: 173.7 MB / 0.6702 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01205/3.57, allocations: 9.765 MB / 1.313 GB, free: 164.2 MB / 0.6702 GB Notification: Performance of collectPreVariables (initialization): time 0.001936/3.572, allocations: 93.7 kB / 1.313 GB, free: 164.1 MB / 0.6702 GB Notification: Performance of collectInitialEqns (initialization): time 0.004996/3.577, allocations: 10.61 MB / 1.323 GB, free: 154.2 MB / 0.6702 GB Notification: Performance of collectInitialBindings (initialization): time 0.003049/3.58, allocations: 1.836 MB / 1.325 GB, free: 152.4 MB / 0.6702 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0117/3.592, allocations: 3.546 MB / 1.329 GB, free: 148.9 MB / 0.6702 GB Notification: Performance of setup shared object (initialization): time 4.503e-05/3.592, allocations: 305.1 kB / 1.329 GB, free: 148.6 MB / 0.6702 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01802/3.61, allocations: 15.73 MB / 1.344 GB, free: 132.8 MB / 0.6702 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02256/3.632, allocations: 25.79 MB / 1.369 GB, free: 102.1 MB / 0.6702 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04065/3.673, allocations: 43.56 MB / 1.412 GB, free: 53.5 MB / 0.6702 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002647/3.673, allocations: 107.3 kB / 1.412 GB, free: 53.4 MB / 0.6702 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.05782/3.731, allocations: 41.29 MB / 1.452 GB, free: 12.09 MB / 0.6702 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005768/3.732, allocations: 156 kB / 1.453 GB, free: 11.93 MB / 0.6702 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007137/3.733, allocations: 356 kB / 1.453 GB, free: 11.59 MB / 0.6702 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002584/3.735, allocations: 0.9232 MB / 1.454 GB, free: 10.66 MB / 0.6702 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0218/3.757, allocations: 4.975 MB / 1.459 GB, free: 5.672 MB / 0.6702 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2627/4.02, allocations: 6.887 MB / 1.465 GB, free: 200 MB / 0.6702 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01747/4.037, allocations: 2.067 MB / 1.467 GB, free: 200 MB / 0.6702 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003776/4.041, allocations: 0.9613 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.01328/4.054, allocations: 7.441 MB / 1.476 GB, free: 197.7 MB / 0.6702 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002552/4.057, allocations: 0.8663 MB / 1.476 GB, free: 197.7 MB / 0.6702 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0396/4.096, allocations: 29.95 MB / 1.506 GB, free: 183.8 MB / 0.6702 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000123/4.097, allocations: 91.94 kB / 1.506 GB, free: 183.8 MB / 0.6702 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/4.097, allocations: 4.031 kB / 1.506 GB, free: 183.8 MB / 0.6702 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-05/4.097, allocations: 21.75 kB / 1.506 GB, free: 183.8 MB / 0.6702 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08364/4.18, allocations: 71.15 MB / 1.575 GB, free: 126.1 MB / 0.6702 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-05/4.18, allocations: 4 kB / 1.575 GB, free: 126.1 MB / 0.6702 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01184/4.192, allocations: 1.967 MB / 1.577 GB, free: 124.1 MB / 0.6702 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/4.194, allocations: 461.3 kB / 1.578 GB, free: 123.7 MB / 0.6702 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001651/4.195, allocations: 68 kB / 1.578 GB, free: 123.6 MB / 0.6702 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004558/4.2, allocations: 5.411 MB / 1.583 GB, free: 118 MB / 0.6702 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/4.2, allocations: 4 kB / 1.583 GB, free: 118 MB / 0.6702 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05503/4.255, allocations: 50.22 MB / 1.632 GB, free: 68.27 MB / 0.6702 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001926/4.257, allocations: 0.8327 MB / 1.633 GB, free: 67.91 MB / 0.6702 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003499/4.26, allocations: 68 kB / 1.633 GB, free: 67.84 MB / 0.6702 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01135/4.272, allocations: 1.531 MB / 1.634 GB, free: 66.32 MB / 0.6702 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002575/4.274, allocations: 241 kB / 1.635 GB, free: 66.09 MB / 0.6702 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001596/4.276, allocations: 116 kB / 1.635 GB, free: 65.98 MB / 0.6702 GB Notification: Performance of sorting global known variables: time 0.01013/4.286, allocations: 6.046 MB / 1.641 GB, free: 59.98 MB / 0.6702 GB Notification: Performance of sort global known variables: time 3.91e-07/4.286, allocations: 0 / 1.641 GB, free: 59.98 MB / 0.6702 GB Notification: Performance of remove unused functions: time 0.01584/4.302, allocations: 4.102 MB / 1.645 GB, free: 55.89 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.05842/4.361, allocations: 51.07 MB / 1.695 GB, free: 5.066 MB / 0.6702 GB Notification: Performance of simCode: created initialization part: time 0.3219/4.682, allocations: 34.64 MB / 1.728 GB, free: 248.7 MB / 0.7014 GB Notification: Performance of simCode: created event and clocks part: time 1.311e-05/4.683, allocations: 1.5 kB / 1.728 GB, free: 248.7 MB / 0.7014 GB Notification: Performance of simCode: created simulation system equations: time 0.01668/4.699, allocations: 14.83 MB / 1.743 GB, free: 241.8 MB / 0.7014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01063/4.71, allocations: 1.484 MB / 1.744 GB, free: 241.2 MB / 0.7014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2693/4.979, allocations: 213.4 MB / 1.953 GB, free: 29.09 MB / 0.7014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01995/4.999, allocations: 10.43 MB / 1.963 GB, free: 18.62 MB / 0.7014 GB Notification: Performance of simCode: alias equations: time 0.02126/5.021, allocations: 7.093 MB / 1.97 GB, free: 11.51 MB / 0.7014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0193/5.04, allocations: 7.298 MB / 1.977 GB, free: 4.211 MB / 0.7014 GB Notification: Performance of SimCode: time 1.433e-06/5.04, allocations: 4 kB / 1.977 GB, free: 4.207 MB / 0.7014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6089/5.649, allocations: 244.7 MB / 2.216 GB, free: 31.09 MB / 0.7014 GB Notification: Performance of buildModelFMU: Generate platform static: time 106.4/112.1, allocations: 0 / 2.216 GB, free: 31.09 MB / 0.7014 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/RelativeSensor/RelativeSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches