Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001209/0.001209, allocations: 177.1 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.299/1.299, allocations: 205.4 MB / 222.9 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007929/0.0007928, allocations: 97.47 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2839/0.2839, allocations: 43.56 MB / 363.1 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003391/0.0003392, allocations: 20 kB / 432.1 MB, free: 5.734 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1037, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.2422/0.3459, allocations: 84.69 MB / 0.5621 GB, free: 5.965 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.04517/0.3911, allocations: 18.76 MB / 0.5804 GB, free: 9.047 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01965/0.4109, allocations: 430.8 kB / 0.5809 GB, free: 8.98 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01755/0.4285, allocations: 4.591 MB / 0.5853 GB, free: 7.305 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03798/0.4665, allocations: 13 MB / 0.598 GB, free: 12.52 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009325/0.4758, allocations: 1.884 MB / 0.5999 GB, free: 10.63 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.05917/0.535, allocations: 43.27 MB / 0.6421 GB, free: 15.31 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3492/0.8843, allocations: 45.54 MB / 0.6866 GB, free: 39.81 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007204/0.8916, allocations: 3.999 MB / 0.6905 GB, free: 39.81 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009892/0.9015, allocations: 6.326 MB / 0.6967 GB, free: 39.8 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003212/0.9048, allocations: 0.5492 MB / 0.6972 GB, free: 39.8 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006697/0.9115, allocations: 1.962 MB / 0.6991 GB, free: 39.79 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.009692/0.9212, allocations: 6.573 MB / 0.7056 GB, free: 39.79 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01263/0.9339, allocations: 7.198 MB / 0.7126 GB, free: 39.76 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02551/0.9594, allocations: 28.22 MB / 0.7401 GB, free: 28.56 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.9595, allocations: 3.984 kB / 0.7402 GB, free: 28.56 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.9595, allocations: 0 / 0.7402 GB, free: 28.56 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001489/0.961, allocations: 0 / 0.7402 GB, free: 28.56 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: 5965 * Number of variables: 5965 Notification: Performance of Generate backend data structure: time 0.0379/0.9989, allocations: 15.24 MB / 0.755 GB, free: 16.91 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.999, allocations: 12.03 kB / 0.755 GB, free: 16.89 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009241/1.008, allocations: 2.977 MB / 0.7579 GB, free: 15.22 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.157/1.165, allocations: 14.19 MB / 0.7718 GB, free: 1.438 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02197/1.187, allocations: 10.24 MB / 0.7818 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001371/1.189, allocations: 1.319 MB / 0.7831 GB, free: 9.984 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006628/1.195, allocations: 1.733 MB / 0.7848 GB, free: 8.832 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1037/1.299, allocations: 40.81 MB / 0.8246 GB, free: 11.15 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00124/1.3, allocations: 95.48 kB / 0.8247 GB, free: 11.1 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008845/1.309, allocations: 0.7613 MB / 0.8255 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007504/1.317, allocations: 4.174 MB / 0.8296 GB, free: 7.504 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08028/1.397, allocations: 33.31 MB / 0.8621 GB, free: 9.035 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5622/1.959, allocations: 119 MB / 0.9783 GB, free: 126.8 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05672/2.016, allocations: 22.2 MB / 0.9999 GB, free: 119.7 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00754/2.024, allocations: 6.921 MB / 1.007 GB, free: 115.9 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03828/2.062, allocations: 27.29 MB / 1.033 GB, free: 93.34 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.64e-05/2.062, allocations: 72.98 kB / 1.033 GB, free: 93.26 MB / 0.573 GB Notification: Performance of pre-optimization done (n=372): time 7.494e-06/2.062, allocations: 0 / 1.033 GB, free: 93.26 MB / 0.573 GB Notification: Performance of matching and sorting (n=486): time 1.474/3.536, allocations: 324.9 MB / 1.351 GB, free: 186.1 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.141e-05/3.536, allocations: 277.2 kB / 1.351 GB, free: 185.8 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01588/3.552, allocations: 10.19 MB / 1.361 GB, free: 182.1 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001763/3.554, allocations: 105.5 kB / 1.361 GB, free: 182 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005599/3.559, allocations: 10.81 MB / 1.372 GB, free: 173.8 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003106/3.563, allocations: 1.887 MB / 1.373 GB, free: 172.5 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002541/3.565, allocations: 339.8 kB / 1.374 GB, free: 172.2 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0009664/3.566, allocations: 1.034 MB / 1.375 GB, free: 171.6 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02303/3.589, allocations: 15.98 MB / 1.39 GB, free: 164.9 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02941/3.619, allocations: 26.6 MB / 1.416 GB, free: 143.8 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0439/3.663, allocations: 44.78 MB / 1.46 GB, free: 104.2 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005209/3.663, allocations: 108 kB / 1.46 GB, free: 104.1 MB / 0.573 GB Notification: Performance of matching and sorting (n=2205) (initialization): time 0.06076/3.724, allocations: 42.29 MB / 1.501 GB, free: 63.94 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006047/3.725, allocations: 168 kB / 1.502 GB, free: 63.77 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006471/3.725, allocations: 380 kB / 1.502 GB, free: 63.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002173/3.727, allocations: 0.9547 MB / 1.503 GB, free: 62.45 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01957/3.747, allocations: 5.22 MB / 1.508 GB, free: 57.21 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005928/3.753, allocations: 6.412 MB / 1.514 GB, free: 50.56 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01861/3.772, allocations: 2.115 MB / 1.516 GB, free: 48.45 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003874/3.775, allocations: 1.022 MB / 1.517 GB, free: 47.43 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1713 * Number of states: 0 () * Number of discrete variables: 48 (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 (2149): * Single equations (assignments): 2139 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0166/3.792, allocations: 7.831 MB / 1.525 GB, free: 39.58 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003062/3.795, allocations: 0.8832 MB / 1.526 GB, free: 38.68 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2738/4.069, allocations: 30.46 MB / 1.556 GB, free: 166.9 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001321/4.069, allocations: 92.77 kB / 1.556 GB, free: 166.9 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-05/4.069, allocations: 3.031 kB / 1.556 GB, free: 166.9 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001031/4.069, allocations: 22.55 kB / 1.556 GB, free: 166.9 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09937/4.169, allocations: 72.8 MB / 1.627 GB, free: 126.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.763e-05/4.169, allocations: 3.828 kB / 1.627 GB, free: 126.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01144/4.18, allocations: 2.043 MB / 1.629 GB, free: 126.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001281/4.181, allocations: 459.9 kB / 1.629 GB, free: 125.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001518/4.183, allocations: 81.92 kB / 1.629 GB, free: 125.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004508/4.188, allocations: 5.039 MB / 1.634 GB, free: 121.1 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/4.188, allocations: 4 kB / 1.634 GB, free: 121.1 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05743/4.245, allocations: 50.91 MB / 1.684 GB, free: 72.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00846/4.254, allocations: 3.972 MB / 1.688 GB, free: 69.38 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0034/4.257, allocations: 74.86 kB / 1.688 GB, free: 69.31 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01109/4.268, allocations: 1.591 MB / 1.689 GB, free: 67.73 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003465/4.272, allocations: 251.7 kB / 1.69 GB, free: 67.48 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001528/4.273, allocations: 138.1 kB / 1.69 GB, free: 67.36 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01145/4.285, allocations: 6.312 MB / 1.696 GB, free: 61.07 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.543e-06/4.285, allocations: 0 / 1.696 GB, free: 61.07 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01927/4.304, allocations: 4.279 MB / 1.7 GB, free: 56.8 MB / 0.573 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 (444): * Single equations (assignments): 434 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2753/4.579, allocations: 51.75 MB / 1.751 GB, free: 169.8 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0455/4.625, allocations: 35.27 MB / 1.785 GB, free: 155.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/4.625, allocations: 1.688 kB / 1.785 GB, free: 155.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01879/4.644, allocations: 15.06 MB / 1.8 GB, free: 148.3 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0119/4.655, allocations: 1.4 MB / 1.801 GB, free: 147.7 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4231/5.079, allocations: 177.4 MB / 1.975 GB, free: 174.8 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01528/5.094, allocations: 11.01 MB / 1.985 GB, free: 172.4 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01412/5.108, allocations: 7.915 MB / 1.993 GB, free: 165.8 MB / 0.573 GB Notification: Performance of SimCode: time 6.81e-07/5.108, allocations: 3.156 kB / 1.993 GB, free: 165.8 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 22.02/27.12, allocations: 428.6 MB / 2.412 GB, free: 145.2 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/RelativeSensor/RelativeSensor.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches