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.001191/0.001191, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001234/0.001234, allocations: 162.2 kB / 25.61 MB, free: 8.879 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.9776/0.9776, allocations: 177 MB / 205.9 MB, free: 4.414 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.15/0.15, allocations: 34.88 MB / 297.4 MB, free: 13.32 MB / 282.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: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 380 MB, free: 22.73 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.213e-05/3.418e-05, allocations: 3.156 kB / 380 MB, free: 22.73 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.006899/0.006933, allocations: 8.599 MB / 388.6 MB, free: 14.1 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006635/0.01357, allocations: 3.463 MB / 392.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001578/0.01515, allocations: 55.75 kB / 392.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00222/0.01737, allocations: 2.032 MB / 394.2 MB, free: 8.531 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003094/0.02046, allocations: 1.68 MB / 395.8 MB, free: 6.844 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009873/0.02145, allocations: 0.6197 MB / 396.5 MB, free: 6.223 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003622/0.02507, allocations: 4.07 MB / 400.5 MB, free: 2.148 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002067/0.02714, allocations: 2.323 MB / 402.8 MB, free: 15.77 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002768/0.0299, allocations: 2.273 MB / 405.1 MB, free: 13.49 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002402/0.03231, allocations: 1.8 MB / 406.9 MB, free: 11.69 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006049/0.03291, allocations: 244 kB / 407.2 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001783/0.03469, allocations: 1.069 MB / 408.2 MB, free: 10.38 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001368/0.03606, allocations: 1.617 MB / 409.8 MB, free: 8.754 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001701/0.03776, allocations: 0.9695 MB / 410.8 MB, free: 7.781 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0048/0.04256, allocations: 3.885 MB / 414.7 MB, free: 3.883 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.04257, allocations: 0 / 414.7 MB, free: 3.883 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.04257, allocations: 4 kB / 414.7 MB, free: 3.879 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001689/0.04274, allocations: 0 / 414.7 MB, free: 3.879 MB / 330.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.006695/0.04944, allocations: 4.092 MB / 418.8 MB, free: 15.72 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.04949, allocations: 12.03 kB / 418.8 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006873/0.05636, allocations: 1.813 MB / 420.6 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002437/0.0588, allocations: 1.633 MB / 422.3 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.794e-05/0.05889, allocations: 176.8 kB / 422.4 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002783/0.05917, allocations: 240.2 kB / 422.7 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00488/0.06405, allocations: 4.495 MB / 427.2 MB, free: 6.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-05/0.06412, allocations: 35.7 kB / 427.2 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002161/0.06434, allocations: 115.9 kB / 427.3 MB, free: 6.281 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001145/0.06548, allocations: 1.383 MB / 428.7 MB, free: 4.898 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00332/0.0688, allocations: 1.904 MB / 430.6 MB, free: 2.977 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0245/0.0933, allocations: 36.44 MB / 467 MB, free: 13.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00179/0.09509, allocations: 0.7519 MB / 467.8 MB, free: 12.47 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002651/0.09536, allocations: 231.1 kB / 468 MB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002928/0.09829, allocations: 2.368 MB / 470.4 MB, free: 9.828 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.09833, allocations: 49.56 kB / 470.4 MB, free: 9.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=82): time 2.615e-06/0.09833, allocations: 4 kB / 470.4 MB, free: 9.766 MB / 394.7 MB Notification: Performance of matching and sorting (n=91): time 0.006308/0.1046, allocations: 2.698 MB / 473.1 MB, free: 7.027 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.1047, allocations: 195.7 kB / 473.3 MB, free: 6.793 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002956/0.1077, allocations: 3.336 MB / 476.7 MB, free: 3.434 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.691e-05/0.1077, allocations: 37.7 kB / 476.7 MB, free: 3.391 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001515/0.1092, allocations: 3.083 MB / 479.8 MB, free: 284 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003374/0.1096, allocations: 437.3 kB / 480.2 MB, free: 15.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009705/0.1105, allocations: 1.242 MB / 481.4 MB, free: 14.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.1107, allocations: 480.8 kB / 481.9 MB, free: 14.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007375/0.1114, allocations: 454.6 kB / 482.4 MB, free: 13.67 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003011/0.1144, allocations: 6.049 MB / 488.4 MB, free: 5.027 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004592/0.119, allocations: 7.058 MB / 495.5 MB, free: 11.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.553e-05/0.1191, allocations: 44 kB / 495.5 MB, free: 11.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.005443/0.1245, allocations: 4.387 MB / 499.9 MB, free: 6.992 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.187e-05/0.1246, allocations: 64 kB / 500 MB, free: 6.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000117/0.1247, allocations: 132 kB / 0.4884 GB, free: 6.801 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003374/0.125, allocations: 212.4 kB / 0.4886 GB, free: 6.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/0.127, allocations: 1.236 MB / 0.4898 GB, free: 5.352 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/0.1281, allocations: 1.978 MB / 0.4917 GB, free: 3.262 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002205/0.1303, allocations: 263.8 kB / 0.492 GB, free: 3.004 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000251/0.1305, allocations: 308 kB / 0.4923 GB, free: 2.703 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * 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 (689): * Single equations (assignments): 685 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008707/0.1314, allocations: 0.6262 MB / 0.4929 GB, free: 2.062 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003133/0.1317, allocations: 302.1 kB / 0.4932 GB, free: 1.766 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005579/0.1323, allocations: 491.4 kB / 0.4936 GB, free: 1.27 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.1323, allocations: 15.98 kB / 0.4936 GB, free: 1.254 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1323, allocations: 4 kB / 0.4936 GB, free: 1.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1323, allocations: 3.938 kB / 0.4936 GB, free: 1.246 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1652/0.2975, allocations: 3.014 MB / 0.4966 GB, free: 118.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.715e-05/0.2975, allocations: 5.266 kB / 0.4966 GB, free: 118.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004347/0.298, allocations: 110.9 kB / 0.4967 GB, free: 118.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001965/0.2982, allocations: 42.25 kB / 0.4967 GB, free: 118.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.376e-05/0.2982, allocations: 18.25 kB / 0.4968 GB, free: 118.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007231/0.2989, allocations: 1.736 MB / 0.4985 GB, free: 117 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.2989, allocations: 6.531 kB / 0.4985 GB, free: 117 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001599/0.3005, allocations: 1.442 MB / 0.4999 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004686/0.301, allocations: 265.6 kB / 0.5001 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002322/0.3012, allocations: 13.38 kB / 0.5001 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004754/0.3017, allocations: 21.69 kB / 0.5002 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.3018, allocations: 58.61 kB / 0.5002 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.962e-05/0.3019, allocations: 27.84 kB / 0.5002 GB, free: 116.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00136/0.3032, allocations: 1.311 MB / 0.5015 GB, free: 116.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3032, allocations: 1.188 kB / 0.5015 GB, free: 116.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00376/0.307, allocations: 0.7803 MB / 0.5023 GB, free: 116.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (69): * Single equations (assignments): 65 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003018/0.3073, allocations: 162.4 kB / 0.5024 GB, free: 116 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003786/0.3111, allocations: 2.323 MB / 0.5047 GB, free: 115.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.3111, allocations: 0 / 0.5047 GB, free: 115.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004759/0.3116, allocations: 409 kB / 0.5051 GB, free: 115.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001843/0.3134, allocations: 315.3 kB / 0.5054 GB, free: 115.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00998/0.3234, allocations: 5.67 MB / 0.5109 GB, free: 113.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/0.3245, allocations: 0.9691 MB / 0.5119 GB, free: 113 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00166/0.3261, allocations: 437 kB / 0.5123 GB, free: 112.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006271/0.3267, allocations: 486.9 kB / 0.5128 GB, free: 112.5 MB / 426.7 MB Notification: Performance of SimCode: time 2.474e-06/0.3268, allocations: 0 / 0.5128 GB, free: 112.5 MB / 426.7 MB Notification: Performance of Templates: time 0.03328/0.36, allocations: 21 MB / 0.5333 GB, free: 93.78 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (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 & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.406741936225444]