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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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=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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001623/0.001623, allocations: 109.4 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001944/0.001944, allocations: 207.2 kB / 19.79 MB, free: 2.586 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.445/1.445, allocations: 230.4 MB / 251.1 MB, free: 8.492 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.002015/0.002015, allocations: 67.83 kB / 368.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2966, allocations: 53.31 MB / 422.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004341/0.301, allocations: 2.592 MB / 424.8 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.302, allocations: 0.5849 MB / 425.4 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.3021, allocations: 4 kB / 425.4 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002737/0.3024, allocations: 67.42 kB / 425.5 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003196/0.3027, allocations: 139 kB / 425.6 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002974/0.303, allocations: 159.8 kB / 425.8 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007047/0.3037, allocations: 0.5186 MB / 426.3 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.3039, allocations: 44.73 kB / 426.3 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003889/0.3043, allocations: 231.3 kB / 426.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003887/0.3047, allocations: 247.2 kB / 426.8 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.7e-05/0.3047, allocations: 40 kB / 426.9 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.3049, allocations: 99.97 kB / 426.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.3051, allocations: 115.6 kB / 427.1 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.3053, allocations: 195.1 kB / 427.3 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005881/0.3058, allocations: 0.5016 MB / 427.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3059, allocations: 0 / 427.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3059, allocations: 0 / 427.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.3059, allocations: 4 kB / 427.8 MB, free: 2.324 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.001427/0.3073, allocations: 0.7195 MB / 428.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.3073, allocations: 8.031 kB / 428.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.3074, allocations: 40.7 kB / 428.5 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.3079, allocations: 299.6 kB / 428.8 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.784e-05/0.3079, allocations: 29.03 kB / 428.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.732e-05/0.308, allocations: 28.38 kB / 428.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007822/0.3088, allocations: 382.4 kB / 429.2 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.3088, allocations: 8.141 kB / 429.3 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.648e-05/0.3088, allocations: 19.94 kB / 429.3 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.3088, allocations: 8 kB / 429.3 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008233/0.3097, allocations: 386.4 kB / 429.7 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.3117, allocations: 1.131 MB / 430.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006132/0.3124, allocations: 310.6 kB / 431.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003777/0.3127, allocations: 180.8 kB / 431.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.202e-05/0.3128, allocations: 4 kB / 431.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/0.3128, allocations: 42.5 kB / 431.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.603e-06/0.3128, allocations: 3.938 kB / 431.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004839/0.3177, allocations: 1.992 MB / 433.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.3177, allocations: 59.84 kB / 433.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.318, allocations: 253 kB / 433.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.982e-05/0.3181, allocations: 45.64 kB / 433.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.3182, allocations: 161 kB / 433.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.3183, allocations: 174.6 kB / 434 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/0.3185, allocations: 94.19 kB / 434.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.3187, allocations: 342.8 kB / 434.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004003/0.3191, allocations: 193 kB / 434.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004776/0.3195, allocations: 276.8 kB / 434.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006909/0.3202, allocations: 357.6 kB / 435.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.3202, allocations: 0 / 435.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001247/0.3215, allocations: 0.599 MB / 435.8 MB, free: 9.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.3215, allocations: 11.98 kB / 435.8 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.3215, allocations: 0 / 435.8 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007355/0.3222, allocations: 341.7 kB / 436.2 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002661/0.3225, allocations: 71.84 kB / 436.2 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/0.3239, allocations: 1.366 MB / 437.6 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004084/0.3243, allocations: 67.88 kB / 437.7 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.963e-05/0.3244, allocations: 20.17 kB / 437.7 MB, free: 7.898 MB / 350.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.0002366/0.3246, allocations: 158.7 kB / 437.8 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.644e-05/0.3247, allocations: 39.75 kB / 437.9 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.3248, allocations: 59.61 kB / 437.9 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3248, allocations: 4 kB / 437.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3248, allocations: 0 / 437.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.3248, allocations: 3.984 kB / 438 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002766/0.3276, allocations: 1.343 MB / 439.3 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3276, allocations: 0 / 439.3 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002684/0.3279, allocations: 63.91 kB / 439.4 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006562/0.3285, allocations: 305.7 kB / 439.7 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.3286, allocations: 19.98 kB / 439.7 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001403/0.33, allocations: 1.308 MB / 441 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.33, allocations: 3.984 kB / 441 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001818/0.3318, allocations: 0.91 MB / 441.9 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001976/0.332, allocations: 160.8 kB / 442.1 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.349e-05/0.3321, allocations: 20 kB / 442.1 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003176/0.3324, allocations: 31.95 kB / 442.1 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/0.3326, allocations: 95.8 kB / 442.2 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.287e-05/0.3326, allocations: 19.98 kB / 442.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001985/0.3328, allocations: 184.5 kB / 442.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3328, allocations: 0 / 442.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004297/0.3332, allocations: 96 kB / 442.5 MB, free: 2.898 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.001347/0.3346, allocations: 389.1 kB / 442.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.3357, allocations: 477.2 kB / 443.3 MB, free: 2.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3357, allocations: 320 / 443.3 MB, free: 2.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006372/0.3363, allocations: 280.1 kB / 443.6 MB, free: 1.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005144/0.3368, allocations: 65.8 kB / 443.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002419/0.3392, allocations: 1.05 MB / 444.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000454/0.3397, allocations: 0.7879 MB / 445.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001401/0.3398, allocations: 38.97 kB / 445.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.318e-05/0.3399, allocations: 35.36 kB / 445.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3399, allocations: 0 / 445.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of Templates: time 0.01517/0.3551, allocations: 8.939 MB / 454.5 MB, free: 6.957 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/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) [Timeout 660] Reference file matches