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.001454/0.001454, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001668/0.001668, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 59.91 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2717, allocations: 50.55 MB / 409.2 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003597/0.2753, allocations: 2.565 MB / 411.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000949/0.2763, allocations: 0.5811 MB / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.2764, allocations: 7.938 kB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002646/0.2767, allocations: 71.42 kB / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002721/0.277, allocations: 135 kB / 412.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002696/0.2772, allocations: 163.7 kB / 412.7 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004997/0.2778, allocations: 0.5069 MB / 413.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.2779, allocations: 75.66 kB / 413.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002303/0.2782, allocations: 227.4 kB / 413.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003205/0.2785, allocations: 251.1 kB / 413.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.421e-05/0.2786, allocations: 47.94 kB / 413.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001827/0.2788, allocations: 91.98 kB / 413.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.2789, allocations: 115.6 kB / 414 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001727/0.2791, allocations: 199 kB / 414.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004971/0.2796, allocations: 0.4918 MB / 414.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.2796, allocations: 3.984 kB / 414.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2796, allocations: 0 / 414.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.742e-06/0.2796, allocations: 0 / 414.7 MB, free: 12.04 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.001333/0.281, allocations: 0.7133 MB / 415.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.281, allocations: 8.031 kB / 415.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.2811, allocations: 40.47 kB / 415.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004248/0.2816, allocations: 303.5 kB / 415.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.2816, allocations: 25.03 kB / 415.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.343e-05/0.2817, allocations: 28.38 kB / 415.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006654/0.2824, allocations: 378.4 kB / 416.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.2824, allocations: 8.094 kB / 416.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.427e-05/0.2824, allocations: 19.92 kB / 416.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.2824, allocations: 8 kB / 416.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007504/0.2832, allocations: 382.4 kB / 416.6 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.285, allocations: 1.123 MB / 417.7 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005835/0.2856, allocations: 330.6 kB / 418.1 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003449/0.286, allocations: 188.7 kB / 418.3 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.122e-05/0.286, allocations: 4 kB / 418.3 MB, free: 8.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.2861, allocations: 46.53 kB / 418.3 MB, free: 8.273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.633e-06/0.2861, allocations: 0 / 418.3 MB, free: 8.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.004664/0.2908, allocations: 1.992 MB / 420.3 MB, free: 6.145 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.2908, allocations: 55.84 kB / 420.3 MB, free: 6.078 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002846/0.2911, allocations: 264.9 kB / 420.6 MB, free: 5.812 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.222e-05/0.2912, allocations: 41.69 kB / 420.6 MB, free: 5.766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.2913, allocations: 152.8 kB / 420.8 MB, free: 5.613 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.2914, allocations: 169.8 kB / 421 MB, free: 5.445 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.2916, allocations: 94.16 kB / 421.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.2917, allocations: 338.8 kB / 421.4 MB, free: 5.008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000369/0.2921, allocations: 193 kB / 421.6 MB, free: 4.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000438/0.2926, allocations: 268.8 kB / 421.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006073/0.2932, allocations: 357.6 kB / 422.2 MB, free: 4.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2932, allocations: 0 / 422.2 MB, free: 4.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001174/0.2944, allocations: 0.6144 MB / 422.8 MB, free: 3.531 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.2944, allocations: 8 kB / 422.8 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2944, allocations: 0 / 422.8 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007329/0.2951, allocations: 345.5 kB / 423.1 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.2954, allocations: 71.84 kB / 423.2 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.2967, allocations: 1.362 MB / 424.6 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004236/0.2971, allocations: 72.03 kB / 424.6 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/0.2972, allocations: 16 kB / 424.7 MB, free: 1.609 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.0002115/0.2974, allocations: 173.7 kB / 424.8 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.419e-05/0.2975, allocations: 39.62 kB / 424.9 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.2976, allocations: 55.61 kB / 424.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.2976, allocations: 4 kB / 424.9 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.2976, allocations: 4 kB / 424.9 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.2976, allocations: 4 kB / 424.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002711/0.3003, allocations: 1.343 MB / 426.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.3003, allocations: 4 kB / 426.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002686/0.3006, allocations: 59.91 kB / 426.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005627/0.3012, allocations: 297.6 kB / 426.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-05/0.3012, allocations: 19.97 kB / 426.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/0.3024, allocations: 1.319 MB / 428 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3024, allocations: 0 / 428 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.304, allocations: 0.9136 MB / 428.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001859/0.3042, allocations: 160.8 kB / 429 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.62e-05/0.3043, allocations: 16 kB / 429.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000305/0.3046, allocations: 47.83 kB / 429.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.3048, allocations: 91.88 kB / 429.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.782e-05/0.3049, allocations: 23.97 kB / 429.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001712/0.305, allocations: 180.5 kB / 429.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3051, allocations: 7.938 kB / 429.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004361/0.3055, allocations: 99.98 kB / 429.5 MB, free: 12.57 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.000829/0.3063, allocations: 372.6 kB / 429.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.3074, allocations: 0.4895 MB / 430.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3074, allocations: 0 / 430.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005893/0.308, allocations: 296.6 kB / 430.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005163/0.3085, allocations: 69.39 kB / 430.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/0.3108, allocations: 1.034 MB / 431.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.3111, allocations: 0.7956 MB / 432.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001227/0.3113, allocations: 34.95 kB / 432.6 MB, free: 9.535 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.849e-05/0.3114, allocations: 39.42 kB / 432.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3114, allocations: 0 / 432.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of Templates: time 0.01299/0.3244, allocations: 8.664 MB / 441.3 MB, free: 0.875 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches