Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) 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(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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001379/0.001379, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 59.31 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09982/0.1011, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004077/0.1053, allocations: 2.563 MB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.1063, allocations: 0.5772 MB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.1065, allocations: 4 kB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.1068, allocations: 75.36 kB / 362.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002985/0.1071, allocations: 139 kB / 362.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002793/0.1074, allocations: 155.8 kB / 362.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004689/0.1079, allocations: 0.5108 MB / 362.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/0.1081, allocations: 72.69 kB / 363 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002204/0.1083, allocations: 219.4 kB / 363.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003168/0.1086, allocations: 259.1 kB / 363.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.318e-05/0.1087, allocations: 44 kB / 363.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001613/0.1088, allocations: 87.98 kB / 363.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001541/0.109, allocations: 115.6 kB / 363.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.1092, allocations: 203 kB / 363.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005011/0.1097, allocations: 0.4985 MB / 364.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1097, allocations: 4 kB / 364.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1097, allocations: 0 / 364.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1098, allocations: 0 / 364.4 MB, free: 7.816 MB / 302.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.001401/0.1112, allocations: 0.6939 MB / 365.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.1112, allocations: 12.03 kB / 365.1 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.1113, allocations: 40.45 kB / 365.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.1118, allocations: 299.6 kB / 365.4 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/0.1118, allocations: 21.03 kB / 365.4 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.207e-05/0.1119, allocations: 40.27 kB / 365.5 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006825/0.1126, allocations: 374.5 kB / 365.9 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.1126, allocations: 4.125 kB / 365.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.267e-05/0.1126, allocations: 19.88 kB / 365.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.1127, allocations: 8 kB / 365.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007817/0.1134, allocations: 386.4 kB / 366.3 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002006/0.1155, allocations: 1.135 MB / 367.4 MB, free: 4.641 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006031/0.1161, allocations: 332.3 kB / 367.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000342/0.1164, allocations: 188.8 kB / 367.9 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.346e-05/0.1165, allocations: 8 kB / 367.9 MB, free: 4.109 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.1165, allocations: 34.56 kB / 367.9 MB, free: 4.066 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.874e-06/0.1165, allocations: 3.938 kB / 368 MB, free: 4.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004364/0.1209, allocations: 1.999 MB / 370 MB, free: 1.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.121, allocations: 55.84 kB / 370 MB, free: 1.859 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002542/0.1212, allocations: 252.9 kB / 370.3 MB, free: 1.598 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.096e-05/0.1213, allocations: 41.7 kB / 370.3 MB, free: 1.551 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.428e-05/0.1214, allocations: 160.8 kB / 370.4 MB, free: 1.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.1215, allocations: 161.8 kB / 370.6 MB, free: 1.227 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.1217, allocations: 98.14 kB / 370.7 MB, free: 1.125 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1218, allocations: 342.8 kB / 371 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000368/0.1222, allocations: 193 kB / 371.2 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000419/0.1226, allocations: 268.8 kB / 371.5 MB, free: 312 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1741/0.2968, allocations: 358.2 kB / 371.8 MB, free: 19.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.2968, allocations: 0.6562 kB / 371.8 MB, free: 19.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001448/0.2983, allocations: 0.6061 MB / 372.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.2983, allocations: 6.562 kB / 372.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.2983, allocations: 3.969 kB / 372.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007416/0.2991, allocations: 343.7 kB / 372.8 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/0.2993, allocations: 69.97 kB / 372.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/0.3004, allocations: 1.367 MB / 374.2 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004284/0.3008, allocations: 68.16 kB / 374.3 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.382e-05/0.3009, allocations: 22.22 kB / 374.3 MB, free: 18.8 MB / 302.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.000176/0.3011, allocations: 166.7 kB / 374.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.581e-05/0.3011, allocations: 39.8 kB / 374.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.81e-05/0.3012, allocations: 53.05 kB / 374.6 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.3013, allocations: 5.031 kB / 374.6 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3013, allocations: 2.938 kB / 374.6 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.3013, allocations: 2.297 kB / 374.6 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002702/0.304, allocations: 1.341 MB / 375.9 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.304, allocations: 1.219 kB / 375.9 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002724/0.3043, allocations: 62.83 kB / 376 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005964/0.3049, allocations: 309 kB / 376.3 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-05/0.305, allocations: 19.88 kB / 376.3 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009553/0.3059, allocations: 1.315 MB / 377.6 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.3059, allocations: 1.406 kB / 377.6 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/0.3075, allocations: 0.9109 MB / 378.5 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.3077, allocations: 158.4 kB / 378.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.678e-05/0.3078, allocations: 20.3 kB / 378.7 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002992/0.3081, allocations: 39.47 kB / 378.7 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001901/0.3083, allocations: 94.33 kB / 378.8 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-05/0.3084, allocations: 21.44 kB / 378.9 MB, free: 16.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001623/0.3085, allocations: 188.4 kB / 379 MB, free: 16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3086, allocations: 0 / 379 MB, free: 16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004379/0.309, allocations: 100.8 kB / 379.1 MB, free: 15.98 MB / 302.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.0007975/0.3098, allocations: 387.3 kB / 379.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.3109, allocations: 0.4975 MB / 380 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3109, allocations: 0 / 380 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005776/0.3115, allocations: 286 kB / 380.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005086/0.312, allocations: 61.72 kB / 380.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.3142, allocations: 1.039 MB / 381.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.3144, allocations: 0.7864 MB / 382.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.3146, allocations: 42.44 kB / 382.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.551e-05/0.3146, allocations: 37.67 kB / 382.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3147, allocations: 0 / 382.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of Templates: time 0.01466/0.3293, allocations: 8.59 MB / 390.8 MB, free: 11.39 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches