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.0009998/0.0009998, allocations: 179.5 kB / 16.41 MB, free: 5.703 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.335/1.335, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.0007477/0.000748, allocations: 97.95 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002922, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2053/0.2056, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.001878/0.2075, allocations: 2.03 MB / 376.6 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000687/0.2082, allocations: 0.4898 MB / 377.1 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.2084, allocations: 7.188 kB / 377.1 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001636/0.2085, allocations: 39.08 kB / 377.1 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.2086, allocations: 68.17 kB / 377.2 MB, free: 43.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003115/0.209, allocations: 142.5 kB / 377.3 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000313/0.2093, allocations: 428.9 kB / 377.7 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.2094, allocations: 50.22 kB / 377.8 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001861/0.2096, allocations: 188.2 kB / 378 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002151/0.2098, allocations: 211.5 kB / 378.2 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.219e-05/0.2099, allocations: 20.31 kB / 378.2 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.21, allocations: 65.67 kB / 378.3 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.059e-05/0.2101, allocations: 74.75 kB / 378.3 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.674e-05/0.2102, allocations: 83.33 kB / 378.4 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002527/0.2104, allocations: 325.6 kB / 378.7 MB, free: 42.33 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.2105, allocations: 1.156 kB / 378.7 MB, free: 42.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2105, allocations: 0 / 378.7 MB, free: 42.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.8e-06/0.2105, allocations: 0 / 378.7 MB, free: 42.33 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.0009868/0.2115, allocations: 0.6201 MB / 379.4 MB, free: 41.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.2115, allocations: 9.938 kB / 379.4 MB, free: 41.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.083e-05/0.2116, allocations: 32.09 kB / 379.4 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002365/0.2118, allocations: 271.2 kB / 379.7 MB, free: 41.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/0.2119, allocations: 28.45 kB / 379.7 MB, free: 41.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.118e-05/0.2119, allocations: 26.56 kB / 379.7 MB, free: 41.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006251/0.2126, allocations: 385.7 kB / 380.1 MB, free: 41.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.2126, allocations: 5.938 kB / 380.1 MB, free: 41.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.2126, allocations: 14.39 kB / 380.1 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.2127, allocations: 6.062 kB / 380.1 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006955/0.2134, allocations: 405.6 kB / 380.5 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.215, allocations: 1.137 MB / 381.6 MB, free: 40.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004613/0.2154, allocations: 305.4 kB / 381.9 MB, free: 40 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003186/0.2158, allocations: 197.5 kB / 382.1 MB, free: 39.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.2158, allocations: 3.781 kB / 382.1 MB, free: 39.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.2158, allocations: 41.12 kB / 382.2 MB, free: 39.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.644e-06/0.2158, allocations: 4 kB / 382.2 MB, free: 39.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004026/0.2199, allocations: 2.101 MB / 384.3 MB, free: 38.47 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.358e-05/0.2199, allocations: 59.8 kB / 384.3 MB, free: 38.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.2201, allocations: 238.9 kB / 384.6 MB, free: 38.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.094e-05/0.2201, allocations: 37.98 kB / 384.6 MB, free: 38.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.127e-05/0.2202, allocations: 151.1 kB / 384.8 MB, free: 38.05 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.736e-05/0.2203, allocations: 155.9 kB / 384.9 MB, free: 37.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.817e-05/0.2203, allocations: 14.77 kB / 384.9 MB, free: 37.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.243e-05/0.2204, allocations: 337.3 kB / 385.3 MB, free: 37.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003601/0.2208, allocations: 213.8 kB / 385.5 MB, free: 37.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003533/0.2211, allocations: 285.2 kB / 385.7 MB, free: 37.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.2214, allocations: 180.7 kB / 385.9 MB, free: 37.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2214, allocations: 0 / 385.9 MB, free: 37.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001163/0.2226, allocations: 0.6847 MB / 386.6 MB, free: 36.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.2226, allocations: 8 kB / 386.6 MB, free: 36.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2226, allocations: 0 / 386.6 MB, free: 36.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006744/0.2233, allocations: 0.4897 MB / 387.1 MB, free: 35.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002476/0.2235, allocations: 75.91 kB / 387.2 MB, free: 35.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000841/0.2244, allocations: 1.397 MB / 388.6 MB, free: 34.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003858/0.2248, allocations: 88.03 kB / 388.7 MB, free: 34.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.616e-05/0.2248, allocations: 20 kB / 388.7 MB, free: 34.22 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.0001408/0.225, allocations: 170 kB / 388.8 MB, free: 34.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.827e-05/0.225, allocations: 31.58 kB / 388.9 MB, free: 34.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.87e-05/0.2251, allocations: 51.3 kB / 388.9 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.175e-06/0.2251, allocations: 4 kB / 388.9 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2251, allocations: 0 / 388.9 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.2252, allocations: 0 / 388.9 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002162/0.2273, allocations: 1.387 MB / 390.3 MB, free: 32.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2273, allocations: 3.953 kB / 390.3 MB, free: 32.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002428/0.2276, allocations: 63.91 kB / 390.4 MB, free: 32.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005464/0.2281, allocations: 469.5 kB / 390.8 MB, free: 31.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.521e-05/0.2282, allocations: 19.92 kB / 390.9 MB, free: 31.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007776/0.229, allocations: 1.343 MB / 392.2 MB, free: 30.55 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.229, allocations: 0 / 392.2 MB, free: 30.55 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.2304, allocations: 0.9509 MB / 393.2 MB, free: 29.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/0.2305, allocations: 148.8 kB / 393.3 MB, free: 29.4 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.146e-05/0.2306, allocations: 16 kB / 393.3 MB, free: 29.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.2309, allocations: 59.91 kB / 393.4 MB, free: 29.33 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.2311, allocations: 99.72 kB / 393.5 MB, free: 29.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.2311, allocations: 23.97 kB / 393.5 MB, free: 29.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001037/0.2312, allocations: 168.5 kB / 393.7 MB, free: 29.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2312, allocations: 0 / 393.7 MB, free: 29.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003517/0.2316, allocations: 108 kB / 393.8 MB, free: 28.94 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.0001768/0.2317, allocations: 139 kB / 393.9 MB, free: 28.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008383/0.2326, allocations: 0.5065 MB / 394.4 MB, free: 28.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2326, allocations: 0 / 394.4 MB, free: 28.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004449/0.2331, allocations: 296.2 kB / 394.7 MB, free: 28 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004294/0.2335, allocations: 50.08 kB / 394.7 MB, free: 27.95 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001827/0.2353, allocations: 1.203 MB / 396 MB, free: 26.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001675/0.2355, allocations: 0.7803 MB / 396.7 MB, free: 25.9 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.634e-05/0.2356, allocations: 27.44 kB / 396.8 MB, free: 25.87 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2356, allocations: 0 / 396.8 MB, free: 25.87 MB / 298.7 MB Notification: Performance of Templates: time 0.006434/0.242, allocations: 6.597 MB / 403.4 MB, free: 19.27 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