Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001655/0.001655, allocations: 111.1 kB / 20.44 MB, free: 1.344 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.001651/0.001651, allocations: 214.6 kB / 23.73 MB, free: 4.523 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.451/1.451, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2111/0.2111, allocations: 44.94 MB / 358.8 MB, free: 6.168 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 67.89 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3361, allocations: 65.48 MB / 0.557 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01189/0.348, allocations: 7.917 MB / 0.5647 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008261/0.3563, allocations: 3.357 MB / 0.568 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001793/0.3581, allocations: 55.75 kB / 0.568 GB, free: 12.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004055/0.3621, allocations: 1.635 MB / 0.5696 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004833/0.367, allocations: 1.588 MB / 0.5712 GB, free: 8.941 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001724/0.3687, allocations: 0.5653 MB / 0.5717 GB, free: 8.375 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006223/0.3749, allocations: 3.576 MB / 0.5752 GB, free: 4.793 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003335/0.3782, allocations: 1.817 MB / 0.577 GB, free: 2.918 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00249/0.3807, allocations: 1.113 MB / 0.5781 GB, free: 1.801 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00297/0.3837, allocations: 1.592 MB / 0.5796 GB, free: 208 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000919/0.3846, allocations: 220 kB / 0.5798 GB, free: 15.98 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002513/0.3871, allocations: 1.002 MB / 0.5808 GB, free: 14.98 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001946/0.3891, allocations: 1.449 MB / 0.5822 GB, free: 13.53 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001646/0.3907, allocations: 1.242 MB / 0.5834 GB, free: 12.28 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006818/0.3975, allocations: 5.591 MB / 0.5889 GB, free: 6.668 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3975, allocations: 0 / 0.5889 GB, free: 6.668 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3976, allocations: 0 / 0.5889 GB, free: 6.668 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001104/0.3977, allocations: 0 / 0.5889 GB, free: 6.668 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.008876/0.4065, allocations: 3.814 MB / 0.5926 GB, free: 2.789 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.4066, allocations: 8.031 kB / 0.5926 GB, free: 2.781 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008204/0.4074, allocations: 0.5423 MB / 0.5932 GB, free: 2.227 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08715/0.4945, allocations: 6.947 MB / 0.6 GB, free: 11.27 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00647/0.501, allocations: 2.341 MB / 0.6022 GB, free: 8.891 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.5012, allocations: 164.5 kB / 0.6024 GB, free: 8.727 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007877/0.502, allocations: 215.8 kB / 0.6026 GB, free: 8.516 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01297/0.5149, allocations: 7.394 MB / 0.6098 GB, free: 496 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001079/0.5151, allocations: 39.64 kB / 0.6099 GB, free: 456 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002936/0.5153, allocations: 115.9 kB / 0.61 GB, free: 340 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00281/0.5182, allocations: 1.542 MB / 0.6115 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0117/0.5299, allocations: 6.166 MB / 0.6175 GB, free: 8.605 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03704/0.5669, allocations: 28.74 MB / 0.6456 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004318/0.5712, allocations: 1.644 MB / 0.6472 GB, free: 9.266 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001458/0.5727, allocations: 0.9846 MB / 0.6481 GB, free: 8.266 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002866/0.573, allocations: 92.25 kB / 0.6482 GB, free: 8.176 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.573, allocations: 39 kB / 0.6483 GB, free: 8.129 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.707e-06/0.573, allocations: 0 / 0.6483 GB, free: 8.129 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03406/0.6071, allocations: 10.96 MB / 0.659 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.6072, allocations: 192.6 kB / 0.6591 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005294/0.6125, allocations: 3.815 MB / 0.6629 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002208/0.6127, allocations: 45.7 kB / 0.6629 GB, free: 9 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002112/0.6148, allocations: 2.671 MB / 0.6655 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006538/0.6155, allocations: 0.539 MB / 0.6661 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001364/0.6168, allocations: 1.06 MB / 0.6671 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.617, allocations: 301.1 kB / 0.6674 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002578/0.6195, allocations: 1.63 MB / 0.669 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005517/0.6251, allocations: 5.016 MB / 0.6739 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009244/0.6343, allocations: 7.172 MB / 0.6809 GB, free: 3.207 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001288/0.6344, allocations: 43.88 kB / 0.6809 GB, free: 3.164 MB / 0.5137 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01347/0.6479, allocations: 6.567 MB / 0.6873 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/0.648, allocations: 56 kB / 0.6874 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000155/0.6482, allocations: 120 kB / 0.6875 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009858/0.6492, allocations: 396.7 kB / 0.6879 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003833/0.653, allocations: 1.189 MB / 0.689 GB, free: 10.83 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004207/0.6572, allocations: 3.186 MB / 0.6921 GB, free: 7.535 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004079/0.6613, allocations: 287.5 kB / 0.6924 GB, free: 7.254 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007558/0.662, allocations: 324 kB / 0.6927 GB, free: 6.938 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.003018/0.665, allocations: 1.705 MB / 0.6944 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006526/0.6657, allocations: 317.9 kB / 0.6947 GB, free: 4.906 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003277/0.669, allocations: 1.71 MB / 0.6964 GB, free: 3.184 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.898e-05/0.669, allocations: 16 kB / 0.6964 GB, free: 3.168 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.669, allocations: 11.94 kB / 0.6964 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.669, allocations: 3.984 kB / 0.6964 GB, free: 3.152 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009589/0.6786, allocations: 4.915 MB / 0.7012 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.288e-05/0.6786, allocations: 4 kB / 0.7012 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.6797, allocations: 191.7 kB / 0.7014 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007231/0.6804, allocations: 232.6 kB / 0.7016 GB, free: 13.74 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.851e-05/0.6805, allocations: 23.98 kB / 0.7016 GB, free: 13.72 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003239/0.6837, allocations: 2.576 MB / 0.7041 GB, free: 11.03 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.6837, allocations: 4.031 kB / 0.7041 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005893/0.6896, allocations: 3.721 MB / 0.7078 GB, free: 7.273 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009711/0.6906, allocations: 293.8 kB / 0.7081 GB, free: 6.984 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003302/0.6909, allocations: 28.12 kB / 0.7081 GB, free: 6.957 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.6921, allocations: 67.84 kB / 0.7082 GB, free: 6.891 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001817/0.6922, allocations: 68.53 kB / 0.7082 GB, free: 6.824 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.6923, allocations: 39.98 kB / 0.7083 GB, free: 6.785 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003904/0.6962, allocations: 2.265 MB / 0.7105 GB, free: 4.531 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.6962, allocations: 0 / 0.7105 GB, free: 4.531 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004198/0.7004, allocations: 0.7616 MB / 0.7112 GB, free: 3.77 MB / 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.006461/0.7069, allocations: 4.357 MB / 0.7155 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006741/0.7136, allocations: 3.79 MB / 0.7192 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.7136, allocations: 0 / 0.7192 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001598/0.7152, allocations: 1.002 MB / 0.7201 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002195/0.7174, allocations: 366.8 kB / 0.7205 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3153/1.033, allocations: 36.59 MB / 0.7562 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001882/1.035, allocations: 2.083 MB / 0.7583 GB, free: 134.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003055/1.038, allocations: 1.692 MB / 0.7599 GB, free: 132.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001363/1.039, allocations: 1.403 MB / 0.7613 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of SimCode: time 9.91e-07/1.039, allocations: 0 / 0.7613 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08373/1.123, allocations: 53.64 MB / 0.8137 GB, free: 78.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.34/16.46, allocations: 11.33 kB / 0.8137 GB, free: 78.2 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 19.80287329806015]