Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009047/0.0009047, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.506/1.506, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008063/0.0008061, allocations: 81 kB / 271.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003369/0.0003372, allocations: 8 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2727, allocations: 47.56 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002283/0.275, allocations: 2.028 MB / 377.1 MB, free: 43.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008565/0.2759, allocations: 0.4934 MB / 377.6 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.276, allocations: 3.625 kB / 377.6 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.2762, allocations: 35.33 kB / 377.6 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001262/0.2764, allocations: 68.33 kB / 377.7 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.2768, allocations: 146.8 kB / 377.8 MB, free: 43.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003932/0.2772, allocations: 433.2 kB / 378.3 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.2774, allocations: 57.34 kB / 378.3 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002233/0.2776, allocations: 189.8 kB / 378.5 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002622/0.2779, allocations: 214.9 kB / 378.7 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.907e-05/0.2779, allocations: 19.5 kB / 378.7 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001696/0.2781, allocations: 57.62 kB / 378.8 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.127e-05/0.2782, allocations: 79.58 kB / 378.9 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.2784, allocations: 176.2 kB / 379 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002974/0.2787, allocations: 322.3 kB / 379.4 MB, free: 42.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2787, allocations: 0 / 379.4 MB, free: 42.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2787, allocations: 0 / 379.4 MB, free: 42.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.2787, allocations: 1.156 kB / 379.4 MB, free: 42.26 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001103/0.2798, allocations: 0.625 MB / 380 MB, free: 41.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.2799, allocations: 9 kB / 380 MB, free: 41.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.114e-05/0.28, allocations: 38.44 kB / 380 MB, free: 41.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003264/0.2803, allocations: 280.8 kB / 380.3 MB, free: 41.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.982e-05/0.2804, allocations: 20.34 kB / 380.3 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.033e-05/0.2804, allocations: 30.69 kB / 380.4 MB, free: 41.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008141/0.2813, allocations: 386.3 kB / 380.7 MB, free: 41.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.2813, allocations: 6 kB / 380.7 MB, free: 41.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.42e-05/0.2813, allocations: 13.81 kB / 380.8 MB, free: 41.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.2814, allocations: 7.375 kB / 380.8 MB, free: 41.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000898/0.2823, allocations: 405.5 kB / 381.2 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.2844, allocations: 1.128 MB / 382.3 MB, free: 40.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005516/0.285, allocations: 297.4 kB / 382.6 MB, free: 39.92 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003701/0.2853, allocations: 213.4 kB / 382.8 MB, free: 39.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.593e-05/0.2854, allocations: 4.25 kB / 382.8 MB, free: 39.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.2854, allocations: 35.62 kB / 382.8 MB, free: 39.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 2.284e-06/0.2854, allocations: 0 / 382.8 MB, free: 39.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.00474/0.2902, allocations: 2.103 MB / 384.9 MB, free: 38.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.2902, allocations: 56.44 kB / 385 MB, free: 38.33 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002481/0.2905, allocations: 237.7 kB / 385.2 MB, free: 38.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.822e-05/0.2905, allocations: 46.16 kB / 385.3 MB, free: 38.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.951e-05/0.2906, allocations: 155.8 kB / 385.4 MB, free: 37.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.2908, allocations: 156 kB / 385.6 MB, free: 37.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.273e-05/0.2908, allocations: 10.34 kB / 385.6 MB, free: 37.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.77e-05/0.2909, allocations: 345.1 kB / 385.9 MB, free: 37.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003262/0.2912, allocations: 209.1 kB / 386.1 MB, free: 37.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003591/0.2916, allocations: 284.8 kB / 386.4 MB, free: 36.97 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005147/0.2921, allocations: 381.7 kB / 386.8 MB, free: 36.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2921, allocations: 0 / 386.8 MB, free: 36.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001222/0.2933, allocations: 0.6924 MB / 387.5 MB, free: 35.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.2934, allocations: 4 kB / 387.5 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.2934, allocations: 4 kB / 387.5 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008158/0.2942, allocations: 0.4897 MB / 388 MB, free: 35.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.2945, allocations: 71.91 kB / 388 MB, free: 35.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009607/0.2955, allocations: 1.394 MB / 389.4 MB, free: 33.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003898/0.2959, allocations: 96.06 kB / 389.5 MB, free: 33.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.052e-05/0.2959, allocations: 16 kB / 389.5 MB, free: 33.74 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 (49): * Single equations (assignments): 47 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001749/0.2961, allocations: 166.6 kB / 389.7 MB, free: 33.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.292e-05/0.2962, allocations: 35.56 kB / 389.7 MB, free: 33.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.2963, allocations: 47.3 kB / 389.8 MB, free: 33.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.2963, allocations: 4 kB / 389.8 MB, free: 33.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.2963, allocations: 7.938 kB / 389.8 MB, free: 33.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.81e-06/0.2963, allocations: 0 / 389.8 MB, free: 33.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002437/0.2987, allocations: 1.385 MB / 391.2 MB, free: 32.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.2988, allocations: 4 kB / 391.2 MB, free: 32.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002564/0.299, allocations: 63.91 kB / 391.2 MB, free: 31.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006203/0.2997, allocations: 465.6 kB / 391.7 MB, free: 31.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.36e-05/0.2997, allocations: 23.86 kB / 391.7 MB, free: 31.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009236/0.3006, allocations: 1.335 MB / 393.1 MB, free: 30.08 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3007, allocations: 7.969 kB / 393.1 MB, free: 30.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.3022, allocations: 0.9471 MB / 394 MB, free: 29.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.3024, allocations: 156.8 kB / 394.2 MB, free: 28.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.149e-05/0.3025, allocations: 19.98 kB / 394.2 MB, free: 28.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002741/0.3028, allocations: 55.89 kB / 394.2 MB, free: 28.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.3029, allocations: 103.7 kB / 394.3 MB, free: 28.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.634e-05/0.303, allocations: 23.97 kB / 394.4 MB, free: 28.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001272/0.3031, allocations: 164.5 kB / 394.5 MB, free: 28.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3031, allocations: 0 / 394.5 MB, free: 28.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000468/0.3036, allocations: 108 kB / 394.6 MB, free: 28.45 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 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000241/0.3038, allocations: 145.6 kB / 394.8 MB, free: 28.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008991/0.3047, allocations: 0.5066 MB / 395.3 MB, free: 27.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3048, allocations: 0 / 395.3 MB, free: 27.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004693/0.3052, allocations: 292.3 kB / 395.6 MB, free: 27.51 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005053/0.3058, allocations: 52.19 kB / 395.6 MB, free: 27.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.3078, allocations: 1.199 MB / 396.8 MB, free: 26.22 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.3081, allocations: 0.7803 MB / 397.6 MB, free: 25.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.604e-05/0.3082, allocations: 27.44 kB / 397.6 MB, free: 25.38 MB / 298.7 MB Notification: Performance of SimCode: time 9.62e-07/0.3082, allocations: 0 / 397.6 MB, free: 25.38 MB / 298.7 MB Notification: Performance of Templates: time 0.007455/0.3156, allocations: 6.582 MB / 404.2 MB, free: 18.79 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches