Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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.001405/0.001405, 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.001568/0.001568, allocations: 213.6 kB / 23.73 MB, free: 4.16 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.513/1.513, allocations: 230.5 MB / 257.4 MB, free: 7.781 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.2429/0.2429, allocations: 46.96 MB / 360.8 MB, free: 3.914 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.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",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.4961 GB, free: 7.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3368, allocations: 66.08 MB / 0.5607 GB, free: 4.055 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01109/0.3479, allocations: 8.021 MB / 0.5685 GB, free: 12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008287/0.3562, allocations: 3.388 MB / 0.5718 GB, free: 8.598 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001527/0.3578, allocations: 59.75 kB / 0.5719 GB, free: 8.539 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004277/0.362, allocations: 1.861 MB / 0.5737 GB, free: 6.672 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004964/0.367, allocations: 1.634 MB / 0.5753 GB, free: 5.035 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001709/0.3687, allocations: 0.5692 MB / 0.5759 GB, free: 4.465 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005768/0.3745, allocations: 3.658 MB / 0.5794 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00372/0.3782, allocations: 1.991 MB / 0.5814 GB, free: 14.75 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002213/0.3804, allocations: 1.187 MB / 0.5825 GB, free: 13.55 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002994/0.3834, allocations: 1.693 MB / 0.5842 GB, free: 11.86 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008089/0.3842, allocations: 240 kB / 0.5844 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002341/0.3865, allocations: 1.014 MB / 0.5854 GB, free: 10.61 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00207/0.3886, allocations: 1.554 MB / 0.5869 GB, free: 9.047 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002594/0.3912, allocations: 1.32 MB / 0.5882 GB, free: 7.719 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007771/0.399, allocations: 5.887 MB / 0.594 GB, free: 1.809 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.399, allocations: 0 / 0.594 GB, free: 1.809 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.399, allocations: 0 / 0.594 GB, free: 1.809 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001306/0.3991, allocations: 8 kB / 0.594 GB, free: 1.801 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.00928/0.4084, allocations: 3.983 MB / 0.5979 GB, free: 13.76 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.4084, allocations: 8.031 kB / 0.5979 GB, free: 13.75 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007681/0.4092, allocations: 0.5753 MB / 0.5984 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08488/0.4941, allocations: 6.97 MB / 0.6052 GB, free: 6.184 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006882/0.501, allocations: 2.4 MB / 0.6076 GB, free: 3.746 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.5011, allocations: 180.8 kB / 0.6077 GB, free: 3.566 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006509/0.5018, allocations: 239.8 kB / 0.608 GB, free: 3.332 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01267/0.5145, allocations: 7.778 MB / 0.6156 GB, free: 10.89 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000127/0.5146, allocations: 43.62 kB / 0.6156 GB, free: 10.85 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003342/0.5149, allocations: 119.9 kB / 0.6157 GB, free: 10.73 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002702/0.5176, allocations: 1.578 MB / 0.6173 GB, free: 9.148 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01222/0.5299, allocations: 6.449 MB / 0.6236 GB, free: 2.691 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03966/0.5695, allocations: 30.15 MB / 0.653 GB, free: 3.559 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004719/0.5742, allocations: 1.885 MB / 0.6549 GB, free: 1.637 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001461/0.5757, allocations: 0.9755 MB / 0.6558 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002677/0.576, allocations: 91.88 kB / 0.6559 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/0.576, allocations: 42.56 kB / 0.6559 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.519e-06/0.576, allocations: 0 / 0.6559 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02274/0.5988, allocations: 8.445 MB / 0.6642 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/0.5989, allocations: 188.4 kB / 0.6644 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006626/0.6055, allocations: 3.978 MB / 0.6682 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.6057, allocations: 41.7 kB / 0.6683 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002436/0.6081, allocations: 2.83 MB / 0.671 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007138/0.6088, allocations: 0.5041 MB / 0.6715 GB, free: 404 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001994/0.6108, allocations: 1.103 MB / 0.6726 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.611, allocations: 301.1 kB / 0.6729 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002609/0.6136, allocations: 1.584 MB / 0.6745 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005757/0.6193, allocations: 5.195 MB / 0.6795 GB, free: 6.383 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009481/0.6288, allocations: 7.319 MB / 0.6867 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001479/0.629, allocations: 36 kB / 0.6867 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01311/0.6421, allocations: 6.646 MB / 0.6932 GB, free: 6.598 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001492/0.6422, allocations: 60 kB / 0.6933 GB, free: 6.539 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001987/0.6424, allocations: 124 kB / 0.6934 GB, free: 6.418 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/0.6435, allocations: 405.3 kB / 0.6938 GB, free: 6.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003968/0.6475, allocations: 1.224 MB / 0.695 GB, free: 4.793 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004497/0.652, allocations: 3.213 MB / 0.6981 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003998/0.656, allocations: 291.5 kB / 0.6984 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008368/0.6568, allocations: 336 kB / 0.6987 GB, free: 0.8555 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (663): * Single equations (assignments): 659 * 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.003293/0.6601, allocations: 1.779 MB / 0.7004 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007916/0.6609, allocations: 317.8 kB / 0.7007 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00297/0.6639, allocations: 1.461 MB / 0.7022 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.333e-05/0.6639, allocations: 15.98 kB / 0.7022 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/0.6639, allocations: 11.92 kB / 0.7022 GB, free: 13.24 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.6639, allocations: 7.984 kB / 0.7022 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/0.6744, allocations: 4.594 MB / 0.7067 GB, free: 8.586 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.6744, allocations: 7.938 kB / 0.7067 GB, free: 8.578 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007795/0.6752, allocations: 155.7 kB / 0.7068 GB, free: 8.426 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006804/0.6759, allocations: 224.7 kB / 0.707 GB, free: 8.203 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-05/0.676, allocations: 20 kB / 0.7071 GB, free: 8.184 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00331/0.6793, allocations: 2.576 MB / 0.7096 GB, free: 5.492 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.336e-06/0.6793, allocations: 7.969 kB / 0.7096 GB, free: 5.484 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005201/0.6845, allocations: 3.293 MB / 0.7128 GB, free: 2.164 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.6855, allocations: 301.7 kB / 0.7131 GB, free: 1.867 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006119/0.6861, allocations: 16 kB / 0.7131 GB, free: 1.852 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001378/0.6875, allocations: 55.92 kB / 0.7132 GB, free: 1.797 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.6877, allocations: 68.25 kB / 0.7132 GB, free: 1.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.562e-05/0.6878, allocations: 39.98 kB / 0.7133 GB, free: 1.691 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004616/0.6924, allocations: 2.347 MB / 0.7156 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.6924, allocations: 0 / 0.7156 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004929/0.6973, allocations: 0.7655 MB / 0.7163 GB, free: 14.59 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.00606/0.7034, allocations: 3.908 MB / 0.7201 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006472/0.7098, allocations: 3.668 MB / 0.7237 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.7099, allocations: 0 / 0.7237 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001583/0.7114, allocations: 0.9001 MB / 0.7246 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003746/0.7152, allocations: 383.7 kB / 0.7249 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3156/1.031, allocations: 37.26 MB / 0.7613 GB, free: 130.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002073/1.033, allocations: 2.161 MB / 0.7634 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003211/1.036, allocations: 1.706 MB / 0.7651 GB, free: 126.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001575/1.038, allocations: 1.452 MB / 0.7665 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.032e-06/1.038, allocations: 0 / 0.7665 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09143/1.129, allocations: 54.33 MB / 0.8196 GB, free: 71.16 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.58/16.71, allocations: 4 kB / 0.8196 GB, free: 71.15 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 9.996e-05 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2_res.csv. Warning: Get data of variable distance1.distance from file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.csv failed! Error: Could not read variable distance2.distance in file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.csv. Warning: Get data of variable distance2.distance from file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.85107521014288]