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.001724/0.001724, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002355/0.002354, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.915/1.915, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 59.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2626, allocations: 50.53 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00394/0.2666, allocations: 2.574 MB / 412.5 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.2679, allocations: 0.5811 MB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.2681, allocations: 7.938 kB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003009/0.2684, allocations: 75.36 kB / 413.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002936/0.2687, allocations: 127.1 kB / 413.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003456/0.2691, allocations: 163.7 kB / 413.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005312/0.2696, allocations: 0.5108 MB / 413.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.2698, allocations: 71.81 kB / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002687/0.2701, allocations: 231.4 kB / 414.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003358/0.2704, allocations: 251 kB / 414.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.618e-05/0.2705, allocations: 40 kB / 414.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.2707, allocations: 95.98 kB / 414.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.2708, allocations: 115.7 kB / 414.7 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.271, allocations: 199 kB / 414.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005419/0.2716, allocations: 0.4996 MB / 415.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2716, allocations: 0 / 415.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.2716, allocations: 0 / 415.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.2716, allocations: 0 / 415.4 MB, free: 12.05 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.001381/0.273, allocations: 0.7055 MB / 416.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.2731, allocations: 8.031 kB / 416.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.2732, allocations: 40.47 kB / 416.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000505/0.2737, allocations: 307.5 kB / 416.5 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.2737, allocations: 21.03 kB / 416.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.534e-05/0.2738, allocations: 36.38 kB / 416.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007296/0.2745, allocations: 374.5 kB / 416.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.2746, allocations: 12.08 kB / 416.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.897e-05/0.2746, allocations: 11.94 kB / 416.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.2746, allocations: 8 kB / 416.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007727/0.2754, allocations: 386.4 kB / 417.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002032/0.2774, allocations: 1.12 MB / 418.4 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005927/0.278, allocations: 330.6 kB / 418.7 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003513/0.2784, allocations: 192.8 kB / 418.9 MB, free: 8.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.47e-05/0.2785, allocations: 4 kB / 418.9 MB, free: 8.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.2785, allocations: 38.56 kB / 419 MB, free: 8.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.024e-06/0.2785, allocations: 0 / 419 MB, free: 8.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.004731/0.2832, allocations: 2.003 MB / 421 MB, free: 6.152 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/0.2833, allocations: 59.84 kB / 421 MB, free: 6.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002902/0.2836, allocations: 256.9 kB / 421.3 MB, free: 5.824 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.606e-05/0.2837, allocations: 41.7 kB / 421.3 MB, free: 5.777 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.2838, allocations: 152.8 kB / 421.5 MB, free: 5.625 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.2839, allocations: 165.8 kB / 421.6 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.2841, allocations: 94.14 kB / 421.7 MB, free: 5.363 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.2842, allocations: 338.8 kB / 422.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003741/0.2846, allocations: 201 kB / 422.3 MB, free: 4.828 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004291/0.2851, allocations: 264.8 kB / 422.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006187/0.2857, allocations: 357.6 kB / 422.9 MB, free: 4.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2857, allocations: 4 kB / 422.9 MB, free: 4.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00117/0.2869, allocations: 0.6105 MB / 423.5 MB, free: 3.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.2869, allocations: 8 kB / 423.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.2869, allocations: 0 / 423.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007077/0.2876, allocations: 349.6 kB / 423.8 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002643/0.2879, allocations: 67.91 kB / 423.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.2892, allocations: 1.37 MB / 425.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004625/0.2897, allocations: 63.92 kB / 425.3 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.171e-05/0.2897, allocations: 24.11 kB / 425.3 MB, free: 1.613 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.0002109/0.2899, allocations: 169.2 kB / 425.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.459e-05/0.29, allocations: 39.56 kB / 425.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.2901, allocations: 51.8 kB / 425.6 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.2901, allocations: 4 kB / 425.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.2901, allocations: 3.938 kB / 425.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.2902, allocations: 3.984 kB / 425.6 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002694/0.2929, allocations: 1.339 MB / 427 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.2929, allocations: 7.984 kB / 427 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002716/0.2932, allocations: 60.08 kB / 427 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005846/0.2938, allocations: 313.5 kB / 427.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.244e-05/0.2938, allocations: 15.98 kB / 427.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/0.2949, allocations: 1.312 MB / 428.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.295, allocations: 0 / 428.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/0.2969, allocations: 0.9176 MB / 429.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003218/0.2973, allocations: 160.6 kB / 429.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.046e-05/0.2974, allocations: 23.94 kB / 429.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003214/0.2977, allocations: 39.95 kB / 429.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/0.2979, allocations: 91.73 kB / 429.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.061e-05/0.298, allocations: 19.98 kB / 429.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001882/0.2982, allocations: 184.5 kB / 430.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2982, allocations: 0 / 430.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004696/0.2987, allocations: 96 kB / 430.2 MB, free: 12.59 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.0009083/0.2996, allocations: 376.5 kB / 430.5 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001253/0.3008, allocations: 0.5011 MB / 431 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.3009, allocations: 0 / 431 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005963/0.3015, allocations: 292 kB / 431.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005779/0.3021, allocations: 68.23 kB / 431.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.3047, allocations: 1.072 MB / 432.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.3051, allocations: 0.7839 MB / 433.2 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.3052, allocations: 35.42 kB / 433.3 MB, free: 9.512 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3052, allocations: 0 / 433.3 MB, free: 9.512 MB / 350.1 MB Notification: Performance of Templates: time 0.01057/0.3158, allocations: 7.155 MB / 440.4 MB, free: 2.359 MB / 350.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