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.001155/0.001155, allocations: 104.4 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.001305/0.001305, allocations: 216.5 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.318/1.318, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2083/0.2083, allocations: 46.11 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002133/0.002133, allocations: 77.5 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.127, allocations: 62.44 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.02522/0.1522, allocations: 24.98 MB / 0.4933 GB, free: 12.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01653/0.1688, allocations: 8.353 MB / 0.5014 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006124/0.175, allocations: 215.5 kB / 0.5016 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2458/0.4209, allocations: 21.9 MB / 0.523 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01084/0.4318, allocations: 3.752 MB / 0.5267 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009093/0.4409, allocations: 4.803 MB / 0.5314 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0171/0.458, allocations: 10.9 MB / 0.542 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04462/0.5027, allocations: 32.53 MB / 0.5738 GB, free: 4.148 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01098/0.5137, allocations: 7.288 MB / 0.5809 GB, free: 13.19 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01339/0.5271, allocations: 9.076 MB / 0.5898 GB, free: 4.598 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006765/0.5339, allocations: 2.242 MB / 0.592 GB, free: 2.355 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009911/0.5438, allocations: 3.57 MB / 0.5954 GB, free: 14.86 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01244/0.5563, allocations: 8.608 MB / 0.6038 GB, free: 6.242 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01777/0.5741, allocations: 9.908 MB / 0.6135 GB, free: 12.3 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03264/0.6068, allocations: 32.35 MB / 0.6451 GB, free: 12.42 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.6068, allocations: 0 / 0.6451 GB, free: 12.42 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.6068, allocations: 0 / 0.6451 GB, free: 12.42 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0009587/0.6078, 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.05443/0.6622, allocations: 18.51 MB / 0.6632 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.6623, allocations: 8.031 kB / 0.6632 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009933/0.6722, allocations: 2.8 MB / 0.6659 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1697/0.8419, allocations: 13.63 MB / 0.6792 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02111/0.8631, allocations: 9.406 MB / 0.6884 GB, free: 88 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001232/0.8643, allocations: 1.269 MB / 0.6897 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006186/0.8705, allocations: 1.688 MB / 0.6913 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4098/1.28, allocations: 38.36 MB / 0.7288 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004359/1.281, allocations: 100.5 kB / 0.7289 GB, free: 143 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002434/1.283, allocations: 0.7352 MB / 0.7296 GB, free: 142.5 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003788/1.287, allocations: 3.543 MB / 0.7331 GB, free: 141.3 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05487/1.342, allocations: 31.15 MB / 0.7635 GB, free: 120 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1/1.442, allocations: 112.1 MB / 0.8729 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05631/1.498, allocations: 21.5 MB / 0.8939 GB, free: 1.113 MB / 0.5451 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008138/1.506, allocations: 6.699 MB / 0.9005 GB, free: 10.4 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4038/1.91, allocations: 26.41 MB / 0.9263 GB, free: 187.5 MB / 0.5764 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.025e-05/1.91, allocations: 72.8 kB / 0.9263 GB, free: 187.5 MB / 0.5764 GB Notification: Performance of pre-optimization done (n=336): time 7.053e-06/1.91, allocations: 0 / 0.9263 GB, free: 187.5 MB / 0.5764 GB Notification: Performance of matching and sorting (n=450): time 1.21/3.12, allocations: 321.2 MB / 1.24 GB, free: 123.7 MB / 0.5764 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.765e-05/3.12, allocations: 278.4 kB / 1.24 GB, free: 123.4 MB / 0.5764 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01116/3.131, allocations: 9.737 MB / 1.25 GB, free: 113.7 MB / 0.5764 GB Notification: Performance of collectPreVariables (initialization): time 0.001725/3.133, allocations: 97.31 kB / 1.25 GB, free: 113.6 MB / 0.5764 GB Notification: Performance of collectInitialEqns (initialization): time 0.00387/3.137, allocations: 10.19 MB / 1.26 GB, free: 103.4 MB / 0.5764 GB Notification: Performance of collectInitialBindings (initialization): time 0.002885/3.14, allocations: 1.761 MB / 1.262 GB, free: 101.7 MB / 0.5764 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008275/3.148, allocations: 3.52 MB / 1.265 GB, free: 98.16 MB / 0.5764 GB Notification: Performance of setup shared object (initialization): time 4.639e-05/3.148, allocations: 308.9 kB / 1.265 GB, free: 97.86 MB / 0.5764 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01712/3.165, allocations: 15.72 MB / 1.281 GB, free: 82.12 MB / 0.5764 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02241/3.188, allocations: 25.79 MB / 1.306 GB, free: 51.36 MB / 0.5764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04074/3.228, allocations: 43.55 MB / 1.348 GB, free: 2.789 MB / 0.5764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002256/3.229, allocations: 104 kB / 1.348 GB, free: 2.688 MB / 0.5764 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.2707/3.499, allocations: 41.24 MB / 1.389 GB, free: 162.5 MB / 0.592 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002094/3.5, allocations: 159.8 kB / 1.389 GB, free: 162.5 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000432/3.5, allocations: 353 kB / 1.389 GB, free: 162.5 MB / 0.592 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001722/3.502, allocations: 0.9356 MB / 1.39 GB, free: 162.4 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01947/3.521, allocations: 4.967 MB / 1.395 GB, free: 161.9 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006263/3.528, allocations: 6.894 MB / 1.402 GB, free: 157.5 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0168/3.544, allocations: 2.063 MB / 1.404 GB, free: 157.2 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003087/3.548, allocations: 0.9655 MB / 1.405 GB, free: 157.1 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.01088/3.558, allocations: 7.44 MB / 1.412 GB, free: 153.6 MB / 0.592 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001959/3.56, allocations: 0.8185 MB / 1.413 GB, free: 153.6 MB / 0.592 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03509/3.596, allocations: 29.95 MB / 1.442 GB, free: 131.5 MB / 0.592 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001035/3.596, allocations: 95.59 kB / 1.442 GB, free: 131.4 MB / 0.592 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/3.596, allocations: 7.016 kB / 1.442 GB, free: 131.4 MB / 0.592 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.762e-05/3.596, allocations: 21.89 kB / 1.442 GB, free: 131.4 MB / 0.592 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07704/3.673, allocations: 71.33 MB / 1.512 GB, free: 58.69 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.337e-05/3.673, allocations: 3.984 kB / 1.512 GB, free: 58.69 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01187/3.685, allocations: 1.973 MB / 1.514 GB, free: 56.71 MB / 0.592 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001347/3.686, allocations: 464.2 kB / 1.514 GB, free: 56.25 MB / 0.592 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001495/3.688, allocations: 72 kB / 1.514 GB, free: 56.18 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004373/3.692, allocations: 5.397 MB / 1.52 GB, free: 50.55 MB / 0.592 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/3.692, allocations: 0 / 1.52 GB, free: 50.55 MB / 0.592 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05593/3.748, allocations: 50.18 MB / 1.569 GB, free: 0.7773 MB / 0.592 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002294/3.75, allocations: 0.7875 MB / 1.569 GB, free: 188 kB / 0.592 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00351/3.754, allocations: 68 kB / 1.569 GB, free: 120 kB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01137/3.765, allocations: 1.528 MB / 1.571 GB, free: 14.59 MB / 0.6077 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002471/3.768, allocations: 230.7 kB / 1.571 GB, free: 14.36 MB / 0.6077 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001382/3.769, allocations: 123.4 kB / 1.571 GB, free: 14.24 MB / 0.6077 GB Notification: Performance of sorting global known variables: time 0.2413/4.01, allocations: 6.049 MB / 1.577 GB, free: 190 MB / 0.6077 GB Notification: Performance of sort global known variables: time 6.01e-07/4.01, allocations: 0 / 1.577 GB, free: 190 MB / 0.6077 GB Notification: Performance of remove unused functions: time 0.01624/4.027, allocations: 4.092 MB / 1.581 GB, free: 190 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.05847/4.085, allocations: 51.02 MB / 1.631 GB, free: 167.6 MB / 0.6077 GB Notification: Performance of simCode: created initialization part: time 0.05926/4.144, allocations: 46.83 MB / 1.677 GB, free: 130 MB / 0.6077 GB Notification: Performance of simCode: created event and clocks part: time 1.677e-05/4.145, allocations: 4.438 kB / 1.677 GB, free: 130 MB / 0.6077 GB Notification: Performance of simCode: created simulation system equations: time 0.0156/4.16, allocations: 14.83 MB / 1.691 GB, free: 116.6 MB / 0.6077 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007693/4.168, allocations: 1.492 MB / 1.693 GB, free: 115.5 MB / 0.6077 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4727/4.641, allocations: 247.5 MB / 1.934 GB, free: 86.23 MB / 0.6077 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01661/4.657, allocations: 10.43 MB / 1.944 GB, free: 75.79 MB / 0.6077 GB Notification: Performance of simCode: alias equations: time 0.02177/4.679, allocations: 7.092 MB / 1.951 GB, free: 68.7 MB / 0.6077 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01412/4.693, allocations: 7.302 MB / 1.959 GB, free: 61.39 MB / 0.6077 GB Notification: Performance of SimCode: time 1.052e-06/4.693, allocations: 0 / 1.959 GB, free: 61.39 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4808/5.174, allocations: 241.4 MB / 2.194 GB, free: 83.28 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.34/19.52, allocations: 3.609 kB / 2.194 GB, free: 83.28 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 & /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