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.001318/0.001318, allocations: 110.4 kB / 21.1 MB, free: 0.7891 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.001675/0.001675, allocations: 206.2 kB / 24.38 MB, free: 4.203 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.424/1.424, allocations: 230.2 MB / 257.7 MB, free: 8.301 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.2266/0.2266, allocations: 46.89 MB / 361 MB, free: 4.508 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.00343/0.00343, allocations: 79.88 kB / 0.4962 GB, free: 8.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3157, allocations: 66.03 MB / 0.5606 GB, free: 4.73 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01118/0.3269, allocations: 9.069 MB / 0.5695 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007455/0.3344, allocations: 3.602 MB / 0.573 GB, free: 8.008 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001358/0.3357, allocations: 55.75 kB / 0.5731 GB, free: 7.953 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003922/0.3396, allocations: 1.943 MB / 0.575 GB, free: 6.004 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004217/0.3439, allocations: 1.619 MB / 0.5766 GB, free: 4.379 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001362/0.3452, allocations: 0.5731 MB / 0.5771 GB, free: 3.805 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00548/0.3507, allocations: 3.657 MB / 0.5807 GB, free: 144 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002629/0.3533, allocations: 1.804 MB / 0.5824 GB, free: 14.28 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002063/0.3554, allocations: 1.176 MB / 0.5836 GB, free: 13.1 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002556/0.358, allocations: 1.779 MB / 0.5853 GB, free: 11.31 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005387/0.3585, allocations: 244 kB / 0.5856 GB, free: 11.07 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001919/0.3604, allocations: 1.03 MB / 0.5866 GB, free: 10.04 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001609/0.362, allocations: 1.55 MB / 0.5881 GB, free: 8.488 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001857/0.3639, allocations: 1.786 MB / 0.5898 GB, free: 6.691 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006625/0.3705, allocations: 5.844 MB / 0.5955 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3705, allocations: 0 / 0.5955 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3705, allocations: 0 / 0.5955 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.885e-05/0.3706, allocations: 0 / 0.5955 GB, free: 0.8242 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.008279/0.3789, allocations: 4.058 MB / 0.5995 GB, free: 12.69 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.3789, allocations: 8.031 kB / 0.5995 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007681/0.3797, allocations: 0.5792 MB / 0.6001 GB, free: 12.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07763/0.4573, allocations: 6.966 MB / 0.6069 GB, free: 5.113 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006252/0.4636, allocations: 2.472 MB / 0.6093 GB, free: 2.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001713/0.4637, allocations: 180.8 kB / 0.6095 GB, free: 2.41 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008262/0.4646, allocations: 235.8 kB / 0.6097 GB, free: 2.18 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01359/0.4781, allocations: 7.724 MB / 0.6172 GB, free: 9.805 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000116/0.4783, allocations: 39.64 kB / 0.6173 GB, free: 9.766 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003921/0.4786, allocations: 123.9 kB / 0.6174 GB, free: 9.645 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00267/0.4813, allocations: 1.586 MB / 0.6189 GB, free: 8.059 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01274/0.4941, allocations: 6.457 MB / 0.6252 GB, free: 1.59 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0391/0.5332, allocations: 31.34 MB / 0.6558 GB, free: 1.273 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004832/0.538, allocations: 2.34 MB / 0.6581 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.5394, allocations: 0.9877 MB / 0.6591 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003804/0.5398, allocations: 319.2 kB / 0.6594 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.5398, allocations: 42.56 kB / 0.6594 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=104): time 3.757e-06/0.5398, allocations: 0 / 0.6594 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=118): time 0.02192/0.5618, allocations: 8.583 MB / 0.6678 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001378/0.5619, allocations: 200.4 kB / 0.668 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00543/0.5673, allocations: 3.766 MB / 0.6717 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000171/0.5675, allocations: 41.7 kB / 0.6717 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002245/0.5698, allocations: 2.834 MB / 0.6745 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005647/0.5703, allocations: 0.5042 MB / 0.675 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001401/0.5717, allocations: 1.099 MB / 0.6761 GB, free: 12.17 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.5718, allocations: 305.1 kB / 0.6764 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002512/0.5744, allocations: 1.576 MB / 0.6779 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005525/0.5799, allocations: 5.144 MB / 0.6829 GB, free: 3.34 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009575/0.5895, allocations: 7.31 MB / 0.6901 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000107/0.5896, allocations: 40.19 kB / 0.6901 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.0135/0.6031, allocations: 6.649 MB / 0.6966 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.36e-05/0.6032, allocations: 60.19 kB / 0.6966 GB, free: 3.496 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001588/0.6033, allocations: 132 kB / 0.6968 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009911/0.6043, allocations: 400.6 kB / 0.6972 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003877/0.6082, allocations: 1.228 MB / 0.6984 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004313/0.6125, allocations: 3.336 MB / 0.7016 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003559/0.6161, allocations: 283.6 kB / 0.7019 GB, free: 13.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006378/0.6167, allocations: 348 kB / 0.7022 GB, free: 13.65 MB / 0.545 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.002807/0.6195, allocations: 1.768 MB / 0.7039 GB, free: 11.87 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000588/0.6201, allocations: 321.8 kB / 0.7042 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002855/0.6229, allocations: 1.461 MB / 0.7057 GB, free: 10.08 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-05/0.623, allocations: 19.94 kB / 0.7057 GB, free: 10.06 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.623, allocations: 7.922 kB / 0.7057 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.623, allocations: 7.984 kB / 0.7057 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009251/0.6323, allocations: 4.825 MB / 0.7104 GB, free: 5.152 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/0.6323, allocations: 8.031 kB / 0.7104 GB, free: 5.145 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008169/0.6331, allocations: 155.8 kB / 0.7106 GB, free: 4.992 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006852/0.6338, allocations: 228.5 kB / 0.7108 GB, free: 4.766 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.133e-05/0.6339, allocations: 19.98 kB / 0.7108 GB, free: 4.746 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003329/0.6372, allocations: 2.703 MB / 0.7135 GB, free: 1.902 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.6372, allocations: 4.031 kB / 0.7135 GB, free: 1.898 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005007/0.6422, allocations: 3.294 MB / 0.7167 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007824/0.643, allocations: 374.8 kB / 0.717 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003002/0.6433, allocations: 19.98 kB / 0.7171 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009564/0.6442, allocations: 47.95 kB / 0.7171 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.6444, allocations: 72.38 kB / 0.7172 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.51e-05/0.6445, allocations: 31.98 kB / 0.7172 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003802/0.6483, allocations: 2.343 MB / 0.7195 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6483, allocations: 0 / 0.7195 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004293/0.6526, allocations: 0.7656 MB / 0.7202 GB, free: 10.93 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.005503/0.6581, allocations: 3.921 MB / 0.7241 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006726/0.6648, allocations: 3.679 MB / 0.7277 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.6648, allocations: 0 / 0.7277 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.6664, allocations: 0.892 MB / 0.7285 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002262/0.6686, allocations: 382.4 kB / 0.7289 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2693/0.9379, allocations: 37.26 MB / 0.7653 GB, free: 127.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002173/0.9401, allocations: 2.714 MB / 0.7679 GB, free: 125 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002995/0.9431, allocations: 1.703 MB / 0.7696 GB, free: 123.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/0.9445, allocations: 1.456 MB / 0.771 GB, free: 121.8 MB / 0.5606 GB Notification: Performance of SimCode: time 8.32e-07/0.9445, allocations: 4 kB / 0.771 GB, free: 121.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08987/1.034, allocations: 58.8 MB / 0.8284 GB, free: 63.33 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.64/24.67, allocations: 2.5 kB / 0.8284 GB, free: 63.33 MB / 0.5606 GB " [Timeout remaining time 635] (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.0.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: 27.611722942907363]