Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 112.2 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002145/0.002145, allocations: 208.4 kB / 24.52 MB, free: 4.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.543/1.543, allocations: 230.6 MB / 258.3 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2525/0.2525, allocations: 46.92 MB / 361.6 MB, free: 4.297 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00213/0.00213, allocations: 67.89 kB / 0.4969 GB, free: 7.934 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3894/0.3915, allocations: 66.02 MB / 0.5614 GB, free: 4.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01254/0.404, allocations: 9.012 MB / 0.5702 GB, free: 11.46 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008697/0.4127, allocations: 3.586 MB / 0.5737 GB, free: 7.863 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002314/0.415, allocations: 59.69 kB / 0.5738 GB, free: 7.805 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005638/0.4207, allocations: 1.69 MB / 0.5754 GB, free: 6.109 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006327/0.427, allocations: 1.576 MB / 0.577 GB, free: 4.527 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002089/0.4291, allocations: 0.5614 MB / 0.5775 GB, free: 3.965 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009367/0.4385, allocations: 3.587 MB / 0.581 GB, free: 380 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005381/0.4439, allocations: 1.821 MB / 0.5828 GB, free: 14.49 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003626/0.4475, allocations: 1.117 MB / 0.5839 GB, free: 13.37 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004257/0.4517, allocations: 1.666 MB / 0.5855 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001174/0.4529, allocations: 220 kB / 0.5857 GB, free: 11.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003365/0.4563, allocations: 1.131 MB / 0.5868 GB, free: 10.35 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002661/0.4589, allocations: 1.457 MB / 0.5882 GB, free: 8.891 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00445/0.4634, allocations: 1.685 MB / 0.5899 GB, free: 7.195 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01167/0.4751, allocations: 5.572 MB / 0.5953 GB, free: 1.602 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.283e-05/0.4751, allocations: 4 kB / 0.5953 GB, free: 1.598 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.4751, allocations: 3.938 kB / 0.5953 GB, free: 1.594 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002879/0.4754, allocations: 0 / 0.5953 GB, free: 1.594 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.01541/0.4908, allocations: 3.806 MB / 0.5991 GB, free: 13.73 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.453e-05/0.4908, allocations: 12.03 kB / 0.5991 GB, free: 13.71 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001604/0.491, allocations: 72.39 kB / 0.5991 GB, free: 13.64 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002188/0.4932, allocations: 0.5384 MB / 0.5997 GB, free: 13.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09155/0.5847, allocations: 6.943 MB / 0.6064 GB, free: 6.137 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007093/0.5918, allocations: 2.333 MB / 0.6087 GB, free: 3.766 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002193/0.592, allocations: 168.1 kB / 0.6089 GB, free: 3.598 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001126/0.5932, allocations: 215.8 kB / 0.6091 GB, free: 3.387 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01564/0.6088, allocations: 7.34 MB / 0.6163 GB, free: 11.42 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001547/0.609, allocations: 43.62 kB / 0.6163 GB, free: 11.38 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007354/0.6097, allocations: 111.9 kB / 0.6164 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003048/0.6127, allocations: 1.534 MB / 0.6179 GB, free: 9.73 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/0.6261, allocations: 6.186 MB / 0.6239 GB, free: 3.535 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04143/0.6676, allocations: 29.78 MB / 0.653 GB, free: 4.828 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004651/0.6722, allocations: 1.645 MB / 0.6546 GB, free: 3.145 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001564/0.6738, allocations: 0.9846 MB / 0.6556 GB, free: 2.148 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003179/0.6741, allocations: 88.3 kB / 0.6557 GB, free: 2.062 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.968e-05/0.6742, allocations: 50.94 kB / 0.6557 GB, free: 2.004 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.467e-06/0.6742, allocations: 0 / 0.6557 GB, free: 2.004 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03764/0.7118, allocations: 10.9 MB / 0.6664 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.7119, allocations: 196.5 kB / 0.6666 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006953/0.7189, allocations: 3.614 MB / 0.6701 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002641/0.7192, allocations: 45.7 kB / 0.6701 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002432/0.7216, allocations: 2.663 MB / 0.6727 GB, free: 452 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008365/0.7224, allocations: 0.5546 MB / 0.6733 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002206/0.7246, allocations: 1.056 MB / 0.6743 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.7248, allocations: 305.1 kB / 0.6746 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003098/0.7279, allocations: 1.626 MB / 0.6762 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006144/0.734, allocations: 4.965 MB / 0.681 GB, free: 6.227 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009766/0.7438, allocations: 7.169 MB / 0.688 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001097/0.7439, allocations: 39.75 kB / 0.6881 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.0129/0.7568, allocations: 6.57 MB / 0.6945 GB, free: 6.785 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.7569, allocations: 56 kB / 0.6945 GB, free: 6.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001667/0.7571, allocations: 120.1 kB / 0.6947 GB, free: 6.613 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/0.7582, allocations: 400.5 kB / 0.695 GB, free: 6.219 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00392/0.7621, allocations: 1.185 MB / 0.6962 GB, free: 5.031 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004632/0.7667, allocations: 3.214 MB / 0.6993 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003752/0.7705, allocations: 279.7 kB / 0.6996 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000771/0.7712, allocations: 332 kB / 0.6999 GB, free: 1.105 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.003322/0.7746, allocations: 1.701 MB / 0.7016 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007399/0.7753, allocations: 313.9 kB / 0.7019 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003803/0.7791, allocations: 1.71 MB / 0.7036 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.466e-05/0.7791, allocations: 20.05 kB / 0.7036 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.7792, allocations: 11.88 kB / 0.7036 GB, free: 13.33 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.786e-05/0.7792, allocations: 7.969 kB / 0.7036 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0111/0.7903, allocations: 5.199 MB / 0.7087 GB, free: 8.039 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.7903, allocations: 3.938 kB / 0.7087 GB, free: 8.035 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.7913, allocations: 195.7 kB / 0.7089 GB, free: 7.844 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007587/0.7921, allocations: 228.7 kB / 0.7091 GB, free: 7.617 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001353/0.7922, allocations: 23.98 kB / 0.7091 GB, free: 7.594 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003367/0.7956, allocations: 2.6 MB / 0.7116 GB, free: 4.875 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.7956, allocations: 3.938 kB / 0.7116 GB, free: 4.871 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006155/0.8018, allocations: 3.735 MB / 0.7153 GB, free: 1.105 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008192/0.8026, allocations: 293.7 kB / 0.7156 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000572/0.8031, allocations: 19.94 kB / 0.7156 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/0.8046, allocations: 71.86 kB / 0.7157 GB, free: 0.7266 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/0.8048, allocations: 68.52 kB / 0.7157 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.8049, allocations: 40.06 kB / 0.7158 GB, free: 0.6211 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004365/0.8093, allocations: 2.261 MB / 0.718 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8093, allocations: 0 / 0.718 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004474/0.8137, allocations: 0.7577 MB / 0.7187 GB, free: 13.61 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.00711/0.8209, allocations: 4.362 MB / 0.723 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007457/0.8283, allocations: 3.79 MB / 0.7267 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/0.8283, allocations: 4 kB / 0.7267 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001835/0.8302, allocations: 0.9861 MB / 0.7276 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002824/0.833, allocations: 378.9 kB / 0.728 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2893/1.122, allocations: 36.6 MB / 0.7637 GB, free: 130.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002556/1.125, allocations: 2.631 MB / 0.7663 GB, free: 128.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003337/1.128, allocations: 1.703 MB / 0.768 GB, free: 126.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002039/1.13, allocations: 1.397 MB / 0.7693 GB, free: 125.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.282e-06/1.13, allocations: 4 kB / 0.7693 GB, free: 125.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1032/1.233, allocations: 57.97 MB / 0.8259 GB, free: 67.62 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.53/25.77, allocations: 14.25 kB / 0.826 GB, free: 67.61 MB / 0.5606 GB " [Timeout remaining time 634] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/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_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 29.80401472200174]