Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 177.2 kB / 17.4 MB, free: 4.281 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.3 MB / 241.4 MB, free: 11.68 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007622/0.0007622, allocations: 101 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003065, allocations: 15.92 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.237, allocations: 50.4 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.12/0.3571, allocations: 78.92 MB / 481.7 MB, free: 1.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001693/0.3573, allocations: 71.91 kB / 481.7 MB, free: 1.359 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01497/0.3723, allocations: 5.649 MB / 487.4 MB, free: 11.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3723, allocations: 0 / 487.4 MB, free: 11.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.3724, allocations: 8 kB / 487.4 MB, free: 11.68 MB / 362.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.001089/0.3735, allocations: 0.6159 MB / 488 MB, free: 11.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.3735, allocations: 12.03 kB / 488 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.4e-05/0.3736, allocations: 36.47 kB / 488 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.3739, allocations: 276.7 kB / 488.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.454e-05/0.374, allocations: 28.92 kB / 488.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.418e-05/0.3741, allocations: 32.38 kB / 488.4 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006523/0.3747, allocations: 361.2 kB / 488.7 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.3748, allocations: 8.094 kB / 488.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.3748, allocations: 11.94 kB / 488.8 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.3748, allocations: 8 kB / 488.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007059/0.3755, allocations: 366 kB / 489.1 MB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.3775, allocations: 1.131 MB / 490.2 MB, free: 8.648 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004835/0.378, allocations: 288.3 kB / 490.5 MB, free: 8.355 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003368/0.3783, allocations: 188.8 kB / 490.7 MB, free: 8.168 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.64e-05/0.3784, allocations: 8.625 kB / 490.7 MB, free: 8.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/0.3784, allocations: 38.56 kB / 490.8 MB, free: 8.113 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.974e-06/0.3784, allocations: 0 / 490.8 MB, free: 8.113 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.004125/0.3825, allocations: 2.027 MB / 492.8 MB, free: 5.953 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.3826, allocations: 55.84 kB / 492.8 MB, free: 5.887 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001888/0.3828, allocations: 209 kB / 493 MB, free: 5.672 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.888e-05/0.3828, allocations: 41.69 kB / 493.1 MB, free: 5.625 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.036e-05/0.3829, allocations: 149.9 kB / 493.2 MB, free: 5.473 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.3831, allocations: 157.9 kB / 493.4 MB, free: 5.316 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.3831, allocations: 11.94 kB / 493.4 MB, free: 5.305 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.3832, allocations: 342.8 kB / 493.7 MB, free: 4.961 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.3836, allocations: 189 kB / 493.9 MB, free: 4.777 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004051/0.384, allocations: 260.8 kB / 494.2 MB, free: 4.496 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000595/0.3846, allocations: 345.7 kB / 494.5 MB, free: 4.133 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3846, allocations: 0 / 494.5 MB, free: 4.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001412/0.3861, allocations: 0.6532 MB / 495.2 MB, free: 3.469 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.3861, allocations: 9.25 kB / 495.2 MB, free: 3.461 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/0.3861, allocations: 4.109 kB / 495.2 MB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007006/0.3868, allocations: 389.4 kB / 495.6 MB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.3871, allocations: 79.84 kB / 495.6 MB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.3882, allocations: 1.315 MB / 496.9 MB, free: 1.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004202/0.3886, allocations: 100 kB / 497 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.766e-05/0.3887, allocations: 20 kB / 497.1 MB, free: 1.508 MB / 362.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): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001901/0.3889, allocations: 157.8 kB / 497.2 MB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.113e-05/0.389, allocations: 31.56 kB / 497.3 MB, free: 1.312 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001444/0.3904, allocations: 0.6483 MB / 497.9 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3904, allocations: 8 kB / 497.9 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3904, allocations: 0 / 497.9 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.3905, allocations: 7.984 kB / 497.9 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002557/0.393, allocations: 1.314 MB / 499.2 MB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.393, allocations: 4 kB / 499.2 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002657/0.3933, allocations: 59.91 kB / 499.3 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005916/0.3939, allocations: 361.6 kB / 499.6 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.542e-05/0.394, allocations: 19.97 kB / 499.7 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009883/0.395, allocations: 1.265 MB / 0.4892 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.395, allocations: 8.016 kB / 0.4892 GB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.3966, allocations: 0.865 MB / 0.49 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000175/0.3968, allocations: 148.7 kB / 0.4902 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.993e-05/0.3969, allocations: 20 kB / 0.4902 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000287/0.3972, allocations: 51.95 kB / 0.4903 GB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/0.3974, allocations: 99.78 kB / 0.4903 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.183e-05/0.3974, allocations: 28.09 kB / 0.4904 GB, free: 12.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001324/0.3976, allocations: 156.5 kB / 0.4905 GB, free: 12.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.282e-06/0.3976, allocations: 0 / 0.4905 GB, free: 12.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000452/0.398, allocations: 111.9 kB / 0.4906 GB, free: 11.95 MB / 378.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.0002299/0.3983, allocations: 154.7 kB / 0.4908 GB, free: 11.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.3993, allocations: 0.5251 MB / 0.4913 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3994, allocations: 0 / 0.4913 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005594/0.3999, allocations: 288.2 kB / 0.4916 GB, free: 10.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004914/0.4004, allocations: 56.28 kB / 0.4916 GB, free: 10.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/0.4026, allocations: 1.159 MB / 0.4927 GB, free: 9.715 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.4029, allocations: 0.7764 MB / 0.4935 GB, free: 8.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000141/0.4031, allocations: 30.97 kB / 0.4935 GB, free: 8.879 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.035e-05/0.4031, allocations: 27.42 kB / 0.4936 GB, free: 8.852 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4031, allocations: 0 / 0.4936 GB, free: 8.852 MB / 378.7 MB Notification: Performance of Templates: time 0.01177/0.4149, allocations: 7.404 MB / 0.5008 GB, free: 1.488 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches