Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",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.001507/0.001508, allocations: 106.9 kB / 15.98 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 188.7 kB / 16.9 MB, free: 5.758 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.412/1.412, allocations: 205.1 MB / 222.8 MB, free: 12.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2151/0.2151, allocations: 43.52 MB / 313.6 MB, free: 0.6953 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.00144/0.00144, allocations: 64.88 kB / 382.3 MB, free: 56.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1256, allocations: 57.8 MB / 440.1 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.03179/0.1574, allocations: 33.88 MB / 474 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01853/0.176, allocations: 7.635 MB / 481.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007569/0.1836, allocations: 139.6 kB / 481.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004622/0.1883, allocations: 1.609 MB / 483.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005014/0.1934, allocations: 1.534 MB / 484.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.195, allocations: 0.5187 MB / 485.4 MB, free: 9.746 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006094/0.2011, allocations: 3.657 MB / 489.1 MB, free: 6.082 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004305/0.2054, allocations: 2.396 MB / 491.5 MB, free: 3.637 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002669/0.2081, allocations: 1.175 MB / 492.6 MB, free: 2.457 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0038/0.212, allocations: 1.83 MB / 494.5 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001117/0.2131, allocations: 244 kB / 494.7 MB, free: 392 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002914/0.2161, allocations: 1.131 MB / 495.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002677/0.2188, allocations: 1.531 MB / 497.4 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003338/0.2221, allocations: 1.833 MB / 499.2 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008265/0.2304, allocations: 5.771 MB / 0.4931 GB, free: 6.082 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.139e-05/0.2305, allocations: 0 / 0.4931 GB, free: 6.082 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.2305, allocations: 3.938 kB / 0.4932 GB, free: 6.078 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001783/0.2307, allocations: 0 / 0.4932 GB, free: 6.078 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01057/0.2413, allocations: 3.989 MB / 0.497 GB, free: 2.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.228e-05/0.2414, allocations: 15.89 kB / 0.4971 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001355/0.2427, allocations: 0.5716 MB / 0.4976 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08125/0.324, allocations: 6.975 MB / 0.5044 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006497/0.3305, allocations: 2.689 MB / 0.5071 GB, free: 7.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/0.3307, allocations: 172.7 kB / 0.5072 GB, free: 7.508 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005128/0.3312, allocations: 235.7 kB / 0.5074 GB, free: 7.277 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01212/0.3434, allocations: 7.82 MB / 0.5151 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.869e-05/0.3435, allocations: 47.58 kB / 0.5151 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003026/0.3438, allocations: 115.9 kB / 0.5152 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002739/0.3465, allocations: 1.664 MB / 0.5169 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01107/0.3576, allocations: 6.625 MB / 0.5233 GB, free: 6.355 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2321/0.5897, allocations: 31.21 MB / 0.5538 GB, free: 67.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004384/0.5942, allocations: 2.287 MB / 0.5561 GB, free: 66.67 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.5956, allocations: 1.119 MB / 0.5571 GB, free: 66.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003144/0.596, allocations: 323.6 kB / 0.5575 GB, free: 65.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.596, allocations: 58.53 kB / 0.5575 GB, free: 65.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 4.609e-06/0.596, allocations: 1.266 kB / 0.5575 GB, free: 65.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.03565/0.6317, allocations: 11.39 MB / 0.5686 GB, free: 60.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.355e-05/0.6318, allocations: 198.9 kB / 0.5688 GB, free: 60.4 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005164/0.637, allocations: 3.748 MB / 0.5725 GB, free: 58.47 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001664/0.6372, allocations: 41.33 kB / 0.5725 GB, free: 58.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/0.6384, allocations: 2.691 MB / 0.5751 GB, free: 55.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004446/0.6388, allocations: 0.5537 MB / 0.5757 GB, free: 55.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009965/0.6398, allocations: 1.083 MB / 0.5767 GB, free: 54.15 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.083e-05/0.6399, allocations: 313.1 kB / 0.577 GB, free: 53.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001829/0.6417, allocations: 1.693 MB / 0.5787 GB, free: 52.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003043/0.6448, allocations: 5.131 MB / 0.5837 GB, free: 45.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005646/0.6504, allocations: 7.439 MB / 0.591 GB, free: 36.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.737e-05/0.6505, allocations: 36 kB / 0.591 GB, free: 36.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.00892/0.6594, allocations: 6.793 MB / 0.5976 GB, free: 29.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.065e-05/0.6595, allocations: 56 kB / 0.5977 GB, free: 29.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.7e-05/0.6596, allocations: 123.9 kB / 0.5978 GB, free: 29.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00077/0.6604, allocations: 405 kB / 0.5982 GB, free: 28.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002954/0.6633, allocations: 1.241 MB / 0.5994 GB, free: 27.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002827/0.6662, allocations: 3.333 MB / 0.6027 GB, free: 24.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003604/0.6698, allocations: 299.4 kB / 0.6029 GB, free: 23.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003335/0.6701, allocations: 339.6 kB / 0.6033 GB, free: 23.39 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[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 (665): * Single equations (assignments): 661 * Array equations: 3 * 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 {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002404/0.6725, allocations: 1.774 MB / 0.605 GB, free: 21.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005612/0.6731, allocations: 315.9 kB / 0.6053 GB, free: 21.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002778/0.6759, allocations: 1.861 MB / 0.6071 GB, free: 19.42 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.002e-05/0.6759, allocations: 19.44 kB / 0.6071 GB, free: 19.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.6759, allocations: 4 kB / 0.6071 GB, free: 19.4 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.676, allocations: 3.984 kB / 0.6072 GB, free: 19.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008003/0.684, allocations: 5.626 MB / 0.6126 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.684, allocations: 0 / 0.6126 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009545/0.685, allocations: 219.7 kB / 0.6129 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005674/0.6855, allocations: 231.6 kB / 0.6131 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.813e-05/0.6856, allocations: 23.67 kB / 0.6131 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002205/0.6878, allocations: 2.707 MB / 0.6157 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.6879, allocations: 0 / 0.6157 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00431/0.6922, allocations: 3.883 MB / 0.6195 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/0.6932, allocations: 0.536 MB / 0.6201 GB, free: 5.945 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003259/0.6935, allocations: 19.94 kB / 0.6201 GB, free: 5.926 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.6946, allocations: 75.97 kB / 0.6201 GB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001816/0.6948, allocations: 72.5 kB / 0.6202 GB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.868e-05/0.6949, allocations: 43.66 kB / 0.6203 GB, free: 5.742 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002639/0.6976, allocations: 2.35 MB / 0.6226 GB, free: 3.406 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6976, allocations: 0 / 0.6226 GB, free: 3.406 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003968/0.7016, allocations: 0.8111 MB / 0.6233 GB, free: 2.598 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (112): * Single equations (assignments): 108 * Array equations: 3 * 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 {(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.005225/0.7068, allocations: 4.525 MB / 0.6278 GB, free: 14.04 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007934/0.7147, allocations: 4.546 MB / 0.6322 GB, free: 9.52 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.7148, allocations: 4 kB / 0.6322 GB, free: 9.516 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001833/0.7166, allocations: 1.139 MB / 0.6333 GB, free: 8.367 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003157/0.7198, allocations: 384.4 kB / 0.6337 GB, free: 8.008 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07565/0.7955, allocations: 44.07 MB / 0.6767 GB, free: 5.086 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004344/0.7999, allocations: 2.758 MB / 0.6794 GB, free: 2.305 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004802/0.8047, allocations: 1.738 MB / 0.6811 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002349/0.8071, allocations: 1.507 MB / 0.6826 GB, free: 15.06 MB / 494.1 MB Notification: Performance of SimCode: time 9.81e-07/0.8071, allocations: 0 / 0.6826 GB, free: 15.06 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3319/1.139, allocations: 59.47 MB / 0.7407 GB, free: 162.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/1.139, allocations: 214.9 kB / 0.7409 GB, free: 162.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.641/4.78, allocations: 3.938 kB / 0.7409 GB, free: 162.1 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches