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.001638/0.001638, allocations: 123.4 kB / 17.79 MB, free: 5.281 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.001767/0.001767, allocations: 215.5 kB / 20.75 MB, free: 2.324 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.54/1.54, allocations: 230.5 MB / 254 MB, free: 15.04 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.2198/0.2198, allocations: 46.92 MB / 357 MB, free: 10.21 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.002298/0.002298, allocations: 75.88 kB / 0.491 GB, free: 7.793 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1159, allocations: 66.05 MB / 0.5555 GB, free: 5.609 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01071/0.1266, allocations: 8.956 MB / 0.5642 GB, free: 12.61 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006679/0.1333, allocations: 3.572 MB / 0.5677 GB, free: 9.02 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008793/0.1342, allocations: 55.75 kB / 0.5677 GB, free: 8.965 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003228/0.1374, allocations: 1.686 MB / 0.5694 GB, free: 7.273 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003445/0.1409, allocations: 1.572 MB / 0.5709 GB, free: 5.695 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.1421, allocations: 0.5652 MB / 0.5715 GB, free: 5.129 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004676/0.1467, allocations: 3.575 MB / 0.575 GB, free: 1.547 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002427/0.1492, allocations: 1.872 MB / 0.5768 GB, free: 15.62 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001712/0.1509, allocations: 1.121 MB / 0.5779 GB, free: 14.5 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002262/0.1531, allocations: 1.667 MB / 0.5795 GB, free: 12.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004503/0.1536, allocations: 220 kB / 0.5797 GB, free: 12.61 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001885/0.1555, allocations: 1.139 MB / 0.5808 GB, free: 11.47 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001428/0.1569, allocations: 1.445 MB / 0.5823 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001804/0.1587, allocations: 1.685 MB / 0.5839 GB, free: 8.324 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006481/0.1652, allocations: 5.572 MB / 0.5893 GB, free: 2.73 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1652, allocations: 0 / 0.5893 GB, free: 2.73 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1652, allocations: 0 / 0.5893 GB, free: 2.73 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.192e-05/0.1653, allocations: 4 kB / 0.5893 GB, free: 2.727 MB / 446.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.2406/0.4059, allocations: 3.878 MB / 0.5931 GB, free: 32.51 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.4059, allocations: 11.62 kB / 0.5931 GB, free: 32.51 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001139/0.4071, allocations: 0.5383 MB / 0.5937 GB, free: 32.45 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09227/0.4993, allocations: 6.944 MB / 0.6005 GB, free: 32.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00563/0.505, allocations: 2.405 MB / 0.6028 GB, free: 31.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.5051, allocations: 162.4 kB / 0.603 GB, free: 31.55 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000583/0.5057, allocations: 218 kB / 0.6032 GB, free: 31.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01095/0.5166, allocations: 7.342 MB / 0.6103 GB, free: 27.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.062e-05/0.5167, allocations: 47.88 kB / 0.6104 GB, free: 27.63 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002966/0.517, allocations: 101.8 kB / 0.6105 GB, free: 27.59 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00236/0.5194, allocations: 1.541 MB / 0.612 GB, free: 26.98 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009542/0.5289, allocations: 6.184 MB / 0.618 GB, free: 23.85 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02646/0.5554, allocations: 29.91 MB / 0.6472 GB, free: 9.227 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004748/0.5601, allocations: 2.099 MB / 0.6493 GB, free: 6.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.5616, allocations: 0.9846 MB / 0.6502 GB, free: 5.984 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003936/0.562, allocations: 323.5 kB / 0.6505 GB, free: 5.613 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.139e-05/0.562, allocations: 49.53 kB / 0.6506 GB, free: 5.559 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 3.046e-06/0.562, allocations: 4 kB / 0.6506 GB, free: 5.555 MB / 462.1 MB Notification: Performance of matching and sorting (n=132): time 0.03603/0.598, allocations: 11.05 MB / 0.6614 GB, free: 10.41 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/0.5982, allocations: 192.6 kB / 0.6616 GB, free: 10.18 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00592/0.6041, allocations: 3.606 MB / 0.6651 GB, free: 6.578 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002612/0.6044, allocations: 49.64 kB / 0.6651 GB, free: 6.523 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002528/0.6069, allocations: 2.667 MB / 0.6678 GB, free: 3.832 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009395/0.6078, allocations: 0.5506 MB / 0.6683 GB, free: 3.277 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001535/0.6094, allocations: 1.057 MB / 0.6693 GB, free: 2.211 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.6095, allocations: 301.1 kB / 0.6696 GB, free: 1.914 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002729/0.6122, allocations: 1.626 MB / 0.6712 GB, free: 288 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006011/0.6182, allocations: 4.973 MB / 0.6761 GB, free: 9.621 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009213/0.6274, allocations: 7.181 MB / 0.6831 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-05/0.6275, allocations: 32 kB / 0.6831 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.0132/0.6407, allocations: 6.567 MB / 0.6895 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.006e-05/0.6408, allocations: 52.19 kB / 0.6896 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001521/0.641, allocations: 124.8 kB / 0.6897 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.642, allocations: 397.9 kB / 0.6901 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003877/0.6459, allocations: 1.189 MB / 0.6912 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004321/0.6502, allocations: 3.321 MB / 0.6945 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004928/0.6551, allocations: 287.7 kB / 0.6947 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009033/0.656, allocations: 328 kB / 0.695 GB, free: 4.359 MB / 0.4981 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.002967/0.659, allocations: 1.693 MB / 0.6967 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007428/0.6598, allocations: 317.8 kB / 0.697 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003451/0.6632, allocations: 1.721 MB / 0.6987 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.441e-05/0.6632, allocations: 16 kB / 0.6987 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.6632, allocations: 0 / 0.6987 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/0.6633, allocations: 7.984 kB / 0.6987 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/0.6735, allocations: 5.243 MB / 0.7038 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/0.6735, allocations: 2.688 kB / 0.7038 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.6746, allocations: 191.8 kB / 0.704 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008046/0.6754, allocations: 232.6 kB / 0.7042 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001398/0.6755, allocations: 27.98 kB / 0.7043 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003414/0.6789, allocations: 2.692 MB / 0.7069 GB, free: 7.965 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.6789, allocations: 4.047 kB / 0.7069 GB, free: 7.961 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005808/0.6847, allocations: 3.732 MB / 0.7105 GB, free: 4.199 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008268/0.6856, allocations: 370.9 kB / 0.7109 GB, free: 3.816 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003554/0.6859, allocations: 16 kB / 0.7109 GB, free: 3.801 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.6871, allocations: 63.92 kB / 0.711 GB, free: 3.738 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002325/0.6873, allocations: 72.5 kB / 0.711 GB, free: 3.668 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.6874, allocations: 44.03 kB / 0.7111 GB, free: 3.625 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003683/0.6911, allocations: 2.261 MB / 0.7133 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6911, allocations: 0 / 0.7133 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003973/0.6951, allocations: 0.7616 MB / 0.714 GB, free: 0.6133 MB / 0.5137 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.006521/0.7016, allocations: 4.354 MB / 0.7183 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007011/0.7086, allocations: 3.797 MB / 0.722 GB, free: 8.434 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.7086, allocations: 0 / 0.722 GB, free: 8.434 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00171/0.7103, allocations: 0.9977 MB / 0.723 GB, free: 7.422 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002495/0.7128, allocations: 371.5 kB / 0.7233 GB, free: 7.062 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05828/0.7711, allocations: 36.53 MB / 0.759 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003512/0.7746, allocations: 2.642 MB / 0.7616 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004314/0.7789, allocations: 1.703 MB / 0.7632 GB, free: 9.125 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002409/0.7813, allocations: 1.401 MB / 0.7646 GB, free: 7.723 MB / 0.5762 GB Notification: Performance of SimCode: time 1.182e-06/0.7813, allocations: 0 / 0.7646 GB, free: 7.723 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1104/0.8918, allocations: 53.72 MB / 0.8171 GB, free: 2.23 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.8/24.69, allocations: 3.984 kB / 0.8171 GB, free: 2.227 MB / 0.6231 GB " [Timeout remaining time 635] (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: 27.9113038899377]