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.001232/0.001232, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2507/0.2507, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002708/0.002708, allocations: 78.53 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1378, allocations: 62.45 MB / 480.1 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.02668/0.1645, allocations: 24.97 MB / 0.4933 GB, free: 12.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02259/0.1872, allocations: 8.361 MB / 0.5014 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006236/0.1935, allocations: 215.5 kB / 0.5016 GB, free: 3.484 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2885/0.4821, allocations: 21.9 MB / 0.523 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01055/0.4927, allocations: 3.751 MB / 0.5267 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009015/0.5017, allocations: 4.814 MB / 0.5314 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01601/0.5177, allocations: 10.9 MB / 0.542 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04908/0.5669, allocations: 32.52 MB / 0.5738 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01504/0.582, allocations: 7.284 MB / 0.5809 GB, free: 13.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01548/0.5975, allocations: 9.082 MB / 0.5898 GB, free: 4.586 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006605/0.6041, allocations: 2.242 MB / 0.592 GB, free: 2.344 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01056/0.6147, allocations: 3.566 MB / 0.5954 GB, free: 14.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01379/0.6286, allocations: 8.608 MB / 0.6038 GB, free: 6.234 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02308/0.6517, allocations: 9.911 MB / 0.6135 GB, free: 12.31 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04328/0.695, allocations: 32.36 MB / 0.6451 GB, free: 12.43 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.17e-05/0.6951, allocations: 0 / 0.6451 GB, free: 12.43 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.6951, allocations: 4 kB / 0.6451 GB, free: 12.42 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001505/0.6966, allocations: 0 / 0.6451 GB, free: 12.42 MB / 494.1 MB 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.06487/0.7615, allocations: 18.51 MB / 0.6632 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.905e-05/0.7616, allocations: 8.031 kB / 0.6632 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01154/0.7732, allocations: 2.805 MB / 0.6659 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1813/0.9545, allocations: 13.62 MB / 0.6792 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0213/0.9758, allocations: 9.409 MB / 0.6884 GB, free: 88 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001252/0.9771, allocations: 1.272 MB / 0.6897 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006599/0.9837, allocations: 1.678 MB / 0.6913 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.541/1.525, allocations: 38.37 MB / 0.7288 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004999/1.525, allocations: 97.55 kB / 0.7289 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004561/1.53, allocations: 0.7273 MB / 0.7296 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004494/1.534, allocations: 3.548 MB / 0.7331 GB, free: 141.3 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06607/1.6, allocations: 31.15 MB / 0.7635 GB, free: 120 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1393/1.74, allocations: 112.1 MB / 0.873 GB, free: 7.102 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05926/1.799, allocations: 21.5 MB / 0.8939 GB, free: 1.133 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008298/1.807, allocations: 6.694 MB / 0.9005 GB, free: 10.42 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.461/2.268, allocations: 26.41 MB / 0.9263 GB, free: 187.5 MB / 0.5764 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.438e-05/2.269, allocations: 67.2 kB / 0.9263 GB, free: 187.4 MB / 0.5764 GB Notification: Performance of pre-optimization done (n=336): time 7.123e-06/2.269, allocations: 0 / 0.9263 GB, free: 187.4 MB / 0.5764 GB Notification: Performance of matching and sorting (n=450): time 1.297/3.566, allocations: 321.2 MB / 1.24 GB, free: 123.8 MB / 0.5764 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/3.566, allocations: 277.8 kB / 1.24 GB, free: 123.5 MB / 0.5764 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01709/3.583, allocations: 9.742 MB / 1.25 GB, free: 113.8 MB / 0.5764 GB Notification: Performance of collectPreVariables (initialization): time 0.001768/3.585, allocations: 94.48 kB / 1.25 GB, free: 113.7 MB / 0.5764 GB Notification: Performance of collectInitialEqns (initialization): time 0.004551/3.589, allocations: 10.2 MB / 1.26 GB, free: 103.5 MB / 0.5764 GB Notification: Performance of collectInitialBindings (initialization): time 0.003049/3.592, allocations: 1.757 MB / 1.262 GB, free: 101.7 MB / 0.5764 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007334/3.6, allocations: 3.519 MB / 1.265 GB, free: 98.2 MB / 0.5764 GB Notification: Performance of setup shared object (initialization): time 4.166e-05/3.6, allocations: 304.9 kB / 1.265 GB, free: 97.9 MB / 0.5764 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01693/3.617, allocations: 15.73 MB / 1.281 GB, free: 82.16 MB / 0.5764 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02404/3.641, allocations: 25.78 MB / 1.306 GB, free: 51.41 MB / 0.5764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04188/3.683, allocations: 43.56 MB / 1.348 GB, free: 2.836 MB / 0.5764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000306/3.683, allocations: 100 kB / 1.348 GB, free: 2.738 MB / 0.5764 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.3059/3.989, allocations: 41.24 MB / 1.389 GB, free: 162.6 MB / 0.592 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002114/3.989, allocations: 158.2 kB / 1.389 GB, free: 162.6 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004652/3.99, allocations: 353.9 kB / 1.389 GB, free: 162.6 MB / 0.592 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001897/3.992, allocations: 0.9384 MB / 1.39 GB, free: 162.5 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02014/4.012, allocations: 4.967 MB / 1.395 GB, free: 162 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006604/4.018, allocations: 6.905 MB / 1.402 GB, free: 157.6 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01859/4.037, allocations: 2.053 MB / 1.404 GB, free: 157.3 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004319/4.041, allocations: 0.9666 MB / 1.405 GB, free: 157.2 MB / 0.592 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.01501/4.056, allocations: 7.438 MB / 1.412 GB, free: 153.7 MB / 0.592 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002826/4.059, allocations: 0.8218 MB / 1.413 GB, free: 153.7 MB / 0.592 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03671/4.096, allocations: 29.95 MB / 1.442 GB, free: 131.4 MB / 0.592 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001227/4.096, allocations: 91.55 kB / 1.442 GB, free: 131.3 MB / 0.592 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/4.096, allocations: 4 kB / 1.442 GB, free: 131.3 MB / 0.592 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.088e-05/4.096, allocations: 19.31 kB / 1.442 GB, free: 131.3 MB / 0.592 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08378/4.18, allocations: 71.33 MB / 1.512 GB, free: 58.77 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.603e-05/4.18, allocations: 8 kB / 1.512 GB, free: 58.77 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01187/4.192, allocations: 1.969 MB / 1.514 GB, free: 56.79 MB / 0.592 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/4.193, allocations: 457.3 kB / 1.514 GB, free: 56.34 MB / 0.592 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001397/4.195, allocations: 75.73 kB / 1.514 GB, free: 56.27 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004538/4.199, allocations: 5.399 MB / 1.52 GB, free: 50.64 MB / 0.592 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/4.199, allocations: 4 kB / 1.52 GB, free: 50.63 MB / 0.592 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05954/4.259, allocations: 50.17 MB / 1.569 GB, free: 0.8633 MB / 0.592 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002481/4.261, allocations: 0.7851 MB / 1.569 GB, free: 264 kB / 0.592 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003336/4.265, allocations: 71.83 kB / 1.569 GB, free: 196 kB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01627/4.281, allocations: 1.538 MB / 1.571 GB, free: 14.65 MB / 0.6077 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003869/4.285, allocations: 230.8 kB / 1.571 GB, free: 14.43 MB / 0.6077 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001431/4.286, allocations: 123.9 kB / 1.571 GB, free: 14.3 MB / 0.6077 GB Notification: Performance of sorting global known variables: time 0.2478/4.534, allocations: 6.047 MB / 1.577 GB, free: 189.9 MB / 0.6077 GB Notification: Performance of sort global known variables: time 6.51e-07/4.534, allocations: 1.062 kB / 1.577 GB, free: 189.9 MB / 0.6077 GB Notification: Performance of remove unused functions: time 0.01659/4.551, allocations: 4.099 MB / 1.581 GB, free: 189.9 MB / 0.6077 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.06589/4.617, allocations: 51.01 MB / 1.631 GB, free: 167.5 MB / 0.6077 GB Notification: Performance of simCode: created initialization part: time 0.06122/4.678, allocations: 46.83 MB / 1.677 GB, free: 129.9 MB / 0.6077 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/4.678, allocations: 448 / 1.677 GB, free: 129.9 MB / 0.6077 GB Notification: Performance of simCode: created simulation system equations: time 0.01772/4.696, allocations: 14.84 MB / 1.691 GB, free: 116.5 MB / 0.6077 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01262/4.708, allocations: 1.5 MB / 1.693 GB, free: 115.3 MB / 0.6077 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5003/5.209, allocations: 247.5 MB / 1.934 GB, free: 86.31 MB / 0.6077 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01597/5.225, allocations: 10.43 MB / 1.944 GB, free: 75.87 MB / 0.6077 GB Notification: Performance of simCode: alias equations: time 0.01969/5.245, allocations: 7.096 MB / 1.951 GB, free: 68.77 MB / 0.6077 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01539/5.26, allocations: 7.298 MB / 1.959 GB, free: 61.46 MB / 0.6077 GB Notification: Performance of SimCode: time 1.293e-06/5.26, allocations: 1.094 kB / 1.959 GB, free: 61.46 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5324/5.792, allocations: 241.3 MB / 2.194 GB, free: 83.32 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.13/20.93, allocations: 7.438 kB / 2.194 GB, free: 83.32 MB / 0.6233 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