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.0008338/0.0008338, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008006/0.0008006, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9061/0.9061, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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.2479/0.2479, allocations: 34.25 MB / 294.8 MB, free: 0.6719 MB / 266.7 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 1.804e-06/1.804e-06, allocations: 3.938 kB / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.961e-05/2.141e-05, allocations: 2.281 kB / 442.2 MB, free: 1.574 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.1985/0.1985, allocations: 8.021 MB / 450.2 MB, free: 39.99 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004742/0.2033, allocations: 3.388 MB / 453.6 MB, free: 37.91 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001013/0.2043, allocations: 61.72 kB / 453.6 MB, free: 37.89 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001989/0.2063, allocations: 1.96 MB / 455.6 MB, free: 37.06 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002748/0.209, allocations: 1.661 MB / 457.2 MB, free: 36.31 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008477/0.2099, allocations: 0.6224 MB / 457.9 MB, free: 36.05 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002862/0.2127, allocations: 4.041 MB / 461.9 MB, free: 34.52 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002046/0.2148, allocations: 2.264 MB / 464.2 MB, free: 33.51 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002138/0.2169, allocations: 1.767 MB / 465.9 MB, free: 32.76 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001846/0.2188, allocations: 1.798 MB / 467.7 MB, free: 32.28 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004136/0.2192, allocations: 244.6 kB / 468 MB, free: 32.28 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001306/0.2205, allocations: 1.068 MB / 469 MB, free: 32.08 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008675/0.2213, allocations: 1.61 MB / 470.7 MB, free: 31.41 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008161/0.2222, allocations: 1.036 MB / 471.7 MB, free: 30.9 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004046/0.2262, allocations: 5.934 MB / 477.6 MB, free: 28.88 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.2262, allocations: 4 kB / 477.6 MB, free: 28.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2262, allocations: 0 / 477.6 MB, free: 28.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001258/0.2263, allocations: 7.375 kB / 477.6 MB, free: 28.88 MB / 410.7 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.006707/0.233, allocations: 4.002 MB / 481.6 MB, free: 26.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.2331, allocations: 10.19 kB / 481.6 MB, free: 26.62 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00071/0.2338, allocations: 0.5801 MB / 482.2 MB, free: 26.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03813/0.2719, allocations: 7.178 MB / 489.4 MB, free: 25.74 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004714/0.2767, allocations: 2.238 MB / 491.6 MB, free: 24.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.2768, allocations: 176.8 kB / 491.8 MB, free: 24.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004944/0.2773, allocations: 238.1 kB / 492 MB, free: 24.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009584/0.2869, allocations: 7.78 MB / 499.8 MB, free: 19.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001198/0.287, allocations: 43.78 kB / 499.9 MB, free: 19.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002504/0.2872, allocations: 117.2 kB / 500 MB, free: 19.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001651/0.2889, allocations: 1.592 MB / 0.4898 GB, free: 19.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007925/0.2968, allocations: 6.442 MB / 0.4961 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02573/0.3225, allocations: 30.34 MB / 0.5257 GB, free: 14.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002764/0.3253, allocations: 1.945 MB / 0.5276 GB, free: 12.93 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008614/0.3262, allocations: 0.9826 MB / 0.5286 GB, free: 11.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001853/0.3263, allocations: 99.8 kB / 0.5287 GB, free: 11.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.3264, allocations: 42.5 kB / 0.5287 GB, free: 11.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 4.348e-06/0.3264, allocations: 0 / 0.5287 GB, free: 11.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=118): time 0.01363/0.34, allocations: 8.769 MB / 0.5373 GB, free: 2.977 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/0.3401, allocations: 192.4 kB / 0.5375 GB, free: 2.746 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004052/0.3441, allocations: 4.154 MB / 0.5415 GB, free: 14.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.3443, allocations: 41.7 kB / 0.5416 GB, free: 14.55 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0013/0.3456, allocations: 2.803 MB / 0.5443 GB, free: 11.72 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004206/0.346, allocations: 0.4925 MB / 0.5448 GB, free: 11.22 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008791/0.3469, allocations: 1.08 MB / 0.5458 GB, free: 10.13 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.184e-05/0.347, allocations: 309.3 kB / 0.5461 GB, free: 9.828 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001516/0.3485, allocations: 1.584 MB / 0.5477 GB, free: 8.238 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00301/0.3515, allocations: 5.195 MB / 0.5528 GB, free: 1.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005259/0.3567, allocations: 7.314 MB / 0.5599 GB, free: 8.137 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.019e-05/0.3568, allocations: 41.69 kB / 0.5599 GB, free: 8.098 MB / 474.7 MB Notification: Performance of matching and sorting (n=698) (initialization): time 0.00722/0.364, allocations: 6.647 MB / 0.5664 GB, free: 1.441 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.381e-05/0.3641, allocations: 56 kB / 0.5665 GB, free: 1.387 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001019/0.3642, allocations: 128 kB / 0.5666 GB, free: 1.262 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005738/0.3648, allocations: 396.8 kB / 0.567 GB, free: 0.8711 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002001/0.3668, allocations: 1.228 MB / 0.5682 GB, free: 15.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002584/0.3693, allocations: 3.257 MB / 0.5714 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002443/0.3718, allocations: 315.5 kB / 0.5717 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003225/0.3721, allocations: 347.9 kB / 0.572 GB, free: 11.63 MB / 490.7 MB 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.002018/0.3741, allocations: 1.765 MB / 0.5737 GB, free: 9.852 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004787/0.3746, allocations: 333.7 kB / 0.574 GB, free: 9.523 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001591/0.3762, allocations: 1.461 MB / 0.5755 GB, free: 8.051 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/0.3762, allocations: 19.94 kB / 0.5755 GB, free: 8.031 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.3762, allocations: 4 kB / 0.5755 GB, free: 8.027 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.3762, allocations: 3.984 kB / 0.5755 GB, free: 8.023 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00533/0.3816, allocations: 4.678 MB / 0.5801 GB, free: 3.285 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.3816, allocations: 12.02 kB / 0.5801 GB, free: 3.273 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004054/0.382, allocations: 151.8 kB / 0.5802 GB, free: 3.125 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003834/0.3824, allocations: 224.6 kB / 0.5804 GB, free: 2.902 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.18e-05/0.3824, allocations: 16 kB / 0.5805 GB, free: 2.887 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002042/0.3845, allocations: 2.636 MB / 0.583 GB, free: 140 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.3845, allocations: 8.016 kB / 0.583 GB, free: 132 kB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00297/0.3874, allocations: 3.293 MB / 0.5863 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006649/0.3881, allocations: 325.7 kB / 0.5866 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001854/0.3883, allocations: 19.98 kB / 0.5866 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006007/0.3889, allocations: 79.89 kB / 0.5867 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.389, allocations: 64.31 kB / 0.5867 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-05/0.3891, allocations: 32 kB / 0.5867 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002558/0.3916, allocations: 2.483 MB / 0.5892 GB, free: 9.832 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.21e-07/0.3916, allocations: 0 / 0.5892 GB, free: 9.832 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002807/0.3944, allocations: 0.8788 MB / 0.59 GB, free: 8.953 MB / 0.4948 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.003275/0.3977, allocations: 3.927 MB / 0.5939 GB, free: 4.992 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00415/0.4018, allocations: 3.684 MB / 0.5975 GB, free: 1.316 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4018, allocations: 4 kB / 0.5975 GB, free: 1.312 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008374/0.4027, allocations: 0.881 MB / 0.5983 GB, free: 432 kB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001562/0.4042, allocations: 377.1 kB / 0.5987 GB, free: 68 kB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03986/0.4441, allocations: 37.63 MB / 0.6354 GB, free: 5.051 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001983/0.4461, allocations: 2.166 MB / 0.6376 GB, free: 2.855 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002793/0.4489, allocations: 1.715 MB / 0.6392 GB, free: 1.137 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1794/0.6283, allocations: 1.463 MB / 0.6407 GB, free: 166.4 MB / 0.5417 GB Notification: Performance of SimCode: time 1.272e-06/0.6283, allocations: 0 / 0.6407 GB, free: 166.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08484/0.7132, allocations: 55.85 MB / 0.6952 GB, free: 151.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.517/10.23, allocations: 7.922 kB / 0.6952 GB, free: 151.9 MB / 0.5417 GB " [Timeout remaining time 650] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --stepSize=9.996e-05 --timeout=50 --tolerance=1e-10 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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: 12.48489435389638]