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.001618/0.001618, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002004/0.002004, allocations: 212.7 kB / 23.73 MB, free: 4.164 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.589/1.589, allocations: 230.5 MB / 257.4 MB, free: 7.777 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.2337/0.2337, allocations: 46.95 MB / 360.8 MB, free: 3.895 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.002451/0.002451, allocations: 83.88 kB / 0.4962 GB, free: 7.516 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.3434, allocations: 66.08 MB / 0.5607 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01106/0.3545, allocations: 7.927 MB / 0.5684 GB, free: 12.03 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007678/0.3621, allocations: 3.357 MB / 0.5717 GB, free: 8.664 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001755/0.3639, allocations: 59.69 kB / 0.5718 GB, free: 8.605 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003619/0.3675, allocations: 1.623 MB / 0.5733 GB, free: 6.977 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004554/0.3721, allocations: 1.584 MB / 0.5749 GB, free: 5.387 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001389/0.3735, allocations: 0.5653 MB / 0.5754 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005664/0.3791, allocations: 3.58 MB / 0.5789 GB, free: 1.234 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003125/0.3823, allocations: 1.809 MB / 0.5807 GB, free: 15.37 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001874/0.3841, allocations: 1.125 MB / 0.5818 GB, free: 14.24 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002291/0.3864, allocations: 1.592 MB / 0.5834 GB, free: 12.64 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004674/0.3869, allocations: 220 kB / 0.5836 GB, free: 12.43 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001948/0.3888, allocations: 0.9946 MB / 0.5845 GB, free: 11.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001578/0.3904, allocations: 1.453 MB / 0.586 GB, free: 9.973 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001456/0.3919, allocations: 1.238 MB / 0.5872 GB, free: 8.727 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00699/0.3989, allocations: 5.599 MB / 0.5926 GB, free: 3.105 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.3989, allocations: 0 / 0.5926 GB, free: 3.105 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.3989, allocations: 3.938 kB / 0.5926 GB, free: 3.102 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001117/0.399, allocations: 0 / 0.5926 GB, free: 3.102 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.008847/0.4078, allocations: 3.805 MB / 0.5964 GB, free: 15.24 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.4079, allocations: 8.031 kB / 0.5964 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007577/0.4086, allocations: 0.5462 MB / 0.5969 GB, free: 14.67 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08597/0.4946, allocations: 6.943 MB / 0.6037 GB, free: 7.719 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006474/0.5011, allocations: 2.345 MB / 0.606 GB, free: 5.336 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001623/0.5012, allocations: 165.2 kB / 0.6061 GB, free: 5.172 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006497/0.5019, allocations: 215.8 kB / 0.6063 GB, free: 4.961 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01225/0.5141, allocations: 7.393 MB / 0.6135 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/0.5143, allocations: 35.7 kB / 0.6136 GB, free: 12.89 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003168/0.5146, allocations: 111.9 kB / 0.6137 GB, free: 12.78 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002922/0.5175, allocations: 1.542 MB / 0.6152 GB, free: 11.23 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01191/0.5294, allocations: 6.17 MB / 0.6212 GB, free: 5.055 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04102/0.5704, allocations: 28.74 MB / 0.6493 GB, free: 7.391 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004618/0.575, allocations: 1.64 MB / 0.6509 GB, free: 5.719 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001544/0.5766, allocations: 0.9846 MB / 0.6519 GB, free: 4.723 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003143/0.5769, allocations: 88.31 kB / 0.6519 GB, free: 4.637 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.868e-05/0.577, allocations: 46.94 kB / 0.652 GB, free: 4.582 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 6.011e-06/0.577, allocations: 0 / 0.652 GB, free: 4.582 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03578/0.6127, allocations: 10.95 MB / 0.6627 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.6129, allocations: 192.6 kB / 0.6629 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00669/0.6196, allocations: 3.815 MB / 0.6666 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002383/0.6198, allocations: 57.62 kB / 0.6666 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00251/0.6223, allocations: 2.659 MB / 0.6692 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008612/0.6232, allocations: 0.5468 MB / 0.6698 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001985/0.6252, allocations: 1.056 MB / 0.6708 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.6253, allocations: 301.1 kB / 0.6711 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002768/0.6281, allocations: 1.626 MB / 0.6727 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005983/0.6341, allocations: 5.02 MB / 0.6776 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01032/0.6444, allocations: 7.178 MB / 0.6846 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001854/0.6446, allocations: 32 kB / 0.6846 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01318/0.6577, allocations: 6.571 MB / 0.691 GB, free: 9.047 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001856/0.6579, allocations: 56.94 kB / 0.6911 GB, free: 8.992 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002553/0.6582, allocations: 119.9 kB / 0.6912 GB, free: 8.875 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/0.6593, allocations: 404.5 kB / 0.6916 GB, free: 8.477 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003859/0.6631, allocations: 1.185 MB / 0.6927 GB, free: 7.289 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004463/0.6676, allocations: 3.182 MB / 0.6959 GB, free: 3.992 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003946/0.6715, allocations: 287.7 kB / 0.6961 GB, free: 3.711 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008574/0.6724, allocations: 320 kB / 0.6964 GB, free: 3.398 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.003422/0.6758, allocations: 1.709 MB / 0.6981 GB, free: 1.676 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008101/0.6766, allocations: 317.9 kB / 0.6984 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003549/0.6802, allocations: 1.71 MB / 0.7001 GB, free: 15.64 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.02e-05/0.6802, allocations: 16 kB / 0.7001 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.6802, allocations: 0 / 0.7001 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/0.6802, allocations: 7.984 kB / 0.7001 GB, free: 15.61 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/0.6911, allocations: 4.919 MB / 0.7049 GB, free: 10.62 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.6911, allocations: 0 / 0.7049 GB, free: 10.62 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009892/0.6921, allocations: 195.7 kB / 0.7051 GB, free: 10.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000705/0.6928, allocations: 236.5 kB / 0.7053 GB, free: 10.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/0.6929, allocations: 20 kB / 0.7053 GB, free: 10.18 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003149/0.696, allocations: 2.573 MB / 0.7078 GB, free: 7.492 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.696, allocations: 0 / 0.7078 GB, free: 7.492 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005755/0.7018, allocations: 3.736 MB / 0.7115 GB, free: 3.723 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.7028, allocations: 293.7 kB / 0.7118 GB, free: 3.434 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007976/0.7036, allocations: 20 kB / 0.7118 GB, free: 3.414 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001537/0.7052, allocations: 67.91 kB / 0.7119 GB, free: 3.348 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.7053, allocations: 72.41 kB / 0.7119 GB, free: 3.277 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.912e-05/0.7054, allocations: 39.98 kB / 0.712 GB, free: 3.238 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004503/0.7099, allocations: 2.273 MB / 0.7142 GB, free: 0.9766 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.7099, allocations: 288 / 0.7142 GB, free: 0.9766 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004473/0.7144, allocations: 0.7577 MB / 0.7149 GB, free: 224 kB / 0.545 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.006816/0.7212, allocations: 4.357 MB / 0.7192 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006939/0.7282, allocations: 3.791 MB / 0.7229 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/0.7282, allocations: 4 kB / 0.7229 GB, free: 8.039 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001679/0.7299, allocations: 0.987 MB / 0.7239 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002787/0.7327, allocations: 377.3 kB / 0.7242 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3098/1.042, allocations: 36.59 MB / 0.7599 GB, free: 132.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002/1.044, allocations: 2.078 MB / 0.762 GB, free: 130.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00307/1.047, allocations: 1.7 MB / 0.7636 GB, free: 128.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00141/1.049, allocations: 1.405 MB / 0.765 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.763e-06/1.049, allocations: 0 / 0.765 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09553/1.144, allocations: 53.62 MB / 0.8174 GB, free: 74.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.24/16.38, allocations: 8.047 kB / 0.8174 GB, free: 74.2 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.64091888582334]