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.001381/0.001381, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001454/0.001454, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.504/1.504, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.2395/0.2395, allocations: 46.96 MB / 361.7 MB, free: 4.066 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.002177/0.002177, allocations: 75.89 kB / 0.4969 GB, free: 7.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3471, allocations: 66.03 MB / 0.5614 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01027/0.3574, allocations: 7.869 MB / 0.569 GB, free: 12.36 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007171/0.3646, allocations: 3.352 MB / 0.5723 GB, free: 9 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001506/0.3661, allocations: 59.69 kB / 0.5724 GB, free: 8.941 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003806/0.3699, allocations: 1.631 MB / 0.574 GB, free: 7.305 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004137/0.374, allocations: 1.584 MB / 0.5755 GB, free: 5.715 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001438/0.3755, allocations: 0.5653 MB / 0.5761 GB, free: 5.148 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005616/0.3811, allocations: 3.58 MB / 0.5796 GB, free: 1.562 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002924/0.384, allocations: 1.821 MB / 0.5813 GB, free: 15.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002053/0.3861, allocations: 1.117 MB / 0.5824 GB, free: 14.56 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002715/0.3888, allocations: 1.666 MB / 0.5841 GB, free: 12.89 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009035/0.3897, allocations: 216 kB / 0.5843 GB, free: 12.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002651/0.3923, allocations: 1.018 MB / 0.5853 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002229/0.3946, allocations: 1.449 MB / 0.5867 GB, free: 10.21 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002096/0.3967, allocations: 1.25 MB / 0.5879 GB, free: 8.949 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007303/0.404, allocations: 5.584 MB / 0.5933 GB, free: 3.344 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.404, allocations: 0 / 0.5933 GB, free: 3.344 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.404, allocations: 0 / 0.5933 GB, free: 3.344 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001703/0.4041, allocations: 4 kB / 0.5933 GB, free: 3.34 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.009251/0.4134, allocations: 3.814 MB / 0.5971 GB, free: 15.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.4134, allocations: 12.03 kB / 0.5971 GB, free: 15.46 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001024/0.4135, allocations: 72.39 kB / 0.5971 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007816/0.4143, allocations: 0.5423 MB / 0.5977 GB, free: 14.83 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08031/0.4946, allocations: 6.943 MB / 0.6045 GB, free: 7.875 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00593/0.5006, allocations: 2.341 MB / 0.6067 GB, free: 5.496 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/0.5007, allocations: 168.2 kB / 0.6069 GB, free: 5.328 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000572/0.5013, allocations: 219.8 kB / 0.6071 GB, free: 5.113 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01226/0.5136, allocations: 7.394 MB / 0.6143 GB, free: 13.08 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000101/0.5137, allocations: 35.7 kB / 0.6144 GB, free: 13.04 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003194/0.514, allocations: 111.9 kB / 0.6145 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002653/0.5166, allocations: 1.535 MB / 0.616 GB, free: 11.39 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01239/0.529, allocations: 6.19 MB / 0.622 GB, free: 5.195 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03767/0.5667, allocations: 28.74 MB / 0.6501 GB, free: 7.539 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004454/0.5711, allocations: 1.642 MB / 0.6517 GB, free: 5.859 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/0.5727, allocations: 0.9924 MB / 0.6527 GB, free: 4.855 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002725/0.5729, allocations: 84.33 kB / 0.6527 GB, free: 4.773 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.807e-05/0.573, allocations: 43 kB / 0.6528 GB, free: 4.723 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.788e-06/0.573, allocations: 4 kB / 0.6528 GB, free: 4.719 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.0361/0.6091, allocations: 10.95 MB / 0.6635 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001524/0.6093, allocations: 196.6 kB / 0.6637 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005687/0.6149, allocations: 3.614 MB / 0.6672 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002517/0.6152, allocations: 45.7 kB / 0.6672 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002363/0.6176, allocations: 2.671 MB / 0.6698 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007423/0.6183, allocations: 0.5467 MB / 0.6704 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001531/0.6198, allocations: 1.052 MB / 0.6714 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001896/0.62, allocations: 305.1 kB / 0.6717 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002679/0.6227, allocations: 1.63 MB / 0.6733 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006287/0.629, allocations: 5.012 MB / 0.6782 GB, free: 8.84 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009994/0.639, allocations: 7.172 MB / 0.6852 GB, free: 12 kB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001493/0.6391, allocations: 35.98 kB / 0.6852 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01342/0.6525, allocations: 6.572 MB / 0.6916 GB, free: 9.395 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.67e-05/0.6526, allocations: 56 kB / 0.6917 GB, free: 9.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001527/0.6528, allocations: 127.9 kB / 0.6918 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009796/0.6538, allocations: 393.1 kB / 0.6922 GB, free: 8.828 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003869/0.6576, allocations: 1.189 MB / 0.6933 GB, free: 7.637 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004265/0.6619, allocations: 3.186 MB / 0.6965 GB, free: 4.336 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003661/0.6656, allocations: 283.5 kB / 0.6967 GB, free: 4.059 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008017/0.6664, allocations: 332 kB / 0.697 GB, free: 3.734 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.003209/0.6696, allocations: 1.697 MB / 0.6987 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000728/0.6703, allocations: 317.8 kB / 0.699 GB, free: 1.711 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003858/0.6742, allocations: 1.717 MB / 0.7007 GB, free: 15.98 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.305e-05/0.6742, allocations: 12 kB / 0.7007 GB, free: 15.97 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-05/0.6742, allocations: 7.938 kB / 0.7007 GB, free: 15.96 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.882e-05/0.6742, allocations: 7.969 kB / 0.7007 GB, free: 15.95 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01188/0.6861, allocations: 4.921 MB / 0.7055 GB, free: 10.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.6861, allocations: 0 / 0.7055 GB, free: 10.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/0.6872, allocations: 199.7 kB / 0.7057 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000806/0.688, allocations: 224.7 kB / 0.7059 GB, free: 10.54 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/0.6882, allocations: 27.98 kB / 0.7059 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003407/0.6916, allocations: 2.576 MB / 0.7085 GB, free: 7.824 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6916, allocations: 0 / 0.7085 GB, free: 7.824 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005954/0.6975, allocations: 3.736 MB / 0.7121 GB, free: 4.055 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008792/0.6984, allocations: 289.8 kB / 0.7124 GB, free: 3.77 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005869/0.699, allocations: 19.98 kB / 0.7124 GB, free: 3.75 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001406/0.7004, allocations: 71.86 kB / 0.7125 GB, free: 3.68 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.7006, allocations: 68.52 kB / 0.7125 GB, free: 3.613 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.7007, allocations: 39.94 kB / 0.7126 GB, free: 3.574 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004662/0.7054, allocations: 2.265 MB / 0.7148 GB, free: 1.32 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7054, allocations: 0 / 0.7148 GB, free: 1.32 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004582/0.71, allocations: 0.7577 MB / 0.7155 GB, free: 0.5625 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.006831/0.7168, allocations: 4.361 MB / 0.7198 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007332/0.7241, allocations: 3.787 MB / 0.7235 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.7241, allocations: 4 kB / 0.7235 GB, free: 8.383 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001707/0.7258, allocations: 0.9928 MB / 0.7245 GB, free: 7.375 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002836/0.7287, allocations: 367.8 kB / 0.7248 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3131/1.042, allocations: 36.6 MB / 0.7606 GB, free: 132.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001819/1.044, allocations: 2.08 MB / 0.7626 GB, free: 130.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002879/1.046, allocations: 1.697 MB / 0.7642 GB, free: 129.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001345/1.048, allocations: 1.409 MB / 0.7656 GB, free: 127.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.492e-06/1.048, allocations: 0 / 0.7656 GB, free: 127.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0962/1.144, allocations: 55.59 MB / 0.8199 GB, free: 73.06 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.91/26.06, allocations: 8.906 kB / 0.8199 GB, free: 73.05 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: 30.068162034032866]