Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.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.001737/0.001737, allocations: 81.8 kB / 21.99 MB, free: 4.754 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.002194/0.002194, allocations: 153.4 kB / 25.24 MB, free: 2.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 158.6 MB / 187 MB, free: 6.348 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.001794/0.001794, allocations: 51.92 kB / 299.4 MB, free: 6.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2472, allocations: 49.14 MB / 348.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.005395/0.2526, allocations: 2.277 MB / 350.8 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001638/0.2543, allocations: 0.5 MB / 351.3 MB, free: 12.74 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002656/0.2545, allocations: 4 kB / 351.3 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002972/0.2548, allocations: 47.52 kB / 351.3 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003266/0.2552, allocations: 79.28 kB / 351.4 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008053/0.256, allocations: 199.7 kB / 351.6 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008787/0.2568, allocations: 491 kB / 352.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.257, allocations: 56.84 kB / 352.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000463/0.2575, allocations: 219.4 kB / 352.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005209/0.258, allocations: 219.2 kB / 352.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.2581, allocations: 40 kB / 352.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002761/0.2584, allocations: 87.89 kB / 352.7 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001913/0.2586, allocations: 103.7 kB / 352.8 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003001/0.2589, allocations: 151.4 kB / 352.9 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008475/0.2597, allocations: 468.8 kB / 353.4 MB, free: 10.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.2598, allocations: 7.984 kB / 353.4 MB, free: 10.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2598, allocations: 0 / 353.4 MB, free: 10.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.695e-05/0.2598, allocations: 0 / 353.4 MB, free: 10.61 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0019/0.2617, allocations: 0.5949 MB / 354 MB, free: 9.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.2617, allocations: 12.03 kB / 354 MB, free: 9.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.2619, allocations: 36.7 kB / 354 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000633/0.2625, allocations: 226.8 kB / 354.3 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.418e-05/0.2626, allocations: 21.03 kB / 354.3 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.2627, allocations: 36.33 kB / 354.3 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.2638, allocations: 386.4 kB / 354.7 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.563e-05/0.2639, allocations: 8.125 kB / 354.7 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.276e-05/0.2639, allocations: 15.94 kB / 354.7 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/0.2639, allocations: 8 kB / 354.7 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.2652, allocations: 402.4 kB / 355.1 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002889/0.2681, allocations: 0.9371 MB / 356.1 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008602/0.2689, allocations: 268.2 kB / 356.3 MB, free: 7.559 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005857/0.2695, allocations: 185.8 kB / 356.5 MB, free: 7.375 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.239e-05/0.2696, allocations: 8 kB / 356.5 MB, free: 7.367 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.273e-05/0.2696, allocations: 38.5 kB / 356.5 MB, free: 7.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 3.206e-06/0.2696, allocations: 0 / 356.5 MB, free: 7.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.007178/0.2768, allocations: 1.738 MB / 358.3 MB, free: 5.523 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.738e-05/0.2769, allocations: 55.41 kB / 358.3 MB, free: 5.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004073/0.2773, allocations: 225.8 kB / 358.6 MB, free: 5.227 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.605e-05/0.2774, allocations: 45.7 kB / 358.6 MB, free: 5.176 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.2775, allocations: 160.9 kB / 358.8 MB, free: 5.016 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.2778, allocations: 154.7 kB / 358.9 MB, free: 4.863 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002844/0.2781, allocations: 102.1 kB / 359 MB, free: 4.754 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002323/0.2783, allocations: 334.8 kB / 359.3 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006229/0.2789, allocations: 208.9 kB / 359.5 MB, free: 4.215 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007468/0.2797, allocations: 284.2 kB / 359.8 MB, free: 3.918 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.2807, allocations: 386.7 kB / 360.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.2807, allocations: 0 / 360.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002491/0.2832, allocations: 0.694 MB / 360.9 MB, free: 2.809 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.2833, allocations: 7.984 kB / 360.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.2833, allocations: 4.062 kB / 360.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001424/0.2847, allocations: 0.4897 MB / 361.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004607/0.2852, allocations: 75.84 kB / 361.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/0.2874, allocations: 1.394 MB / 362.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006778/0.288, allocations: 68.05 kB / 362.9 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.577e-05/0.2881, allocations: 19.98 kB / 362.9 MB, free: 0.6953 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002997/0.2884, allocations: 154.4 kB / 363.1 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.2885, allocations: 35.75 kB / 363.1 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.2887, allocations: 47.3 kB / 363.2 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.2887, allocations: 4 kB / 363.2 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.2887, allocations: 4 kB / 363.2 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.2887, allocations: 11.92 kB / 363.2 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004454/0.2932, allocations: 1.215 MB / 364.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.2932, allocations: 0 / 364.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004734/0.2937, allocations: 63.91 kB / 364.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/0.2949, allocations: 457.5 kB / 364.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.285e-05/0.295, allocations: 23.97 kB / 364.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002002/0.297, allocations: 1.335 MB / 366.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.297, allocations: 4.031 kB / 366.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002933/0.2999, allocations: 0.9407 MB / 367.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002918/0.3002, allocations: 79.89 kB / 367.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.3003, allocations: 20 kB / 367.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004802/0.3008, allocations: 35.95 kB / 367.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002941/0.3011, allocations: 91.89 kB / 367.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-05/0.3012, allocations: 27.92 kB / 367.5 MB, free: 12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002491/0.3014, allocations: 161.2 kB / 367.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3014, allocations: 0 / 367.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008402/0.3023, allocations: 107.9 kB / 367.7 MB, free: 11.73 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003411/0.3026, allocations: 139.2 kB / 367.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001662/0.3043, allocations: 482.5 kB / 368.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3043, allocations: 0 / 368.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009491/0.3052, allocations: 292.2 kB / 368.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008064/0.306, allocations: 56.55 kB / 368.7 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/0.3093, allocations: 0.9583 MB / 369.6 MB, free: 9.777 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.3096, allocations: 177.7 kB / 369.8 MB, free: 9.578 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001888/0.3098, allocations: 30.97 kB / 369.8 MB, free: 9.551 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.3099, allocations: 32.5 kB / 369.9 MB, free: 9.52 MB / 334.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3099, allocations: 0 / 369.9 MB, free: 9.52 MB / 334.1 MB Notification: Performance of Templates: time 0.02047/0.3304, allocations: 7.322 MB / 377.2 MB, free: 2.18 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.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: 4.697817372041754]