Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_AbsoluteSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_AbsoluteSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009653/0.0009655, allocations: 198.2 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 226.5 MB / 243.4 MB, free: 6.527 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007375/0.0007374, allocations: 98.67 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2793/0.2793, allocations: 44.83 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002389/0.000239, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2609, allocations: 62.95 MB / 0.516 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor): time 0.03894/0.2999, allocations: 57.93 MB / 0.5725 GB, free: 11.77 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02947/0.3294, allocations: 13.98 MB / 0.5862 GB, free: 0.832 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01182/0.3412, allocations: 307.2 kB / 0.5865 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0102/0.3515, allocations: 3.272 MB / 0.5897 GB, free: 13.78 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02259/0.3741, allocations: 9.063 MB / 0.5985 GB, free: 4.688 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006855/0.381, allocations: 1.751 MB / 0.6002 GB, free: 2.934 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.04787/0.4289, allocations: 40.68 MB / 0.64 GB, free: 10.19 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2974/0.7263, allocations: 42.39 MB / 0.6814 GB, free: 46.55 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00681/0.7332, allocations: 3.457 MB / 0.6847 GB, free: 46.55 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00975/0.743, allocations: 5.604 MB / 0.6902 GB, free: 46.55 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002842/0.7458, allocations: 0.4971 MB / 0.6907 GB, free: 46.55 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00518/0.751, allocations: 1.821 MB / 0.6925 GB, free: 46.55 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.009635/0.7607, allocations: 5.93 MB / 0.6983 GB, free: 46.55 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01544/0.7762, allocations: 6.582 MB / 0.7047 GB, free: 46.52 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02763/0.8038, allocations: 26.91 MB / 0.731 GB, free: 36.78 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.8039, allocations: 0 / 0.731 GB, free: 36.78 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.919e-06/0.8039, allocations: 0 / 0.731 GB, free: 36.78 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001385/0.8053, allocations: 2.078 kB / 0.731 GB, free: 36.78 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5519 * Number of variables: 5519 Notification: Performance of Generate backend data structure: time 0.03172/0.837, allocations: 12.82 MB / 0.7435 GB, free: 29.32 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.8371, allocations: 9.156 kB / 0.7435 GB, free: 29.32 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01027/0.8474, allocations: 2.76 MB / 0.7462 GB, free: 28.64 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08986/0.9372, allocations: 8.534 MB / 0.7545 GB, free: 25.41 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02079/0.9581, allocations: 7.897 MB / 0.7622 GB, free: 20.43 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001289/0.9594, allocations: 1.23 MB / 0.7634 GB, free: 19.73 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005931/0.9654, allocations: 1.619 MB / 0.765 GB, free: 18.66 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08943/1.055, allocations: 37.51 MB / 0.8017 GB, free: 6.629 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001475/1.056, allocations: 122.6 kB / 0.8018 GB, free: 6.562 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007564/1.064, allocations: 0.722 MB / 0.8025 GB, free: 6.379 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005798/1.07, allocations: 3.703 MB / 0.8061 GB, free: 3.406 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06793/1.138, allocations: 28.17 MB / 0.8336 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4509/1.589, allocations: 120 MB / 0.9508 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03729/1.626, allocations: 12.5 MB / 0.963 GB, free: 125.8 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004348/1.63, allocations: 3.499 MB / 0.9664 GB, free: 125.8 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009407/1.64, allocations: 15.18 MB / 0.9813 GB, free: 113.3 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.171e-05/1.64, allocations: 66.86 kB / 0.9813 GB, free: 113.2 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=238): time 9.297e-06/1.64, allocations: 0 / 0.9813 GB, free: 113.2 MB / 0.5886 GB Notification: Performance of matching and sorting (n=273): time 0.1952/1.835, allocations: 76.24 MB / 1.056 GB, free: 67.01 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/1.835, allocations: 209.9 kB / 1.056 GB, free: 66.76 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01992/1.855, allocations: 10.4 MB / 1.066 GB, free: 56.36 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.00066/1.856, allocations: 73.19 kB / 1.066 GB, free: 56.29 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.005826/1.862, allocations: 10.76 MB / 1.077 GB, free: 45.54 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001327/1.863, allocations: 1.237 MB / 1.078 GB, free: 44.31 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001654/1.865, allocations: 344 kB / 1.078 GB, free: 43.98 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.001638/1.866, allocations: 1.053 MB / 1.079 GB, free: 42.91 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008827/1.875, allocations: 5.867 MB / 1.085 GB, free: 37.04 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01447/1.89, allocations: 18.01 MB / 1.103 GB, free: 13.12 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2897/2.179, allocations: 25.86 MB / 1.128 GB, free: 188.1 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004302/2.18, allocations: 124.3 kB / 1.128 GB, free: 188.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2264) (initialization): time 0.03812/2.218, allocations: 22.7 MB / 1.15 GB, free: 181.5 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003246/2.218, allocations: 195.1 kB / 1.15 GB, free: 181.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007169/2.219, allocations: 436.9 kB / 1.151 GB, free: 181.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/2.221, allocations: 0.8171 MB / 1.152 GB, free: 181.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01291/2.234, allocations: 4.221 MB / 1.156 GB, free: 180.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004742/2.238, allocations: 3.928 MB / 1.159 GB, free: 178.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01212/2.251, allocations: 1.036 MB / 1.161 GB, free: 178.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003731/2.254, allocations: 1.119 MB / 1.162 GB, free: 178.2 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1987 * Number of states: 0 () * Number of discrete variables: 41 (sensor_world2.arrow.arrowLine.twoHeadedArrow,sensor_world2.arrow.headAtOrigin,sensor_frame_a2.arrow.arrowLine.twoHeadedArrow,sensor_frame_a2.arrow.headAtOrigin,sensor_world1.arrow.arrowLine.twoHeadedArrow,sensor_world1.arrow.headAtOrigin,sensor_frame_a1.arrow.arrowLine.twoHeadedArrow,sensor_frame_a1.arrow.headAtOrigin,sensor_world2.arrowColor[3],sensor_world2.arrowColor[2],sensor_world2.arrowColor[1],sensor_frame_a2.arrowColor[3],sensor_frame_a2.arrowColor[2],sensor_frame_a2.arrowColor[1],sensor_world1.arrowColor[3],sensor_world1.arrowColor[2],sensor_world1.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],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 (2218): * Single equations (assignments): 2210 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01468/2.269, allocations: 7.656 MB / 1.169 GB, free: 174.4 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001372/2.27, allocations: 0.7932 MB / 1.17 GB, free: 174.4 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008645/2.279, allocations: 5.749 MB / 1.175 GB, free: 172.1 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.52e-05/2.279, allocations: 31.34 kB / 1.175 GB, free: 172.1 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/2.279, allocations: 8.078 kB / 1.175 GB, free: 172.1 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-05/2.279, allocations: 12.38 kB / 1.176 GB, free: 172.1 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03691/2.316, allocations: 20.33 MB / 1.195 GB, free: 164.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.857e-05/2.316, allocations: 3.938 kB / 1.195 GB, free: 164.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002253/2.318, allocations: 0.5341 MB / 1.196 GB, free: 164.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006195/2.319, allocations: 237 kB / 1.196 GB, free: 164.2 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002128/2.319, allocations: 48.78 kB / 1.196 GB, free: 164.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002245/2.322, allocations: 2.526 MB / 1.199 GB, free: 161.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/2.322, allocations: 12.41 kB / 1.199 GB, free: 161.7 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01147/2.333, allocations: 9.606 MB / 1.208 GB, free: 153.5 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/2.335, allocations: 0.7448 MB / 1.209 GB, free: 152.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001808/2.337, allocations: 47.61 kB / 1.209 GB, free: 152.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004374/2.341, allocations: 353.5 kB / 1.209 GB, free: 152.4 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007769/2.342, allocations: 165.5 kB / 1.209 GB, free: 152.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003315/2.342, allocations: 90.19 kB / 1.209 GB, free: 152.2 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.01253/2.355, allocations: 6.371 MB / 1.216 GB, free: 147 MB / 0.6042 GB Notification: Performance of sort global known variables: time 5.81e-07/2.355, allocations: 0 / 1.216 GB, free: 147 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01504/2.37, allocations: 2.787 MB / 1.218 GB, free: 144.2 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 2 (rev.phi,rev.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 (239): * Single equations (assignments): 231 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0128/2.383, allocations: 10.43 MB / 1.228 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01883/2.402, allocations: 13 MB / 1.241 GB, free: 123.3 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/2.402, allocations: 448 / 1.241 GB, free: 123.3 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003289/2.405, allocations: 2.744 MB / 1.244 GB, free: 120.9 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01253/2.418, allocations: 1.414 MB / 1.245 GB, free: 119.7 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4217/2.839, allocations: 112.2 MB / 1.355 GB, free: 204.1 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01826/2.858, allocations: 10.15 MB / 1.365 GB, free: 202.6 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01042/2.868, allocations: 6.665 MB / 1.371 GB, free: 197.1 MB / 0.6042 GB Notification: Performance of SimCode: time 1.663e-06/2.868, allocations: 0.9688 kB / 1.371 GB, free: 197.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 16.19/19.06, allocations: 297 MB / 1.661 GB, free: 134.6 MB / 0.6042 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_AbsoluteSensor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_AbsoluteSensor.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor/AbsoluteSensor.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches