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.001134/0.001134, allocations: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 197.2 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.388/1.388, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2292/0.2292, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 71.88 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3155, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.02807/0.3436, allocations: 24.97 MB / 0.5549 GB, free: 8.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01866/0.3623, allocations: 8.364 MB / 0.5631 GB, free: 356 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00577/0.3681, allocations: 215.5 kB / 0.5633 GB, free: 140 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03811/0.4063, allocations: 21.91 MB / 0.5847 GB, free: 10.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01101/0.4174, allocations: 3.817 MB / 0.5884 GB, free: 6.328 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01096/0.4284, allocations: 4.81 MB / 0.5931 GB, free: 1.508 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01777/0.4462, allocations: 10.9 MB / 0.6037 GB, free: 6.586 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04812/0.4944, allocations: 32.48 MB / 0.6355 GB, free: 5.895 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01083/0.5052, allocations: 7.317 MB / 0.6426 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01388/0.5192, allocations: 9.079 MB / 0.6515 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.006265/0.5255, allocations: 2.246 MB / 0.6537 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008275/0.5338, allocations: 3.572 MB / 0.6571 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.01061/0.5444, allocations: 8.631 MB / 0.6656 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.01723/0.5617, allocations: 9.901 MB / 0.6752 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03867/0.6004, allocations: 32.93 MB / 0.7074 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.6005, allocations: 4 kB / 0.7074 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.216e-06/0.6005, allocations: 0 / 0.7074 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.001141/0.6016, allocations: 0 / 0.7074 GB, free: 12.01 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.5449/1.147, allocations: 18.93 MB / 0.7259 GB, free: 146 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/1.147, allocations: 9.531 kB / 0.7259 GB, free: 146 MB / 0.5607 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009899/1.157, allocations: 2.803 MB / 0.7286 GB, free: 144.2 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1758/1.332, allocations: 13.71 MB / 0.742 GB, free: 134.6 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0219/1.354, allocations: 9.513 MB / 0.7513 GB, free: 125.9 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009239/1.355, allocations: 1.271 MB / 0.7526 GB, free: 124.6 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006182/1.361, allocations: 1.679 MB / 0.7542 GB, free: 123 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08142/1.443, allocations: 38.37 MB / 0.7917 GB, free: 83.56 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009184/1.444, allocations: 95.28 kB / 0.7918 GB, free: 83.47 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005971/1.45, allocations: 0.7295 MB / 0.7925 GB, free: 82.79 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00447/1.454, allocations: 3.544 MB / 0.7959 GB, free: 79.27 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06203/1.516, allocations: 31.15 MB / 0.8264 GB, free: 48.11 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1574/1.674, allocations: 111.6 MB / 0.9353 GB, free: 15.56 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06229/1.736, allocations: 21.5 MB / 0.9563 GB, free: 9.586 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008775/1.745, allocations: 6.707 MB / 0.9628 GB, free: 2.867 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5415/2.287, allocations: 26.44 MB / 0.9887 GB, free: 214.9 MB / 0.6545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.498e-05/2.287, allocations: 70.77 kB / 0.9887 GB, free: 214.9 MB / 0.6545 GB Notification: Performance of pre-optimization done (n=336): time 8.365e-06/2.287, allocations: 0 / 0.9887 GB, free: 214.9 MB / 0.6545 GB Notification: Performance of matching and sorting (n=450): time 1.315/3.601, allocations: 321.9 MB / 1.303 GB, free: 174.1 MB / 0.6702 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.507e-05/3.601, allocations: 278.9 kB / 1.303 GB, free: 173.8 MB / 0.6702 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01649/3.618, allocations: 9.762 MB / 1.313 GB, free: 164.3 MB / 0.6702 GB Notification: Performance of collectPreVariables (initialization): time 0.001946/3.62, allocations: 97.7 kB / 1.313 GB, free: 164.2 MB / 0.6702 GB Notification: Performance of collectInitialEqns (initialization): time 0.00547/3.625, allocations: 10.62 MB / 1.323 GB, free: 154.3 MB / 0.6702 GB Notification: Performance of collectInitialBindings (initialization): time 0.003069/3.629, allocations: 1.836 MB / 1.325 GB, free: 152.5 MB / 0.6702 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01094/3.64, allocations: 3.542 MB / 1.329 GB, free: 148.9 MB / 0.6702 GB Notification: Performance of setup shared object (initialization): time 4.793e-05/3.64, allocations: 313 kB / 1.329 GB, free: 148.6 MB / 0.6702 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0188/3.658, allocations: 15.72 MB / 1.344 GB, free: 132.9 MB / 0.6702 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02501/3.683, allocations: 25.79 MB / 1.369 GB, free: 102.1 MB / 0.6702 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04264/3.726, allocations: 43.56 MB / 1.412 GB, free: 53.55 MB / 0.6702 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003692/3.727, allocations: 104 kB / 1.412 GB, free: 53.45 MB / 0.6702 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.062/3.789, allocations: 41.28 MB / 1.452 GB, free: 12.15 MB / 0.6702 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005207/3.789, allocations: 160 kB / 1.453 GB, free: 11.99 MB / 0.6702 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007011/3.79, allocations: 356 kB / 1.453 GB, free: 11.64 MB / 0.6702 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002632/3.793, allocations: 0.9346 MB / 1.454 GB, free: 10.71 MB / 0.6702 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02176/3.814, allocations: 4.971 MB / 1.459 GB, free: 5.727 MB / 0.6702 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3286/4.143, allocations: 6.886 MB / 1.465 GB, free: 200.2 MB / 0.6702 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01946/4.162, allocations: 2.064 MB / 1.467 GB, free: 200.2 MB / 0.6702 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004542/4.167, allocations: 0.9664 MB / 1.468 GB, free: 200.2 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.01813/4.185, allocations: 7.439 MB / 1.476 GB, free: 197.8 MB / 0.6702 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00324/4.188, allocations: 0.869 MB / 1.476 GB, free: 197.8 MB / 0.6702 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04441/4.233, allocations: 29.95 MB / 1.506 GB, free: 183.9 MB / 0.6702 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001307/4.233, allocations: 91.28 kB / 1.506 GB, free: 183.9 MB / 0.6702 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.08e-05/4.233, allocations: 7.594 kB / 1.506 GB, free: 183.9 MB / 0.6702 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001135/4.233, allocations: 23.53 kB / 1.506 GB, free: 183.9 MB / 0.6702 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09953/4.333, allocations: 71.15 MB / 1.575 GB, free: 126.1 MB / 0.6702 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.054e-05/4.333, allocations: 0 / 1.575 GB, free: 126.1 MB / 0.6702 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01261/4.346, allocations: 1.976 MB / 1.577 GB, free: 124.2 MB / 0.6702 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001459/4.347, allocations: 462.9 kB / 1.578 GB, free: 123.7 MB / 0.6702 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001898/4.349, allocations: 75.98 kB / 1.578 GB, free: 123.6 MB / 0.6702 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005275/4.354, allocations: 5.399 MB / 1.583 GB, free: 118.1 MB / 0.6702 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/4.354, allocations: 0 / 1.583 GB, free: 118.1 MB / 0.6702 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05667/4.411, allocations: 50.22 MB / 1.632 GB, free: 68.3 MB / 0.6702 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002386/4.413, allocations: 0.838 MB / 1.633 GB, free: 67.94 MB / 0.6702 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004246/4.418, allocations: 68 kB / 1.633 GB, free: 67.87 MB / 0.6702 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01215/4.43, allocations: 1.532 MB / 1.634 GB, free: 66.34 MB / 0.6702 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002721/4.433, allocations: 237.4 kB / 1.635 GB, free: 66.12 MB / 0.6702 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001937/4.435, allocations: 116 kB / 1.635 GB, free: 66 MB / 0.6702 GB Notification: Performance of sorting global known variables: time 0.01169/4.446, allocations: 6.049 MB / 1.641 GB, free: 60 MB / 0.6702 GB Notification: Performance of sort global known variables: time 5.41e-07/4.446, allocations: 0 / 1.641 GB, free: 60 MB / 0.6702 GB Notification: Performance of remove unused functions: time 0.01885/4.465, allocations: 4.097 MB / 1.645 GB, free: 55.92 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.06541/4.531, allocations: 51.07 MB / 1.695 GB, free: 5.09 MB / 0.6702 GB Notification: Performance of simCode: created initialization part: time 0.3562/4.887, allocations: 34.64 MB / 1.728 GB, free: 248.5 MB / 0.7014 GB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/4.887, allocations: 4.875 kB / 1.728 GB, free: 248.5 MB / 0.7014 GB Notification: Performance of simCode: created simulation system equations: time 0.01729/4.904, allocations: 14.83 MB / 1.743 GB, free: 241.6 MB / 0.7014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01211/4.916, allocations: 1.492 MB / 1.744 GB, free: 241 MB / 0.7014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2854/5.202, allocations: 213.4 MB / 1.953 GB, free: 29 MB / 0.7014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01913/5.221, allocations: 10.43 MB / 1.963 GB, free: 18.52 MB / 0.7014 GB Notification: Performance of simCode: alias equations: time 0.02163/5.243, allocations: 7.097 MB / 1.97 GB, free: 11.41 MB / 0.7014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01793/5.261, allocations: 7.302 MB / 1.977 GB, free: 4.109 MB / 0.7014 GB Notification: Performance of SimCode: time 1.133e-06/5.261, allocations: 0 / 1.977 GB, free: 4.109 MB / 0.7014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6057/5.867, allocations: 244.7 MB / 2.216 GB, free: 31.18 MB / 0.7014 GB Notification: Performance of buildModelFMU: Generate platform static: time 105.7/111.5, allocations: 0 / 2.216 GB, free: 31.18 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