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.002376/0.002376, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.11/3.11, allocations: 226.5 MB / 245.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001887/0.001887, allocations: 103 kB / 297.4 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004229/0.0004232, allocations: 4 kB / 357.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7243/0.7248, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2335/0.9584, allocations: 80.46 MB / 489.1 MB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003549/0.9588, allocations: 67.97 kB / 489.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05291/1.012, allocations: 7.955 MB / 497.1 MB, free: 3.129 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.489e-06/1.012, allocations: 0 / 497.1 MB, free: 3.129 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.534e-05/1.012, allocations: 8 kB / 497.1 MB, free: 3.121 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.006474/1.018, allocations: 0.6627 MB / 497.8 MB, free: 2.402 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.8e-05/1.019, allocations: 12.03 kB / 497.8 MB, free: 2.391 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002641/1.019, allocations: 40.47 kB / 497.9 MB, free: 2.352 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009318/1.02, allocations: 291.6 kB / 498.1 MB, free: 2.027 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.512e-05/1.02, allocations: 21.03 kB / 498.2 MB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/1.02, allocations: 36.31 kB / 498.2 MB, free: 1.973 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005485/1.025, allocations: 366.5 kB / 498.6 MB, free: 1.613 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.074e-05/1.026, allocations: 192 / 498.6 MB, free: 1.613 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/1.026, allocations: 15.94 kB / 498.6 MB, free: 1.598 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/1.026, allocations: 8 kB / 498.6 MB, free: 1.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/1.027, allocations: 378.4 kB / 498.9 MB, free: 1.219 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003591/1.031, allocations: 1.155 MB / 0.4884 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000948/1.032, allocations: 328.6 kB / 0.4887 GB, free: 15.65 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005628/1.032, allocations: 192.8 kB / 0.4889 GB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.219e-05/1.032, allocations: 8.625 kB / 0.4889 GB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.17e-05/1.032, allocations: 34.56 kB / 0.4889 GB, free: 15.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 6.632e-06/1.032, allocations: 3.938 kB / 0.4889 GB, free: 15.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.01237/1.045, allocations: 2.049 MB / 0.4909 GB, free: 13.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.658e-05/1.045, allocations: 63.78 kB / 0.491 GB, free: 13.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004712/1.05, allocations: 245 kB / 0.4912 GB, free: 12.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002157/1.05, allocations: 49.69 kB / 0.4913 GB, free: 12.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/1.05, allocations: 148.8 kB / 0.4914 GB, free: 12.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002912/1.05, allocations: 161.8 kB / 0.4916 GB, free: 12.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.145e-05/1.051, allocations: 12 kB / 0.4916 GB, free: 12.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002651/1.051, allocations: 342.8 kB / 0.4919 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001359/1.052, allocations: 181 kB / 0.4921 GB, free: 12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007224/1.053, allocations: 268.8 kB / 0.4923 GB, free: 11.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009908/1.054, allocations: 349.6 kB / 0.4927 GB, free: 11.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/1.054, allocations: 0 / 0.4927 GB, free: 11.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001991/1.056, allocations: 0.5988 MB / 0.4932 GB, free: 10.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/1.056, allocations: 4 kB / 0.4933 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/1.056, allocations: 8.062 kB / 0.4933 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/1.057, allocations: 293.7 kB / 0.4935 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006494/1.058, allocations: 71.91 kB / 0.4936 GB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002361/1.06, allocations: 1.347 MB / 0.4949 GB, free: 8.969 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008642/1.061, allocations: 100.1 kB / 0.495 GB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.973e-05/1.061, allocations: 16.19 kB / 0.495 GB, free: 8.855 MB / 378.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.0006163/1.062, allocations: 173.3 kB / 0.4952 GB, free: 8.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00017/1.062, allocations: 39.5 kB / 0.4952 GB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002043/1.062, allocations: 51.61 kB / 0.4953 GB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/1.062, allocations: 8 kB / 0.4953 GB, free: 8.582 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-05/1.062, allocations: 0 / 0.4953 GB, free: 8.582 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/1.062, allocations: 0 / 0.4953 GB, free: 8.582 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005401/1.068, allocations: 1.366 MB / 0.4966 GB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/1.068, allocations: 4 kB / 0.4966 GB, free: 7.133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00049/1.068, allocations: 63.91 kB / 0.4967 GB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001006/1.069, allocations: 265.7 kB / 0.4969 GB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.189e-05/1.069, allocations: 15.98 kB / 0.497 GB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002019/1.071, allocations: 1.304 MB / 0.4982 GB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.227e-06/1.071, allocations: 4.156 kB / 0.4982 GB, free: 5.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00282/1.074, allocations: 0.8852 MB / 0.4991 GB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005351/1.075, allocations: 164.6 kB / 0.4993 GB, free: 4.332 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/1.075, allocations: 16 kB / 0.4993 GB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005224/1.076, allocations: 55.95 kB / 0.4993 GB, free: 4.262 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000375/1.076, allocations: 103.7 kB / 0.4994 GB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.951e-05/1.076, allocations: 19.98 kB / 0.4994 GB, free: 4.141 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004228/1.076, allocations: 184.4 kB / 0.4996 GB, free: 3.961 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.076, allocations: 0 / 0.4996 GB, free: 3.961 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009951/1.077, allocations: 111.9 kB / 0.4997 GB, free: 3.852 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 7,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001731/1.079, allocations: 388.1 kB / 0.5001 GB, free: 3.586 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00252/1.082, allocations: 473.4 kB / 0.5005 GB, free: 3.121 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/1.082, allocations: 0 / 0.5005 GB, free: 3.121 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000971/1.083, allocations: 284.6 kB / 0.5008 GB, free: 2.844 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009898/1.084, allocations: 66.95 kB / 0.5009 GB, free: 2.781 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00425/1.088, allocations: 1.27 MB / 0.5021 GB, free: 1.461 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006642/1.089, allocations: 0.7957 MB / 0.5029 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001975/1.089, allocations: 31.42 kB / 0.5029 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of SimCode: time 1.643e-06/1.089, allocations: 0 / 0.5029 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of Templates: time 0.5737/1.663, allocations: 7.022 MB / 0.5098 GB, free: 95.89 MB / 378.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/jenkins1/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