Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008225/0.0008227, allocations: 102.6 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008801/0.0008804, allocations: 180.7 kB / 16.92 MB, free: 6.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.328/1.328, allocations: 205.4 MB / 223.1 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3162/0.3162, allocations: 43.57 MB / 315 MB, free: 8.801 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005002/0.0005003, allocations: 16 kB / 384.7 MB, free: 7.539 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.114, allocations: 58.85 MB / 443.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.2719/0.386, allocations: 91.2 MB / 0.5222 GB, free: 4.449 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04873/0.4348, allocations: 19.64 MB / 0.5414 GB, free: 7.258 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02738/0.4622, allocations: 432 kB / 0.5418 GB, free: 7.191 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006039/0.4683, allocations: 1.404 MB / 0.5432 GB, free: 6.625 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01329/0.4816, allocations: 3.967 MB / 0.547 GB, free: 4.789 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00698/0.4886, allocations: 2.192 MB / 0.5492 GB, free: 3.414 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02444/0.5131, allocations: 19.17 MB / 0.5679 GB, free: 260 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07331/0.5865, allocations: 47.59 MB / 0.6144 GB, free: 0.5 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007597/0.5941, allocations: 3.751 MB / 0.618 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009938/0.6041, allocations: 6.512 MB / 0.6244 GB, free: 6.195 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002648/0.6067, allocations: 0.5469 MB / 0.6249 GB, free: 5.648 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005612/0.6124, allocations: 1.966 MB / 0.6269 GB, free: 3.684 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.5295/1.142, allocations: 6.695 MB / 0.6334 GB, free: 34.14 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01405/1.156, allocations: 7.613 MB / 0.6408 GB, free: 32.44 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03665/1.193, allocations: 31.93 MB / 0.672 GB, free: 25.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.453e-06/1.193, allocations: 1.906 kB / 0.672 GB, free: 25.11 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.735e-06/1.193, allocations: 1.25 kB / 0.672 GB, free: 25.11 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001485/1.194, allocations: 0 / 0.672 GB, free: 25.11 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: 5965 * Number of variables: 5965 Notification: Performance of Generate backend data structure: time 0.04915/1.243, allocations: 15.24 MB / 0.6869 GB, free: 16.45 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/1.243, allocations: 7.688 kB / 0.6869 GB, free: 16.45 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01637/1.26, allocations: 2.977 MB / 0.6898 GB, free: 15.71 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1838/1.444, allocations: 14.19 MB / 0.7037 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0242/1.468, allocations: 10.23 MB / 0.7137 GB, free: 8.211 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001241/1.469, allocations: 1.317 MB / 0.7149 GB, free: 8.172 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008596/1.478, allocations: 1.743 MB / 0.7166 GB, free: 8.148 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1033/1.581, allocations: 40.96 MB / 0.7566 GB, free: 1.246 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007246/1.582, allocations: 96.17 kB / 0.7567 GB, free: 1.188 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006882/1.589, allocations: 0.7547 MB / 0.7575 GB, free: 0.4961 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006928/1.596, allocations: 4.178 MB / 0.7616 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08291/1.679, allocations: 33.47 MB / 0.7942 GB, free: 11.22 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4104/2.089, allocations: 119 MB / 0.9104 GB, free: 172.7 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05486/2.144, allocations: 22.22 MB / 0.9321 GB, free: 170.1 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006859/2.151, allocations: 6.942 MB / 0.9389 GB, free: 170 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03853/2.19, allocations: 27.28 MB / 0.9655 GB, free: 156.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.322e-05/2.19, allocations: 79.12 kB / 0.9656 GB, free: 156.5 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=372): time 9.337e-06/2.19, allocations: 0 / 0.9656 GB, free: 156.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=486): time 1.249/3.438, allocations: 324.9 MB / 1.283 GB, free: 117.7 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/3.439, allocations: 288.9 kB / 1.283 GB, free: 117.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02149/3.46, allocations: 10.25 MB / 1.293 GB, free: 107.1 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.002483/3.463, allocations: 99.34 kB / 1.293 GB, free: 107 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.006958/3.47, allocations: 10.81 MB / 1.304 GB, free: 96.17 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.004168/3.474, allocations: 1.894 MB / 1.306 GB, free: 94.29 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006669/3.48, allocations: 1.375 MB / 1.307 GB, free: 92.91 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.567e-05/3.481, allocations: 301.1 kB / 1.307 GB, free: 92.61 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02104/3.502, allocations: 16.05 MB / 1.323 GB, free: 76.55 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02683/3.528, allocations: 26.67 MB / 1.349 GB, free: 44.65 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3005/3.829, allocations: 44.86 MB / 1.393 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003662/3.829, allocations: 107.4 kB / 1.393 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2205) (initialization): time 0.06553/3.895, allocations: 42.42 MB / 1.434 GB, free: 170 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002283/3.895, allocations: 169.5 kB / 1.434 GB, free: 169.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005791/3.896, allocations: 372 kB / 1.435 GB, free: 169.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002126/3.898, allocations: 0.9612 MB / 1.436 GB, free: 168.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02103/3.919, allocations: 5.218 MB / 1.441 GB, free: 164.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006441/3.925, allocations: 6.426 MB / 1.447 GB, free: 158.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02063/3.946, allocations: 2.115 MB / 1.449 GB, free: 157.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00387/3.95, allocations: 1.025 MB / 1.45 GB, free: 156.1 MB / 0.6075 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 (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.01615/3.966, allocations: 7.837 MB / 1.458 GB, free: 149.2 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002127/3.968, allocations: 0.8744 MB / 1.459 GB, free: 148.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04102/4.009, allocations: 30.48 MB / 1.489 GB, free: 122.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001277/4.01, allocations: 94.3 kB / 1.489 GB, free: 122.3 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-05/4.01, allocations: 4 kB / 1.489 GB, free: 122.3 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001045/4.01, allocations: 26.62 kB / 1.489 GB, free: 122.3 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09605/4.106, allocations: 72.82 MB / 1.56 GB, free: 48.37 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.221e-05/4.106, allocations: 0 / 1.56 GB, free: 48.37 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0124/4.118, allocations: 2.055 MB / 1.562 GB, free: 46.31 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001361/4.12, allocations: 458.8 kB / 1.562 GB, free: 45.86 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001779/4.121, allocations: 85.45 kB / 1.562 GB, free: 45.78 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004451/4.126, allocations: 5.053 MB / 1.567 GB, free: 40.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/4.126, allocations: 4.953 kB / 1.567 GB, free: 40.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3272/4.453, allocations: 50.95 MB / 1.617 GB, free: 198.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008538/4.462, allocations: 3.975 MB / 1.621 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003722/4.465, allocations: 73.86 kB / 1.621 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01224/4.478, allocations: 1.587 MB / 1.622 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002535/4.48, allocations: 263.8 kB / 1.623 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001434/4.482, allocations: 127.4 kB / 1.623 GB, free: 197 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.01364/4.495, allocations: 6.359 MB / 1.629 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.81e-07/4.495, allocations: 3.625 kB / 1.629 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01956/4.515, allocations: 4.287 MB / 1.633 GB, free: 194.5 MB / 0.6075 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 (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.06735/4.582, allocations: 51.8 MB / 1.684 GB, free: 154.7 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.04533/4.628, allocations: 35.36 MB / 1.718 GB, free: 123.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.611e-05/4.628, allocations: 448 / 1.718 GB, free: 123.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01777/4.646, allocations: 15.08 MB / 1.733 GB, free: 109.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0169/4.662, allocations: 1.419 MB / 1.734 GB, free: 107.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.585/5.248, allocations: 269.9 MB / 1.998 GB, free: 79.04 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02595/5.274, allocations: 11.02 MB / 2.009 GB, free: 68.19 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.02423/5.298, allocations: 7.359 MB / 2.016 GB, free: 60.83 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01676/5.315, allocations: 7.779 MB / 2.024 GB, free: 53.05 MB / 0.6075 GB Notification: Performance of SimCode: time 9.12e-07/5.315, allocations: 0 / 2.024 GB, free: 53.05 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5278/5.842, allocations: 240.8 MB / 2.259 GB, free: 73.96 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001459/5.843, allocations: 229.8 kB / 2.259 GB, free: 73.71 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.73/12.57, allocations: 6.812 kB / 2.259 GB, free: 73.7 MB / 0.6075 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Sensors.RelativeSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches