Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001254/0.001254, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.6 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000786/0.0007857, allocations: 92.31 kB / 296.8 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003158/0.000316, allocations: 8 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.284, allocations: 51.3 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002816/0.2869, allocations: 2.157 MB / 410.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.288, allocations: 0.5381 MB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.2881, allocations: 7.938 kB / 410.7 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003147/0.2885, allocations: 48.53 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003146/0.2888, allocations: 117.1 kB / 410.9 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.2891, allocations: 113.7 kB / 411 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004578/0.2896, allocations: 447.1 kB / 411.5 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.2898, allocations: 63.72 kB / 411.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002555/0.2901, allocations: 202.2 kB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000327/0.2904, allocations: 219.2 kB / 411.9 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.747e-05/0.2905, allocations: 20 kB / 411.9 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.2907, allocations: 71.92 kB / 412 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001453/0.2908, allocations: 91.69 kB / 412.1 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.291, allocations: 188.9 kB / 412.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004297/0.2915, allocations: 352.1 kB / 412.6 MB, free: 23.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.2915, allocations: 5.438 kB / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2915, allocations: 0 / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.2915, allocations: 0 / 412.6 MB, free: 23.11 MB / 298.7 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.001449/0.293, allocations: 0.6666 MB / 413.3 MB, free: 22.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.293, allocations: 8.031 kB / 413.3 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.2932, allocations: 44.41 kB / 413.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003844/0.2936, allocations: 287.7 kB / 413.6 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.505e-05/0.2936, allocations: 32.95 kB / 413.7 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.557e-05/0.2937, allocations: 32.28 kB / 413.7 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009317/0.2947, allocations: 374.4 kB / 414.1 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/0.2947, allocations: 4.188 kB / 414.1 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.746e-05/0.2948, allocations: 11.94 kB / 414.1 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.2948, allocations: 8 kB / 414.1 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/0.2959, allocations: 374.4 kB / 414.5 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.2984, allocations: 1.147 MB / 415.6 MB, free: 19.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007876/0.2992, allocations: 324.3 kB / 415.9 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004908/0.2997, allocations: 196.7 kB / 416.1 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.95e-05/0.2998, allocations: 4.719 kB / 416.1 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.2998, allocations: 38.56 kB / 416.2 MB, free: 19.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.986e-06/0.2998, allocations: 0 / 416.2 MB, free: 19.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.006087/0.3059, allocations: 2.057 MB / 418.2 MB, free: 17.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/0.306, allocations: 55.84 kB / 418.3 MB, free: 17.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.3063, allocations: 264.8 kB / 418.5 MB, free: 16.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.081e-05/0.3064, allocations: 41.64 kB / 418.6 MB, free: 16.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.831e-05/0.3065, allocations: 156.8 kB / 418.7 MB, free: 16.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.3067, allocations: 161.8 kB / 418.9 MB, free: 16.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.496e-05/0.3067, allocations: 12 kB / 418.9 MB, free: 16.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.814e-05/0.3068, allocations: 342.8 kB / 419.2 MB, free: 16.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004676/0.3073, allocations: 181 kB / 419.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006015/0.3079, allocations: 260.8 kB / 419.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008624/0.3088, allocations: 349.6 kB / 420 MB, free: 15.33 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3088, allocations: 0 / 420 MB, free: 15.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001628/0.3104, allocations: 0.5988 MB / 420.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.3105, allocations: 4 kB / 420.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.3105, allocations: 4 kB / 420.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008972/0.3114, allocations: 289.6 kB / 420.9 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004056/0.3118, allocations: 71.91 kB / 421 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.3133, allocations: 1.354 MB / 422.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006209/0.3139, allocations: 96.03 kB / 422.4 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.202e-05/0.314, allocations: 20 kB / 422.4 MB, free: 12.83 MB / 298.7 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 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.000242/0.3142, allocations: 161.6 kB / 422.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.3143, allocations: 39.52 kB / 422.6 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.3145, allocations: 63.53 kB / 422.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.3145, allocations: 4 kB / 422.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.3145, allocations: 0 / 422.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.3145, allocations: 3.984 kB / 422.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003319/0.3179, allocations: 1.366 MB / 424.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.3179, allocations: 0 / 424.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000372/0.3183, allocations: 55.92 kB / 424.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006825/0.319, allocations: 265.7 kB / 424.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.595e-05/0.319, allocations: 15.98 kB / 424.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.3203, allocations: 1.3 MB / 425.7 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3203, allocations: 0 / 425.7 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001996/0.3223, allocations: 0.8854 MB / 426.6 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002228/0.3225, allocations: 160.6 kB / 426.7 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.3226, allocations: 16.06 kB / 426.7 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004325/0.3231, allocations: 59.95 kB / 426.8 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002335/0.3233, allocations: 103.7 kB / 426.9 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.738e-05/0.3234, allocations: 27.97 kB / 426.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002017/0.3236, allocations: 176.5 kB / 427.1 MB, free: 7.957 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3236, allocations: 0 / 427.1 MB, free: 7.957 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006533/0.3243, allocations: 96 kB / 427.2 MB, free: 7.863 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001027/0.3253, allocations: 397.1 kB / 427.6 MB, free: 7.594 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.3267, allocations: 485.3 kB / 428.1 MB, free: 7.117 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3267, allocations: 0 / 428.1 MB, free: 7.117 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007315/0.3274, allocations: 276.7 kB / 428.3 MB, free: 6.848 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007576/0.3282, allocations: 56.52 kB / 428.4 MB, free: 6.793 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002932/0.3311, allocations: 1.289 MB / 429.7 MB, free: 5.457 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.3314, allocations: 0.792 MB / 430.5 MB, free: 4.641 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.3316, allocations: 31.42 kB / 430.5 MB, free: 4.609 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3316, allocations: 0 / 430.5 MB, free: 4.609 MB / 298.7 MB Notification: Performance of Templates: time 0.01163/0.3432, allocations: 6.992 MB / 437.5 MB, free: 13.62 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches