Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001385/0.001385, allocations: 112 kB / 20.48 MB, free: 1.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001505/0.001505, allocations: 213.2 kB / 23.77 MB, free: 4.441 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 230.5 MB / 257.4 MB, free: 7.707 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2282/0.2282, allocations: 46.94 MB / 360.9 MB, free: 3.871 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002334/0.002334, allocations: 79.88 kB / 0.4962 GB, free: 7.48 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3343, allocations: 66.08 MB / 0.5607 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01202/0.3463, allocations: 7.93 MB / 0.5685 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00838/0.3547, allocations: 3.357 MB / 0.5718 GB, free: 8.652 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001791/0.3565, allocations: 55.69 kB / 0.5718 GB, free: 8.598 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003602/0.3601, allocations: 1.631 MB / 0.5734 GB, free: 6.961 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004474/0.3646, allocations: 1.588 MB / 0.575 GB, free: 5.367 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.366, allocations: 0.5575 MB / 0.5755 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005591/0.3716, allocations: 3.577 MB / 0.579 GB, free: 1.223 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002552/0.3741, allocations: 1.813 MB / 0.5808 GB, free: 15.35 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00196/0.3761, allocations: 1.117 MB / 0.5819 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002449/0.3785, allocations: 1.592 MB / 0.5834 GB, free: 12.63 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004366/0.379, allocations: 220 kB / 0.5836 GB, free: 12.42 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001917/0.3809, allocations: 0.9985 MB / 0.5846 GB, free: 11.42 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001591/0.3825, allocations: 1.449 MB / 0.586 GB, free: 9.965 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001616/0.3841, allocations: 1.242 MB / 0.5872 GB, free: 8.715 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006791/0.3909, allocations: 5.599 MB / 0.5927 GB, free: 3.094 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3909, allocations: 0 / 0.5927 GB, free: 3.094 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3909, allocations: 0 / 0.5927 GB, free: 3.094 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001298/0.391, allocations: 0 / 0.5927 GB, free: 3.094 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.009507/0.4005, allocations: 3.818 MB / 0.5964 GB, free: 15.22 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.4006, allocations: 16.03 kB / 0.5964 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008969/0.4015, allocations: 0.5384 MB / 0.597 GB, free: 14.65 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08783/0.4893, allocations: 7.158 MB / 0.604 GB, free: 7.484 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00627/0.4956, allocations: 2.341 MB / 0.6062 GB, free: 5.105 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001624/0.4957, allocations: 164.5 kB / 0.6064 GB, free: 4.941 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006176/0.4964, allocations: 223.7 kB / 0.6066 GB, free: 4.723 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01268/0.509, allocations: 7.394 MB / 0.6138 GB, free: 12.69 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001157/0.5092, allocations: 35.7 kB / 0.6139 GB, free: 12.65 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003517/0.5095, allocations: 111.9 kB / 0.614 GB, free: 12.54 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002659/0.5122, allocations: 1.539 MB / 0.6155 GB, free: 11 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.012/0.5242, allocations: 6.17 MB / 0.6215 GB, free: 4.82 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03963/0.5638, allocations: 28.82 MB / 0.6497 GB, free: 7.078 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004378/0.5682, allocations: 1.692 MB / 0.6513 GB, free: 5.348 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001439/0.5696, allocations: 0.9846 MB / 0.6523 GB, free: 4.352 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002926/0.5699, allocations: 92.25 kB / 0.6524 GB, free: 4.262 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.63e-05/0.57, allocations: 39 kB / 0.6524 GB, free: 4.215 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.559e-06/0.57, allocations: 112 / 0.6524 GB, free: 4.215 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03547/0.6054, allocations: 11.24 MB / 0.6634 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.6056, allocations: 192.6 kB / 0.6636 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00554/0.6111, allocations: 3.819 MB / 0.6673 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001971/0.6113, allocations: 45.7 kB / 0.6673 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00212/0.6134, allocations: 2.667 MB / 0.6699 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005834/0.614, allocations: 0.5428 MB / 0.6705 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001341/0.6153, allocations: 1.06 MB / 0.6715 GB, free: 500 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.6155, allocations: 301.1 kB / 0.6718 GB, free: 196 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002482/0.618, allocations: 1.63 MB / 0.6734 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00534/0.6233, allocations: 5.016 MB / 0.6783 GB, free: 7.836 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009212/0.6325, allocations: 7.179 MB / 0.6853 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001114/0.6326, allocations: 32 kB / 0.6853 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01209/0.6447, allocations: 6.573 MB / 0.6917 GB, free: 8.383 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.661e-05/0.6448, allocations: 57 kB / 0.6918 GB, free: 8.328 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001571/0.645, allocations: 116 kB / 0.6919 GB, free: 8.215 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009246/0.6459, allocations: 400.6 kB / 0.6923 GB, free: 7.82 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0037/0.6496, allocations: 1.185 MB / 0.6934 GB, free: 6.633 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004048/0.6536, allocations: 3.193 MB / 0.6966 GB, free: 3.328 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003864/0.6575, allocations: 291.6 kB / 0.6968 GB, free: 3.043 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008425/0.6583, allocations: 323.9 kB / 0.6971 GB, free: 2.73 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (640): * Single equations (assignments): 636 * 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.003141/0.6615, allocations: 1.701 MB / 0.6988 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007525/0.6622, allocations: 317.9 kB / 0.6991 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003231/0.6655, allocations: 1.718 MB / 0.7008 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.799e-05/0.6655, allocations: 12 kB / 0.7008 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.6655, allocations: 7.938 kB / 0.7008 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.6655, allocations: 7.984 kB / 0.7008 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009773/0.6753, allocations: 4.935 MB / 0.7056 GB, free: 9.938 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/0.6753, allocations: 0 / 0.7056 GB, free: 9.938 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009739/0.6763, allocations: 195.8 kB / 0.7058 GB, free: 9.746 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00068/0.677, allocations: 228.6 kB / 0.706 GB, free: 9.52 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.481e-05/0.677, allocations: 24 kB / 0.7061 GB, free: 9.496 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003081/0.6801, allocations: 2.577 MB / 0.7086 GB, free: 6.805 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.6801, allocations: 7.922 kB / 0.7086 GB, free: 6.797 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005589/0.6857, allocations: 3.729 MB / 0.7122 GB, free: 3.035 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009373/0.6866, allocations: 293.7 kB / 0.7125 GB, free: 2.746 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002973/0.6869, allocations: 20 kB / 0.7125 GB, free: 2.727 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.688, allocations: 67.91 kB / 0.7126 GB, free: 2.66 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.6882, allocations: 72.41 kB / 0.7127 GB, free: 2.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.771e-05/0.6883, allocations: 44.05 kB / 0.7127 GB, free: 2.547 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003855/0.6921, allocations: 2.269 MB / 0.7149 GB, free: 296 kB / 0.545 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6921, allocations: 0 / 0.7149 GB, free: 296 kB / 0.545 GB Notification: Performance of remove unused functions: time 0.004283/0.6964, allocations: 0.7655 MB / 0.7157 GB, free: 15.52 MB / 0.5606 GB 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 (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.006216/0.7026, allocations: 4.343 MB / 0.7199 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007067/0.7097, allocations: 3.795 MB / 0.7236 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/0.7097, allocations: 0 / 0.7236 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001551/0.7113, allocations: 0.9943 MB / 0.7246 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002248/0.7135, allocations: 366 kB / 0.7249 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3113/1.025, allocations: 36.58 MB / 0.7607 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002065/1.027, allocations: 2.088 MB / 0.7627 GB, free: 129.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003346/1.03, allocations: 1.696 MB / 0.7643 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/1.032, allocations: 1.401 MB / 0.7657 GB, free: 126.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.312e-06/1.032, allocations: 7.938 kB / 0.7657 GB, free: 126.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09005/1.122, allocations: 53.71 MB / 0.8182 GB, free: 73.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.24/16.36, allocations: 4 kB / 0.8182 GB, free: 73.49 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Distance1.distance in file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv. Warning: Get data of variable Distance1.distance from file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.407597274985164]