Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.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.AbsoluteSensor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00153/0.00153, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002087/0.002087, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2308/0.2308, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002176/0.002176, allocations: 76.34 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1277, allocations: 62.45 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor): time 0.02569/0.1535, allocations: 22.81 MB / 0.4912 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01642/0.1699, allocations: 7.963 MB / 0.4989 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005428/0.1754, allocations: 195.6 kB / 0.4991 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.306/0.4814, allocations: 22.12 MB / 0.5207 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01035/0.4918, allocations: 3.491 MB / 0.5241 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01029/0.5022, allocations: 4.025 MB / 0.5281 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01957/0.5218, allocations: 9.654 MB / 0.5375 GB, free: 6.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05099/0.5729, allocations: 32.18 MB / 0.5689 GB, free: 9.234 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01438/0.5873, allocations: 6.929 MB / 0.5757 GB, free: 2.613 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01401/0.6013, allocations: 8.687 MB / 0.5842 GB, free: 10.42 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006704/0.6081, allocations: 2.215 MB / 0.5863 GB, free: 8.203 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01178/0.6199, allocations: 3.449 MB / 0.5897 GB, free: 4.816 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01568/0.6356, allocations: 8.292 MB / 0.5978 GB, free: 12.53 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02373/0.6594, allocations: 9.661 MB / 0.6072 GB, free: 2.836 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04378/0.7032, allocations: 32.25 MB / 0.6387 GB, free: 3.043 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/0.7033, allocations: 0 / 0.6387 GB, free: 3.043 MB / 478.1 MB Notification: Performance of FrontEnd: time 4.959e-06/0.7033, allocations: 0 / 0.6387 GB, free: 3.043 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001453/0.7047, allocations: 3.938 kB / 0.6387 GB, free: 3.039 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5549 * Number of variables: 5549 Notification: Performance of Generate backend data structure: time 0.0532/0.758, allocations: 16.87 MB / 0.6552 GB, free: 2.207 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.758, allocations: 8.031 kB / 0.6552 GB, free: 2.199 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009712/0.7677, allocations: 2.778 MB / 0.6579 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09494/0.8627, allocations: 8.278 MB / 0.666 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02051/0.8832, allocations: 8.057 MB / 0.6739 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001502/0.8848, allocations: 1.241 MB / 0.6751 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01051/0.8953, allocations: 1.64 MB / 0.6767 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5167/1.412, allocations: 35.92 MB / 0.7118 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001137/1.413, allocations: 128.7 kB / 0.7119 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006406/1.42, allocations: 0.7337 MB / 0.7126 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007604/1.427, allocations: 3.677 MB / 0.7162 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06765/1.495, allocations: 26.75 MB / 0.7423 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1377/1.633, allocations: 121.9 MB / 0.8614 GB, free: 16.33 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02256/1.655, allocations: 8.281 MB / 0.8695 GB, free: 7.891 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004158/1.66, allocations: 4.078 MB / 0.8734 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01153/1.671, allocations: 14.68 MB / 0.8878 GB, free: 2.789 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000109/1.671, allocations: 68.56 kB / 0.8878 GB, free: 2.715 MB / 0.545 GB Notification: Performance of pre-optimization done (n=277): time 8.747e-06/1.671, allocations: 0 / 0.8878 GB, free: 2.715 MB / 0.545 GB Notification: Performance of matching and sorting (n=338): time 0.6345/2.306, allocations: 55.57 MB / 0.9421 GB, free: 177.4 MB / 0.5764 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.917e-05/2.306, allocations: 216.2 kB / 0.9423 GB, free: 177.2 MB / 0.5764 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01848/2.324, allocations: 10.56 MB / 0.9526 GB, free: 173.1 MB / 0.5764 GB Notification: Performance of collectPreVariables (initialization): time 0.0007861/2.325, allocations: 74.14 kB / 0.9527 GB, free: 173.1 MB / 0.5764 GB Notification: Performance of collectInitialEqns (initialization): time 0.008016/2.333, allocations: 10.77 MB / 0.9632 GB, free: 164.9 MB / 0.5764 GB Notification: Performance of collectInitialBindings (initialization): time 0.002441/2.336, allocations: 1.447 MB / 0.9646 GB, free: 163.9 MB / 0.5764 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006283/2.342, allocations: 3.788 MB / 0.9683 GB, free: 162 MB / 0.5764 GB Notification: Performance of setup shared object (initialization): time 4.511e-05/2.342, allocations: 312.6 kB / 0.9686 GB, free: 161.7 MB / 0.5764 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008489/2.351, allocations: 6.478 MB / 0.975 GB, free: 159.3 MB / 0.5764 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01483/2.365, allocations: 18.67 MB / 0.9932 GB, free: 140.2 MB / 0.5764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02472/2.39, allocations: 27.16 MB / 1.02 GB, free: 113.7 MB / 0.5764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000516/2.391, allocations: 124 kB / 1.02 GB, free: 113.6 MB / 0.5764 GB Notification: Performance of matching and sorting (n=2332) (initialization): time 0.04089/2.432, allocations: 24.74 MB / 1.044 GB, free: 91.11 MB / 0.5764 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004003/2.432, allocations: 188 kB / 1.044 GB, free: 90.93 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005501/2.433, allocations: 437.5 kB / 1.045 GB, free: 90.5 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003107/2.436, allocations: 1.547 MB / 1.046 GB, free: 88.95 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01301/2.449, allocations: 4.3 MB / 1.05 GB, free: 84.64 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00818/2.457, allocations: 7.918 MB / 1.058 GB, free: 76.58 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0169/2.474, allocations: 1.044 MB / 1.059 GB, free: 75.54 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003373/2.477, allocations: 1.14 MB / 1.06 GB, free: 74.4 MB / 0.5764 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1988 * Number of states: 0 () * Number of discrete variables: 44 (sensor_world2.arrow.twoHeadedArrow,sensor_world2.arrow.headAtOrigin,sensor_world1.arrow.twoHeadedArrow,sensor_world1.arrow.headAtOrigin,sensor_frame_a2.arrow.twoHeadedArrow,sensor_frame_a2.arrow.headAtOrigin,sensor_frame_a1.arrow.twoHeadedArrow,sensor_frame_a1.arrow.headAtOrigin,sensor_world2.arrowColor[3],sensor_world2.arrowColor[2],sensor_world2.arrowColor[1],sensor_world1.arrowColor[3],sensor_world1.arrowColor[2],sensor_world1.arrowColor[1],sensor_frame_a2.arrowColor[3],sensor_frame_a2.arrowColor[2],sensor_frame_a2.arrowColor[1],sensor_frame_a1.arrowColor[3],sensor_frame_a1.arrowColor[2],sensor_frame_a1.arrowColor[1],box.color[3],box.color[2],box.color[1],box.body.sphereColor[3],box.body.sphereColor[2],box.body.sphereColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (2275): * Single equations (assignments): 2267 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01319/2.491, allocations: 7.716 MB / 1.068 GB, free: 66.67 MB / 0.5764 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002212/2.493, allocations: 0.8251 MB / 1.068 GB, free: 65.83 MB / 0.5764 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01171/2.504, allocations: 7.769 MB / 1.076 GB, free: 58.01 MB / 0.5764 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.109e-05/2.505, allocations: 36 kB / 1.076 GB, free: 57.97 MB / 0.5764 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/2.505, allocations: 7.938 kB / 1.076 GB, free: 57.97 MB / 0.5764 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.198e-05/2.505, allocations: 15.95 kB / 1.076 GB, free: 57.95 MB / 0.5764 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04425/2.549, allocations: 23.19 MB / 1.099 GB, free: 34.62 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.497e-05/2.549, allocations: 8.031 kB / 1.099 GB, free: 34.61 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003009/2.552, allocations: 0.6279 MB / 1.099 GB, free: 33.98 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002415/2.554, allocations: 0.9449 MB / 1.1 GB, free: 33.04 MB / 0.5764 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004049/2.555, allocations: 65.62 kB / 1.1 GB, free: 32.98 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006275/2.561, allocations: 6.197 MB / 1.106 GB, free: 26.64 MB / 0.5764 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/2.561, allocations: 4 kB / 1.106 GB, free: 26.64 MB / 0.5764 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01503/2.576, allocations: 12.88 MB / 1.119 GB, free: 13.61 MB / 0.5764 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002028/2.578, allocations: 0.7636 MB / 1.12 GB, free: 12.82 MB / 0.5764 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001857/2.58, allocations: 59.98 kB / 1.12 GB, free: 12.76 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004524/2.585, allocations: 351.5 kB / 1.12 GB, free: 12.42 MB / 0.5764 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006724/2.585, allocations: 201.1 kB / 1.12 GB, free: 12.22 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003842/2.586, allocations: 99.98 kB / 1.12 GB, free: 12.12 MB / 0.5764 GB Notification: Performance of sorting global known variables: time 0.01212/2.598, allocations: 6.51 MB / 1.127 GB, free: 5.637 MB / 0.5764 GB Notification: Performance of sort global known variables: time 5.51e-07/2.598, allocations: 0 / 1.127 GB, free: 5.637 MB / 0.5764 GB Notification: Performance of remove unused functions: time 0.01577/2.614, allocations: 2.931 MB / 1.13 GB, free: 2.715 MB / 0.5764 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 4 (rev.phi,rev.w,rev1.phi,rev1.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 (294): * Single equations (assignments): 286 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2873/2.901, allocations: 13.72 MB / 1.143 GB, free: 173.3 MB / 0.592 GB Notification: Performance of simCode: created initialization part: time 0.03035/2.931, allocations: 19.3 MB / 1.162 GB, free: 168 MB / 0.592 GB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/2.932, allocations: 4.375 kB / 1.162 GB, free: 168 MB / 0.592 GB Notification: Performance of simCode: created simulation system equations: time 0.004347/2.936, allocations: 3.633 MB / 1.165 GB, free: 166.5 MB / 0.592 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007742/2.944, allocations: 1.584 MB / 1.167 GB, free: 165.9 MB / 0.592 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2185/3.162, allocations: 189.1 MB / 1.352 GB, free: 6.18 MB / 0.6233 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2715/3.434, allocations: 10.29 MB / 1.362 GB, free: 215.4 MB / 0.6233 GB Notification: Performance of simCode: alias equations: time 0.01964/3.453, allocations: 5.436 MB / 1.367 GB, free: 215.2 MB / 0.6233 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0114/3.465, allocations: 6.658 MB / 1.374 GB, free: 213.1 MB / 0.6233 GB Notification: Performance of SimCode: time 1.022e-06/3.465, allocations: 4 kB / 1.374 GB, free: 213.1 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2283/3.693, allocations: 174.1 MB / 1.544 GB, free: 62.16 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.12/18.81, allocations: 8 kB / 1.544 GB, free: 62.15 MB / 0.6233 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor/AbsoluteSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches