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.0009235/0.0009236, allocations: 197.1 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.6 MB / 244.3 MB, free: 6.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007253/0.0007252, allocations: 98.69 kB / 296.4 MB, free: 6.781 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001778/0.0001778, allocations: 8 kB / 356.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1935/0.1937, allocations: 51.3 MB / 407.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.001846/0.1956, allocations: 2.149 MB / 409.6 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006872/0.1963, allocations: 0.5416 MB / 410.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.654e-05/0.1964, allocations: 7.938 kB / 410.2 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.1965, allocations: 51.69 kB / 410.2 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.1967, allocations: 118.3 kB / 410.4 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001617/0.1969, allocations: 120.4 kB / 410.5 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002513/0.1971, allocations: 444.9 kB / 410.9 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.537e-05/0.1972, allocations: 58.06 kB / 411 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.1974, allocations: 207.3 kB / 411.2 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.1976, allocations: 216 kB / 411.4 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.47e-05/0.1976, allocations: 23 kB / 411.4 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.1978, allocations: 71.97 kB / 411.5 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.644e-05/0.1978, allocations: 83.7 kB / 411.6 MB, free: 23.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.298e-05/0.1979, allocations: 81.52 kB / 411.6 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002332/0.1981, allocations: 360.1 kB / 412 MB, free: 23.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1981, allocations: 0 / 412 MB, free: 23.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.1981, allocations: 0 / 412 MB, free: 23.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.1982, allocations: 0 / 412 MB, free: 23.29 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.0008808/0.199, allocations: 0.6681 MB / 412.7 MB, free: 22.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.007e-05/0.1991, allocations: 12.03 kB / 412.7 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.889e-05/0.1991, allocations: 35.53 kB / 412.7 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.1994, allocations: 286.4 kB / 413 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.1994, allocations: 24.59 kB / 413 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.84e-05/0.1994, allocations: 35.95 kB / 413 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005404/0.2, allocations: 369.9 kB / 413.4 MB, free: 21.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.2, allocations: 0 / 413.4 MB, free: 21.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.2001, allocations: 12 kB / 413.4 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.2001, allocations: 8 kB / 413.4 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006224/0.2007, allocations: 374.4 kB / 413.8 MB, free: 21.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.2022, allocations: 1.143 MB / 414.9 MB, free: 20.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004673/0.2026, allocations: 332.2 kB / 415.3 MB, free: 19.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002786/0.2029, allocations: 188.7 kB / 415.4 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.203, allocations: 8.672 kB / 415.4 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.197e-05/0.203, allocations: 34.56 kB / 415.5 MB, free: 19.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.312e-06/0.203, allocations: 4 kB / 415.5 MB, free: 19.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.003595/0.2066, allocations: 2.053 MB / 417.5 MB, free: 17.4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.826e-05/0.2066, allocations: 63.77 kB / 417.6 MB, free: 17.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000176/0.2068, allocations: 245 kB / 417.8 MB, free: 17.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.888e-05/0.2069, allocations: 45.64 kB / 417.9 MB, free: 17.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.169e-05/0.2069, allocations: 156.8 kB / 418 MB, free: 16.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.067e-05/0.207, allocations: 165.8 kB / 418.2 MB, free: 16.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.504e-05/0.207, allocations: 12 kB / 418.2 MB, free: 16.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.513e-05/0.2071, allocations: 342.8 kB / 418.5 MB, free: 16.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003069/0.2074, allocations: 185 kB / 418.7 MB, free: 16.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003229/0.2077, allocations: 260.8 kB / 419 MB, free: 15.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.208, allocations: 152.7 kB / 419.1 MB, free: 15.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.208, allocations: 0 / 419.1 MB, free: 15.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008992/0.2089, allocations: 0.5988 MB / 419.7 MB, free: 15.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.2089, allocations: 4 kB / 419.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.2089, allocations: 4 kB / 419.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005213/0.2095, allocations: 293.8 kB / 420 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002331/0.2097, allocations: 71.84 kB / 420.1 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008174/0.2105, allocations: 1.353 MB / 421.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003983/0.2109, allocations: 100 kB / 421.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.211, allocations: 16 kB / 421.6 MB, free: 13.24 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.0001326/0.2111, allocations: 153.8 kB / 421.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.222e-05/0.2112, allocations: 39.56 kB / 421.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.982e-05/0.2113, allocations: 55.62 kB / 421.8 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.2113, allocations: 8.188 kB / 421.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.2113, allocations: 0 / 421.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2113, allocations: 11.92 kB / 421.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002053/0.2134, allocations: 1.37 MB / 423.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2134, allocations: 0 / 423.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002385/0.2136, allocations: 59.91 kB / 423.3 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004104/0.214, allocations: 269.7 kB / 423.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.176e-05/0.2141, allocations: 15.98 kB / 423.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007598/0.2148, allocations: 1.296 MB / 424.8 MB, free: 9.828 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2149, allocations: 4.062 kB / 424.8 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.2161, allocations: 0.8892 MB / 425.7 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/0.2163, allocations: 156.6 kB / 425.9 MB, free: 8.727 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.375e-05/0.2163, allocations: 16 kB / 425.9 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/0.2166, allocations: 55.95 kB / 425.9 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.2168, allocations: 103.7 kB / 426 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.164e-05/0.2168, allocations: 23.97 kB / 426.1 MB, free: 8.531 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001209/0.2169, allocations: 176.5 kB / 426.2 MB, free: 8.359 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2169, allocations: 4 kB / 426.2 MB, free: 8.355 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003423/0.2173, allocations: 100 kB / 426.3 MB, free: 8.258 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.0006461/0.2179, allocations: 377.8 kB / 426.7 MB, free: 8.008 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008065/0.2188, allocations: 485.2 kB / 427.2 MB, free: 7.535 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2188, allocations: 3.938 kB / 427.2 MB, free: 7.531 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004462/0.2192, allocations: 280.7 kB / 427.5 MB, free: 7.258 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/0.2197, allocations: 64.55 kB / 427.5 MB, free: 7.195 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.2216, allocations: 1.267 MB / 428.8 MB, free: 5.875 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001695/0.2218, allocations: 0.792 MB / 429.6 MB, free: 5.059 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.539e-05/0.2219, allocations: 31.42 kB / 429.6 MB, free: 5.027 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2219, allocations: 0 / 429.6 MB, free: 5.027 MB / 298.7 MB Notification: Performance of Templates: time 0.007411/0.2293, allocations: 7.014 MB / 436.6 MB, free: 14.02 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