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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 114.2 kB / 17.75 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 185.4 kB / 18.68 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009654/0.0009654, allocations: 47.92 kB / 352 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2114, allocations: 49.43 MB / 401.4 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00313/0.2145, allocations: 2.445 MB / 403.8 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008714/0.2154, allocations: 495.2 kB / 404.3 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.2155, allocations: 8 kB / 404.3 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.2157, allocations: 51.5 kB / 404.4 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001444/0.2159, allocations: 83.27 kB / 404.5 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004267/0.2163, allocations: 195.7 kB / 404.7 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004159/0.2167, allocations: 495.1 kB / 405.1 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.2169, allocations: 56.72 kB / 405.2 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002077/0.2171, allocations: 219.4 kB / 405.4 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002735/0.2174, allocations: 235.2 kB / 405.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.327e-05/0.2175, allocations: 44 kB / 405.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.2176, allocations: 91.88 kB / 405.8 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.2177, allocations: 91.72 kB / 405.9 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001642/0.2179, allocations: 187.1 kB / 406 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004354/0.2183, allocations: 467.8 kB / 406.5 MB, free: 3.953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2184, allocations: 3.938 kB / 406.5 MB, free: 3.949 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2184, allocations: 0 / 406.5 MB, free: 3.949 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.2184, allocations: 0 / 406.5 MB, free: 3.949 MB / 318.1 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.001188/0.2196, allocations: 0.6587 MB / 407.2 MB, free: 3.238 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.2196, allocations: 8.031 kB / 407.2 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.598e-05/0.2197, allocations: 40.47 kB / 407.2 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003274/0.22, allocations: 284.6 kB / 407.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.2201, allocations: 24.94 kB / 407.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.464e-05/0.2202, allocations: 28.38 kB / 407.5 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006937/0.2209, allocations: 381.2 kB / 407.9 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.2209, allocations: 4.094 kB / 407.9 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.441e-05/0.2209, allocations: 19.94 kB / 407.9 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.2209, allocations: 8 kB / 407.9 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007468/0.2217, allocations: 402 kB / 408.3 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.2235, allocations: 1.108 MB / 409.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004952/0.224, allocations: 291.7 kB / 409.7 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003481/0.2244, allocations: 201.8 kB / 409.9 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.2244, allocations: 4 kB / 409.9 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.2245, allocations: 38.5 kB / 410 MB, free: 300 kB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.774e-06/0.2245, allocations: 0 / 410 MB, free: 300 kB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004507/0.229, allocations: 2.033 MB / 412 MB, free: 14.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.464e-05/0.229, allocations: 55.41 kB / 412.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.2292, allocations: 240.9 kB / 412.3 MB, free: 13.81 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.287e-05/0.2293, allocations: 37.7 kB / 412.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.573e-05/0.2294, allocations: 152.7 kB / 412.5 MB, free: 13.61 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.2295, allocations: 158 kB / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.2297, allocations: 98.14 kB / 412.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.2298, allocations: 346.8 kB / 413.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003958/0.2302, allocations: 209 kB / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004294/0.2306, allocations: 288.8 kB / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006123/0.2313, allocations: 373.7 kB / 413.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2313, allocations: 0 / 413.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001598/0.2329, allocations: 0.6925 MB / 414.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.2329, allocations: 4 kB / 414.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.2329, allocations: 7.984 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008008/0.2337, allocations: 485.5 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002909/0.234, allocations: 83.83 kB / 415.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.2354, allocations: 1.39 MB / 416.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004415/0.2358, allocations: 68.05 kB / 416.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.051e-05/0.2359, allocations: 23.92 kB / 416.7 MB, free: 9.297 MB / 334.1 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 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001831/0.2361, allocations: 162.2 kB / 416.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.829e-05/0.2362, allocations: 35.56 kB / 416.8 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.2363, allocations: 47.36 kB / 416.9 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.164e-05/0.2363, allocations: 7.984 kB / 416.9 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2363, allocations: 4 kB / 416.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.2365, allocations: 148.8 kB / 417 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.079e-05/0.2366, allocations: 20 kB / 417.1 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004506/0.2371, allocations: 55.92 kB / 417.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.2372, allocations: 79.86 kB / 417.2 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001628/0.2389, allocations: 0.6655 MB / 417.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001301/0.2402, allocations: 0.8425 MB / 418.7 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000385/0.2406, allocations: 212.3 kB / 418.9 MB, free: 6.977 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001466/0.2407, allocations: 172.4 kB / 419.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of Backend: time 2.6e-07/0.2407, allocations: 0 / 419.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.2418, allocations: 449 kB / 419.5 MB, free: 6.367 MB / 334.1 MB Notification: Performance of SimCode: time 0.001455/0.2433, allocations: 1.25 MB / 420.8 MB, free: 5.066 MB / 334.1 MB Notification: Performance of Templates: time 0.01231/0.2556, allocations: 8.155 MB / 428.9 MB, free: 12.94 MB / 350.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches