Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001697/0.001697, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001898/0.001898, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.443/1.443, allocations: 227.7 MB / 247.9 MB, free: 10.14 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 67.88 kB / 359.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.276, allocations: 50.54 MB / 410.2 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003917/0.2799, allocations: 2.569 MB / 412.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.2809, allocations: 0.585 MB / 413.3 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.2811, allocations: 7.938 kB / 413.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002706/0.2813, allocations: 75.36 kB / 413.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003042/0.2816, allocations: 131.1 kB / 413.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003107/0.2819, allocations: 159.7 kB / 413.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005714/0.2825, allocations: 0.5108 MB / 414.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.2827, allocations: 52.64 kB / 414.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000262/0.2829, allocations: 231.3 kB / 414.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003288/0.2833, allocations: 251.2 kB / 414.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.901e-05/0.2833, allocations: 40 kB / 414.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.2835, allocations: 103.9 kB / 414.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.2836, allocations: 107.6 kB / 415 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001988/0.2838, allocations: 199.1 kB / 415.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005855/0.2844, allocations: 0.498 MB / 415.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2844, allocations: 0 / 415.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2844, allocations: 0 / 415.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.2844, allocations: 0 / 415.7 MB, free: 11.91 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001433/0.2859, allocations: 0.7204 MB / 416.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.2859, allocations: 8.031 kB / 416.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.286, allocations: 48.7 kB / 416.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004555/0.2865, allocations: 299.7 kB / 416.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.157e-05/0.2865, allocations: 25.03 kB / 416.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.543e-05/0.2866, allocations: 28.38 kB / 416.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007453/0.2873, allocations: 382.4 kB / 417.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.2874, allocations: 8.141 kB / 417.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.351e-05/0.2874, allocations: 11.94 kB / 417.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.2874, allocations: 8 kB / 417.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000844/0.2883, allocations: 390.4 kB / 417.6 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002134/0.2904, allocations: 1.124 MB / 418.7 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006271/0.291, allocations: 306.7 kB / 419 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003654/0.2914, allocations: 188.7 kB / 419.2 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.924e-05/0.2914, allocations: 4 kB / 419.2 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.2915, allocations: 34.56 kB / 419.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.793e-06/0.2915, allocations: 0 / 419.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.004942/0.2964, allocations: 2 MB / 421.2 MB, free: 6.027 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.2964, allocations: 59.84 kB / 421.3 MB, free: 5.957 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003037/0.2967, allocations: 256.9 kB / 421.5 MB, free: 5.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.292e-05/0.2968, allocations: 41.7 kB / 421.6 MB, free: 5.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.2969, allocations: 165 kB / 421.7 MB, free: 5.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.2971, allocations: 170.6 kB / 421.9 MB, free: 5.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/0.2973, allocations: 98.19 kB / 422 MB, free: 5.223 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.2974, allocations: 342.8 kB / 422.3 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004138/0.2978, allocations: 189 kB / 422.5 MB, free: 4.695 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004774/0.2983, allocations: 268.8 kB / 422.8 MB, free: 4.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006648/0.299, allocations: 357.5 kB / 423.1 MB, free: 4.031 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.299, allocations: 4 kB / 423.1 MB, free: 4.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001269/0.3003, allocations: 0.6029 MB / 423.7 MB, free: 3.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.3003, allocations: 11.94 kB / 423.8 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.3003, allocations: 0 / 423.8 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000764/0.301, allocations: 341.6 kB / 424.1 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002939/0.3013, allocations: 71.89 kB / 424.2 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.3028, allocations: 1.358 MB / 425.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004647/0.3033, allocations: 80.05 kB / 425.6 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-05/0.3033, allocations: 16 kB / 425.6 MB, free: 1.484 MB / 334.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 (47): * Single equations (assignments): 45 * 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,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002344/0.3035, allocations: 166.9 kB / 425.8 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.995e-05/0.3036, allocations: 39.73 kB / 425.8 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.3038, allocations: 51.62 kB / 425.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.3038, allocations: 4 kB / 425.9 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.3038, allocations: 0 / 425.9 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.3038, allocations: 3.984 kB / 425.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003018/0.3068, allocations: 1.343 MB / 427.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3068, allocations: 0 / 427.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002793/0.3071, allocations: 59.91 kB / 427.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006242/0.3077, allocations: 301.7 kB / 427.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.329e-05/0.3078, allocations: 19.98 kB / 427.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001372/0.3091, allocations: 1.32 MB / 428.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3091, allocations: 3.938 kB / 428.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.311, allocations: 0.91 MB / 429.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002225/0.3112, allocations: 168.9 kB / 430 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.711e-05/0.3113, allocations: 16 kB / 430 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003254/0.3116, allocations: 35.95 kB / 430 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/0.3118, allocations: 87.8 kB / 430.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.58e-05/0.3119, allocations: 23.97 kB / 430.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002009/0.3121, allocations: 184.5 kB / 430.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3121, allocations: 3.938 kB / 430.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004808/0.3126, allocations: 100 kB / 430.4 MB, free: 12.47 MB / 350.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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001365/0.3139, allocations: 383.1 kB / 430.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.3151, allocations: 473.2 kB / 431.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3151, allocations: 0 / 431.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006643/0.3158, allocations: 280.6 kB / 431.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005487/0.3163, allocations: 64.45 kB / 431.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002566/0.3189, allocations: 1.046 MB / 432.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004591/0.3194, allocations: 0.7878 MB / 433.4 MB, free: 9.512 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001663/0.3195, allocations: 38.94 kB / 433.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.991e-05/0.3196, allocations: 39.42 kB / 433.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3196, allocations: 0 / 433.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of Templates: time 0.01533/0.335, allocations: 8.704 MB / 442.2 MB, free: 0.7773 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches