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.001397/0.001397, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001581/0.001582, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.7 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 59.03 kB / 306.9 MB, free: 1.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09672/0.09802, allocations: 50.53 MB / 357.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004125/0.1022, allocations: 2.623 MB / 360.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.1034, allocations: 0.5695 MB / 360.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002268/0.1036, allocations: 11.94 kB / 360.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003443/0.104, allocations: 51.62 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003851/0.1044, allocations: 115.4 kB / 360.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003488/0.1048, allocations: 143.8 kB / 360.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005545/0.1054, allocations: 499 kB / 361.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.1055, allocations: 56.7 kB / 361.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003137/0.1059, allocations: 211.3 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003611/0.1062, allocations: 239.1 kB / 361.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.367e-05/0.1063, allocations: 27.94 kB / 361.9 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001995/0.1065, allocations: 75.97 kB / 362 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.1067, allocations: 99.62 kB / 362.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001944/0.1069, allocations: 175.1 kB / 362.3 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003905/0.1073, allocations: 371.4 kB / 362.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1073, allocations: 4 kB / 362.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.1073, allocations: 0 / 362.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.719e-05/0.1074, allocations: 0 / 362.7 MB, free: 9.258 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.00135/0.1087, allocations: 0.7055 MB / 363.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.1088, allocations: 16.03 kB / 363.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.1089, allocations: 36.47 kB / 363.4 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/0.1092, allocations: 295.6 kB / 363.7 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.746e-05/0.1093, allocations: 21.03 kB / 363.7 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.522e-05/0.1094, allocations: 40.27 kB / 363.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007599/0.1101, allocations: 378.4 kB / 364.1 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.1102, allocations: 192 / 364.1 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.349e-05/0.1102, allocations: 15.94 kB / 364.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.1102, allocations: 4 kB / 364.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008091/0.111, allocations: 394.4 kB / 364.5 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.1131, allocations: 1.123 MB / 365.7 MB, free: 6.086 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006305/0.1138, allocations: 327.3 kB / 366 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003743/0.1142, allocations: 197.4 kB / 366.2 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.571e-05/0.1142, allocations: 7.953 kB / 366.2 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.1143, allocations: 38.56 kB / 366.2 MB, free: 5.504 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.903e-06/0.1143, allocations: 0 / 366.2 MB, free: 5.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004644/0.1189, allocations: 2.006 MB / 368.2 MB, free: 3.359 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.119, allocations: 55.84 kB / 368.3 MB, free: 3.293 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002626/0.1192, allocations: 256.8 kB / 368.5 MB, free: 3.027 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.072e-05/0.1193, allocations: 45.7 kB / 368.6 MB, free: 2.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.928e-05/0.1194, allocations: 152.8 kB / 368.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.1195, allocations: 157.8 kB / 368.9 MB, free: 2.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001596/0.1197, allocations: 98.14 kB / 369 MB, free: 2.562 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1198, allocations: 346.8 kB / 369.3 MB, free: 2.215 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003926/0.1202, allocations: 189 kB / 369.5 MB, free: 2.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004568/0.1207, allocations: 268.8 kB / 369.8 MB, free: 1.746 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006246/0.1213, allocations: 357.6 kB / 370.1 MB, free: 1.375 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1214, allocations: 0 / 370.1 MB, free: 1.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001204/0.1226, allocations: 0.6144 MB / 370.7 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.1226, allocations: 4 kB / 370.7 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1226, allocations: 4 kB / 370.7 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008503/0.1235, allocations: 337.6 kB / 371.1 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.1238, allocations: 79.95 kB / 371.1 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1724/0.2962, allocations: 1.355 MB / 372.5 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005633/0.2968, allocations: 77.08 kB / 372.6 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-05/0.2969, allocations: 19.11 kB / 372.6 MB, free: 19.28 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.0002502/0.2972, allocations: 170.7 kB / 372.8 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.2973, allocations: 32.91 kB / 372.8 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001228/0.2974, allocations: 53.2 kB / 372.8 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.2974, allocations: 5.062 kB / 372.8 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.2975, allocations: 4.547 kB / 372.8 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.2975, allocations: 4.375 kB / 372.9 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003032/0.3005, allocations: 1.337 MB / 374.2 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.3005, allocations: 4.531 kB / 374.2 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002886/0.3008, allocations: 62 kB / 374.3 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006674/0.3015, allocations: 299.9 kB / 374.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.217e-05/0.3016, allocations: 18.16 kB / 374.6 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.3026, allocations: 1.321 MB / 375.9 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3027, allocations: 5.969 kB / 375.9 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/0.3045, allocations: 0.9166 MB / 376.8 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002246/0.3047, allocations: 157.8 kB / 377 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.98e-05/0.3048, allocations: 17.34 kB / 377 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003334/0.3052, allocations: 40.14 kB / 377 MB, free: 16.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002554/0.3054, allocations: 80.78 kB / 377.1 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.544e-05/0.3055, allocations: 32.66 kB / 377.1 MB, free: 16.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002017/0.3057, allocations: 184 kB / 377.3 MB, free: 16.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3057, allocations: 0 / 377.3 MB, free: 16.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000508/0.3062, allocations: 102.3 kB / 377.4 MB, free: 16.83 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.0008773/0.3071, allocations: 379.6 kB / 377.8 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.3083, allocations: 498.6 kB / 378.3 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3083, allocations: 1.312 kB / 378.3 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006253/0.309, allocations: 284.7 kB / 378.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005916/0.3096, allocations: 56.92 kB / 378.6 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.3121, allocations: 1.2 MB / 379.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.3124, allocations: 0.7893 MB / 380.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.3125, allocations: 32.78 kB / 380.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of SimCode: time 1.803e-06/0.3125, allocations: 0 / 380.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of Templates: time 0.01211/0.3247, allocations: 7.085 MB / 387.7 MB, free: 12.87 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 -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