Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",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.001118/0.001118, allocations: 106.3 kB / 15.98 MB, free: 5.891 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.001156/0.001157, allocations: 195.4 kB / 16.91 MB, free: 5.742 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.501/1.501, allocations: 205.1 MB / 222.8 MB, free: 4.57 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.3437/0.3437, allocations: 43.49 MB / 313.6 MB, free: 8.316 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.001636/0.001635, allocations: 67.91 kB / 382.3 MB, free: 8.293 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1447, allocations: 57.78 MB / 440.1 MB, free: 14.4 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2706/0.4153, allocations: 41.49 MB / 481.6 MB, free: 25.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01855/0.4339, allocations: 8.869 MB / 490.5 MB, free: 19.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009367/0.4433, allocations: 170.2 kB / 490.6 MB, free: 19.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003721/0.4471, allocations: 1.875 MB / 492.5 MB, free: 18.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004328/0.4515, allocations: 1.622 MB / 494.1 MB, free: 18.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00125/0.4528, allocations: 0.5326 MB / 494.7 MB, free: 17.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004958/0.4577, allocations: 3.882 MB / 498.5 MB, free: 16.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003554/0.4613, allocations: 2.705 MB / 0.4895 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002507/0.4638, allocations: 1.292 MB / 0.4908 GB, free: 14.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003408/0.4672, allocations: 2.049 MB / 0.4928 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007433/0.468, allocations: 274.2 kB / 0.493 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002699/0.4707, allocations: 1.162 MB / 0.4942 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002172/0.4729, allocations: 1.709 MB / 0.4958 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002679/0.4756, allocations: 2.031 MB / 0.4978 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008921/0.4845, allocations: 6.391 MB / 0.504 GB, free: 9.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.4846, allocations: 5.438 kB / 0.504 GB, free: 9.562 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4846, allocations: 7.875 kB / 0.5041 GB, free: 9.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002048/0.4848, allocations: 0 / 0.5041 GB, free: 9.555 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01257/0.4974, allocations: 4.34 MB / 0.5083 GB, free: 6.871 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.4974, allocations: 12.89 kB / 0.5083 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001353/0.4988, allocations: 0.6535 MB / 0.5089 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08372/0.5825, allocations: 7.029 MB / 0.5158 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006508/0.5891, allocations: 2.818 MB / 0.5186 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.5892, allocations: 197.5 kB / 0.5188 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004852/0.5897, allocations: 263.7 kB / 0.519 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01333/0.603, allocations: 8.682 MB / 0.5275 GB, free: 6.836 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-05/0.6031, allocations: 43.58 kB / 0.5275 GB, free: 6.793 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003597/0.6035, allocations: 131.8 kB / 0.5276 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002908/0.6064, allocations: 1.833 MB / 0.5294 GB, free: 4.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0122/0.6186, allocations: 7.344 MB / 0.5366 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03766/0.6563, allocations: 34 MB / 0.5698 GB, free: 10.49 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005187/0.6616, allocations: 2.531 MB / 0.5723 GB, free: 7.809 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.6631, allocations: 1.12 MB / 0.5734 GB, free: 6.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003507/0.6634, allocations: 327.7 kB / 0.5737 GB, free: 6.305 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.6635, allocations: 55.05 kB / 0.5737 GB, free: 6.242 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 3.096e-06/0.6635, allocations: 4 kB / 0.5737 GB, free: 6.238 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.02168/0.6852, allocations: 8.951 MB / 0.5825 GB, free: 13.19 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001401/0.6853, allocations: 196.6 kB / 0.5827 GB, free: 12.95 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007701/0.6931, allocations: 3.974 MB / 0.5866 GB, free: 8.996 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002171/0.6933, allocations: 41.7 kB / 0.5866 GB, free: 8.949 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00218/0.6955, allocations: 2.968 MB / 0.5895 GB, free: 5.938 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006117/0.6961, allocations: 0.5403 MB / 0.59 GB, free: 5.391 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001521/0.6976, allocations: 1.162 MB / 0.5912 GB, free: 4.215 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.6978, allocations: 301.1 kB / 0.5914 GB, free: 3.918 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002518/0.7003, allocations: 1.706 MB / 0.5931 GB, free: 2.207 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005374/0.7057, allocations: 5.513 MB / 0.5985 GB, free: 10.77 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009268/0.7149, allocations: 7.849 MB / 0.6062 GB, free: 1.012 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001155/0.7151, allocations: 40 kB / 0.6062 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01415/0.7293, allocations: 7.092 MB / 0.6131 GB, free: 9.871 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.028e-05/0.7294, allocations: 64 kB / 0.6132 GB, free: 9.809 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001494/0.7295, allocations: 132 kB / 0.6133 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.7306, allocations: 421 kB / 0.6137 GB, free: 9.266 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0043/0.7349, allocations: 1.326 MB / 0.615 GB, free: 7.938 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004138/0.739, allocations: 3.375 MB / 0.6183 GB, free: 4.426 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004969/0.744, allocations: 299.5 kB / 0.6186 GB, free: 4.133 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001013/0.7451, allocations: 372 kB / 0.6189 GB, free: 3.77 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[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],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (716): * Single equations (assignments): 712 * 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.004644/0.7497, allocations: 1.939 MB / 0.6208 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008335/0.7506, allocations: 331.7 kB / 0.6211 GB, free: 1.488 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003659/0.7542, allocations: 1.71 MB / 0.6228 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.857e-05/0.7543, allocations: 12 kB / 0.6228 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.7543, allocations: 4 kB / 0.6228 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.616e-05/0.7543, allocations: 7.969 kB / 0.6228 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/0.7657, allocations: 5.441 MB / 0.6282 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.7658, allocations: 8.156 kB / 0.6282 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008901/0.7667, allocations: 183.8 kB / 0.6283 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006748/0.7674, allocations: 236.5 kB / 0.6286 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.013e-05/0.7675, allocations: 23.94 kB / 0.6286 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002802/0.7703, allocations: 2.703 MB / 0.6312 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.7703, allocations: 4 kB / 0.6312 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004897/0.7752, allocations: 3.544 MB / 0.6347 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/0.7767, allocations: 0.5278 MB / 0.6352 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003906/0.7771, allocations: 20 kB / 0.6352 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.7782, allocations: 60 kB / 0.6353 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.7784, allocations: 76.34 kB / 0.6354 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.559e-05/0.7785, allocations: 43.97 kB / 0.6354 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004218/0.7827, allocations: 2.489 MB / 0.6378 GB, free: 120 kB / 0.4981 GB Notification: Performance of sort global known variables: time 3.11e-07/0.7828, allocations: 0 / 0.6378 GB, free: 120 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.2051/0.9879, allocations: 0.8438 MB / 0.6387 GB, free: 157 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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.004525/0.9925, allocations: 4.157 MB / 0.6427 GB, free: 156 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006384/0.9989, allocations: 4.457 MB / 0.6471 GB, free: 155.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.9989, allocations: 0 / 0.6471 GB, free: 155.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001127/1, allocations: 1.014 MB / 0.6481 GB, free: 155.1 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002185/1.002, allocations: 394 kB / 0.6484 GB, free: 154.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06039/1.063, allocations: 46.87 MB / 0.6942 GB, free: 118.7 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003174/1.066, allocations: 2.953 MB / 0.6971 GB, free: 117.4 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004657/1.07, allocations: 1.801 MB / 0.6988 GB, free: 117.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002175/1.073, allocations: 1.656 MB / 0.7005 GB, free: 116 MB / 0.4981 GB Notification: Performance of SimCode: time 7.01e-07/1.073, allocations: 0 / 0.7005 GB, free: 116 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08487/1.158, allocations: 61.59 MB / 0.7606 GB, free: 62.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/1.158, allocations: 213 kB / 0.7608 GB, free: 62.23 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.653/4.811, allocations: 0 / 0.7608 GB, free: 62.23 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches