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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001685/0.001685, allocations: 116.7 kB / 19.18 MB, free: 3.762 MB / 14.72 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.002008/0.002008, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.444/1.444, allocations: 230.4 MB / 255.4 MB, free: 15.16 MB / 206.1 MB " [Timeout remaining time 178] 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] "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.001865/0.001865, allocations: 71.83 kB / 374.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1031, allocations: 53.31 MB / 428 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004131/0.1072, allocations: 2.588 MB / 430.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.1083, allocations: 0.5733 MB / 431.2 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.1084, allocations: 4 kB / 431.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.1087, allocations: 63.44 kB / 431.3 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003023/0.109, allocations: 147 kB / 431.4 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002999/0.1093, allocations: 159.8 kB / 431.6 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005566/0.1098, allocations: 0.5108 MB / 432.1 MB, free: 312 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.11, allocations: 52.66 kB / 432.1 MB, free: 256 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002688/0.1103, allocations: 223.4 kB / 432.4 MB, free: 32 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1997/0.31, allocations: 250.6 kB / 432.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001665/0.3101, allocations: 40.72 kB / 432.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002967/0.3104, allocations: 97.73 kB / 432.7 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001679/0.3106, allocations: 113 kB / 432.8 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001982/0.3108, allocations: 197.2 kB / 433 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006345/0.3114, allocations: 0.5059 MB / 433.5 MB, free: 8.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3114, allocations: 0 / 433.5 MB, free: 8.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3114, allocations: 0.6562 kB / 433.5 MB, free: 8.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.3114, allocations: 0 / 433.5 MB, free: 8.414 MB / 350.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.001269/0.3127, allocations: 0.7123 MB / 434.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.3127, allocations: 10.59 kB / 434.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.3129, allocations: 42.36 kB / 434.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.3133, allocations: 299.1 kB / 434.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.3133, allocations: 24.97 kB / 434.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.176e-05/0.3133, allocations: 34.53 kB / 434.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006799/0.314, allocations: 375.7 kB / 435 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.3141, allocations: 12.91 kB / 435 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.037e-05/0.3141, allocations: 13.56 kB / 435 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3141, allocations: 7.125 kB / 435.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007425/0.3148, allocations: 390.4 kB / 435.4 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001893/0.3167, allocations: 1.128 MB / 436.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005873/0.3173, allocations: 308.1 kB / 436.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003394/0.3177, allocations: 185.7 kB / 437 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.918e-05/0.3177, allocations: 3.75 kB / 437.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.3177, allocations: 40.7 kB / 437.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.763e-06/0.3177, allocations: 0 / 437.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.005205/0.3229, allocations: 2.008 MB / 439.1 MB, free: 6.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.323, allocations: 59.69 kB / 439.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.3233, allocations: 248.5 kB / 439.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.112e-05/0.3234, allocations: 40.45 kB / 439.4 MB, free: 5.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3235, allocations: 157.4 kB / 439.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/0.3237, allocations: 176.7 kB / 439.8 MB, free: 5.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002393/0.3239, allocations: 102.6 kB / 439.9 MB, free: 5.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.922e-05/0.324, allocations: 341 kB / 440.2 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006126/0.3246, allocations: 191.7 kB / 440.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000704/0.3253, allocations: 269 kB / 440.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008966/0.3262, allocations: 354.4 kB / 441 MB, free: 4.785 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3262, allocations: 1.031 kB / 441 MB, free: 4.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001729/0.3279, allocations: 0.6091 MB / 441.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.3279, allocations: 5.406 kB / 441.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.3279, allocations: 1.531 kB / 441.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.329, allocations: 337.7 kB / 441.9 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003945/0.3294, allocations: 77.14 kB / 442 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.3308, allocations: 1.361 MB / 443.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007272/0.3315, allocations: 73.81 kB / 443.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.082e-05/0.3316, allocations: 19.25 kB / 443.5 MB, free: 3.184 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.0002869/0.3319, allocations: 156.4 kB / 443.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/0.332, allocations: 37.28 kB / 443.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001485/0.3322, allocations: 51.8 kB / 443.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.3322, allocations: 6.047 kB / 443.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.3322, allocations: 4.188 kB / 443.7 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.3322, allocations: 5.516 kB / 443.7 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003832/0.336, allocations: 1.349 MB / 445.1 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.3361, allocations: 1.125 kB / 445.1 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003243/0.3364, allocations: 60.75 kB / 445.1 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009255/0.3373, allocations: 300.7 kB / 445.4 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-05/0.3374, allocations: 19.94 kB / 445.4 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.3386, allocations: 1.311 MB / 446.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.3386, allocations: 1.125 kB / 446.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00172/0.3403, allocations: 0.9142 MB / 447.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.3405, allocations: 161.7 kB / 447.8 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.072e-05/0.3406, allocations: 20.73 kB / 447.9 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003235/0.3409, allocations: 34.33 kB / 447.9 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002323/0.3411, allocations: 90.34 kB / 448 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.678e-05/0.3412, allocations: 22.28 kB / 448 MB, free: 348 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000213/0.3414, allocations: 182.8 kB / 448.2 MB, free: 240 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3414, allocations: 4.875 kB / 448.2 MB, free: 236 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000517/0.3419, allocations: 99.48 kB / 448.3 MB, free: 220 kB / 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.00128/0.3432, allocations: 391.8 kB / 448.7 MB, free: 68 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.3445, allocations: 480.2 kB / 449.1 MB, free: 0 / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3445, allocations: 3.453 kB / 449.1 MB, free: 0 / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006244/0.3451, allocations: 275.3 kB / 449.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005674/0.3457, allocations: 73.92 kB / 449.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.3483, allocations: 1.076 MB / 450.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.3487, allocations: 0.7871 MB / 451.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.3488, allocations: 38.17 kB / 451.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3488, allocations: 3.375 kB / 451.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of Templates: time 0.01146/0.3603, allocations: 7.124 MB / 458.5 MB, free: 12.23 MB / 366.1 MB " [Timeout remaining time 660] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.116977525874972]