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.001529/0.001529, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 202 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2232/0.2232, allocations: 46.11 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002245/0.002245, allocations: 75.88 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3093, allocations: 62.46 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.02805/0.3374, allocations: 24.97 MB / 0.555 GB, free: 8.652 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01964/0.3571, allocations: 8.365 MB / 0.5632 GB, free: 272 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006532/0.3637, allocations: 215.5 kB / 0.5634 GB, free: 56 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03926/0.403, allocations: 21.91 MB / 0.5848 GB, free: 10.09 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01132/0.4144, allocations: 3.754 MB / 0.5884 GB, free: 6.32 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01083/0.4253, allocations: 4.802 MB / 0.5931 GB, free: 1.508 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01848/0.4438, allocations: 10.9 MB / 0.6038 GB, free: 6.582 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04528/0.4891, allocations: 32.49 MB / 0.6355 GB, free: 5.887 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01284/0.502, allocations: 7.298 MB / 0.6426 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01532/0.5174, allocations: 9.068 MB / 0.6515 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.006628/0.524, allocations: 2.242 MB / 0.6537 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009235/0.5333, allocations: 3.576 MB / 0.6572 GB, free: 15.66 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 0.01296/0.5463, allocations: 8.608 MB / 0.6656 GB, free: 7.039 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 0.01937/0.5657, allocations: 9.908 MB / 0.6752 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04369/0.6094, allocations: 32.92 MB / 0.7074 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.6095, allocations: 0 / 0.7074 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.645e-06/0.6095, allocations: 0 / 0.7074 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.001273/0.6108, 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.5308/1.142, allocations: 18.92 MB / 0.7259 GB, free: 145.9 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/1.142, allocations: 8.906 kB / 0.7259 GB, free: 145.9 MB / 0.5607 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009001/1.151, allocations: 2.809 MB / 0.7286 GB, free: 144.1 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1789/1.33, allocations: 13.71 MB / 0.742 GB, free: 134.5 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01878/1.348, allocations: 9.512 MB / 0.7513 GB, free: 125.8 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008137/1.349, allocations: 1.271 MB / 0.7525 GB, free: 124.6 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005734/1.355, allocations: 1.683 MB / 0.7542 GB, free: 123 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07821/1.433, allocations: 38.38 MB / 0.7917 GB, free: 83.53 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000543/1.434, allocations: 95.28 kB / 0.7918 GB, free: 83.43 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004952/1.439, allocations: 0.731 MB / 0.7925 GB, free: 82.75 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00432/1.443, allocations: 3.552 MB / 0.7959 GB, free: 79.22 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.057/1.5, allocations: 31.14 MB / 0.8264 GB, free: 48.07 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1475/1.648, allocations: 111.6 MB / 0.9353 GB, free: 15.54 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06312/1.711, allocations: 21.51 MB / 0.9563 GB, free: 9.562 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009236/1.72, allocations: 6.7 MB / 0.9628 GB, free: 2.848 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5268/2.247, allocations: 26.44 MB / 0.9887 GB, free: 214.8 MB / 0.6546 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.659e-05/2.247, allocations: 76.83 kB / 0.9887 GB, free: 214.7 MB / 0.6546 GB Notification: Performance of pre-optimization done (n=336): time 7.254e-06/2.247, allocations: 0.5625 kB / 0.9887 GB, free: 214.7 MB / 0.6546 GB Notification: Performance of matching and sorting (n=450): time 1.306/3.553, allocations: 321.9 MB / 1.303 GB, free: 174.1 MB / 0.6702 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.237e-05/3.553, allocations: 282.2 kB / 1.303 GB, free: 173.7 MB / 0.6702 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01346/3.566, allocations: 9.769 MB / 1.313 GB, free: 164.2 MB / 0.6702 GB Notification: Performance of collectPreVariables (initialization): time 0.001709/3.568, allocations: 93.7 kB / 1.313 GB, free: 164.1 MB / 0.6702 GB Notification: Performance of collectInitialEqns (initialization): time 0.004479/3.573, allocations: 10.61 MB / 1.323 GB, free: 154.3 MB / 0.6702 GB Notification: Performance of collectInitialBindings (initialization): time 0.002685/3.575, allocations: 1.835 MB / 1.325 GB, free: 152.4 MB / 0.6702 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008893/3.584, allocations: 3.554 MB / 1.329 GB, free: 148.9 MB / 0.6702 GB Notification: Performance of setup shared object (initialization): time 5.386e-05/3.584, allocations: 305.1 kB / 1.329 GB, free: 148.6 MB / 0.6702 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01839/3.603, allocations: 15.72 MB / 1.344 GB, free: 132.8 MB / 0.6702 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0237/3.626, allocations: 25.79 MB / 1.369 GB, free: 102.1 MB / 0.6702 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04104/3.668, allocations: 43.56 MB / 1.412 GB, free: 53.5 MB / 0.6702 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002835/3.668, allocations: 100 kB / 1.412 GB, free: 53.41 MB / 0.6702 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.05661/3.724, allocations: 41.29 MB / 1.452 GB, free: 12.09 MB / 0.6702 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002935/3.725, allocations: 158.5 kB / 1.453 GB, free: 11.94 MB / 0.6702 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000459/3.725, allocations: 356 kB / 1.453 GB, free: 11.59 MB / 0.6702 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002273/3.728, allocations: 0.9231 MB / 1.454 GB, free: 10.66 MB / 0.6702 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0217/3.749, allocations: 4.975 MB / 1.459 GB, free: 5.68 MB / 0.6702 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2952/4.045, allocations: 6.88 MB / 1.465 GB, free: 200.1 MB / 0.6702 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01777/4.062, allocations: 2.069 MB / 1.467 GB, free: 200.1 MB / 0.6702 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003864/4.066, allocations: 0.9667 MB / 1.468 GB, free: 200.1 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.01457/4.081, allocations: 7.444 MB / 1.476 GB, free: 197.7 MB / 0.6702 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002785/4.084, allocations: 0.8655 MB / 1.476 GB, free: 197.7 MB / 0.6702 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03943/4.123, allocations: 29.95 MB / 1.506 GB, free: 183.8 MB / 0.6702 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001226/4.123, allocations: 89.12 kB / 1.506 GB, free: 183.8 MB / 0.6702 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-05/4.123, allocations: 4.375 kB / 1.506 GB, free: 183.8 MB / 0.6702 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.839e-05/4.123, allocations: 22.78 kB / 1.506 GB, free: 183.8 MB / 0.6702 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08234/4.206, allocations: 71.15 MB / 1.575 GB, free: 126.1 MB / 0.6702 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.098e-05/4.206, allocations: 7.875 kB / 1.575 GB, free: 126.1 MB / 0.6702 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01183/4.218, allocations: 1.964 MB / 1.577 GB, free: 124.2 MB / 0.6702 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001345/4.219, allocations: 465.5 kB / 1.578 GB, free: 123.7 MB / 0.6702 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001761/4.221, allocations: 68 kB / 1.578 GB, free: 123.7 MB / 0.6702 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004603/4.225, allocations: 5.403 MB / 1.583 GB, free: 118.1 MB / 0.6702 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/4.225, allocations: 6.906 kB / 1.583 GB, free: 118.1 MB / 0.6702 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05418/4.28, allocations: 50.22 MB / 1.632 GB, free: 68.3 MB / 0.6702 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/4.281, allocations: 0.8348 MB / 1.633 GB, free: 67.95 MB / 0.6702 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003101/4.285, allocations: 68 kB / 1.633 GB, free: 67.88 MB / 0.6702 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01075/4.295, allocations: 1.535 MB / 1.634 GB, free: 66.36 MB / 0.6702 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002376/4.298, allocations: 226.7 kB / 1.635 GB, free: 66.13 MB / 0.6702 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001112/4.299, allocations: 116 kB / 1.635 GB, free: 66.02 MB / 0.6702 GB Notification: Performance of sorting global known variables: time 0.008853/4.308, allocations: 6.053 MB / 1.641 GB, free: 60.02 MB / 0.6702 GB Notification: Performance of sort global known variables: time 5.61e-07/4.308, allocations: 384 / 1.641 GB, free: 60.02 MB / 0.6702 GB Notification: Performance of remove unused functions: time 0.01566/4.323, allocations: 4.103 MB / 1.645 GB, free: 55.93 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.05589/4.379, allocations: 51.07 MB / 1.695 GB, free: 5.098 MB / 0.6702 GB Notification: Performance of simCode: created initialization part: time 0.2985/4.678, allocations: 34.64 MB / 1.728 GB, free: 248.8 MB / 0.7014 GB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/4.678, allocations: 1.594 kB / 1.728 GB, free: 248.8 MB / 0.7014 GB Notification: Performance of simCode: created simulation system equations: time 0.01633/4.694, allocations: 14.84 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.009519/4.704, allocations: 1.496 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.2407/4.944, allocations: 213.4 MB / 1.953 GB, free: 29.36 MB / 0.7014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01816/4.963, allocations: 10.42 MB / 1.963 GB, free: 18.89 MB / 0.7014 GB Notification: Performance of simCode: alias equations: time 0.02031/4.983, allocations: 7.093 MB / 1.97 GB, free: 11.79 MB / 0.7014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01907/5.002, allocations: 7.298 MB / 1.977 GB, free: 4.484 MB / 0.7014 GB Notification: Performance of SimCode: time 2.735e-06/5.002, allocations: 0 / 1.977 GB, free: 4.484 MB / 0.7014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5259/5.528, allocations: 244.8 MB / 2.216 GB, free: 31.66 MB / 0.7014 GB Notification: Performance of buildModelFMU: Generate platform static: time 112.5/118, allocations: 3.281 kB / 2.216 GB, free: 31.66 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/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