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.001489/0.001495, allocations: 110.3 kB / 17.16 MB, free: 6.082 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.001607/0.001607, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.396/1.396, allocations: 222.9 MB / 241.7 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 46.77 kB / 300.6 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09732/0.09846, allocations: 49.44 MB / 350 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003904/0.1024, allocations: 2.479 MB / 352.5 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.1037, allocations: 0.4992 MB / 353 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002196/0.104, allocations: 4 kB / 353 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002838/0.1043, allocations: 31.7 kB / 353.1 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002669/0.1046, allocations: 83.45 kB / 353.1 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004936/0.1051, allocations: 155.8 kB / 353.3 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005263/0.1056, allocations: 467.1 kB / 353.8 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.1058, allocations: 64.56 kB / 353.8 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003102/0.1061, allocations: 195.2 kB / 354 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003271/0.1065, allocations: 223.2 kB / 354.2 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.996e-05/0.1066, allocations: 20 kB / 354.2 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001823/0.1068, allocations: 75.83 kB / 354.3 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.1069, allocations: 75.72 kB / 354.4 MB, free: 488 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.1071, allocations: 171.1 kB / 354.6 MB, free: 316 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003604/0.1075, allocations: 327.6 kB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1075, allocations: 4 kB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1075, allocations: 0 / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.1075, allocations: 4 kB / 354.9 MB, free: 15.98 MB / 302.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.001336/0.1089, allocations: 0.6586 MB / 355.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.1089, allocations: 12.03 kB / 355.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.109, allocations: 32.56 kB / 355.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003343/0.1094, allocations: 280.6 kB / 355.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.43e-05/0.1094, allocations: 24.94 kB / 355.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.548e-05/0.1095, allocations: 32.28 kB / 355.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007617/0.1103, allocations: 373.2 kB / 356.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.1103, allocations: 4.172 kB / 356.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.393e-05/0.1104, allocations: 19.94 kB / 356.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.1104, allocations: 8 kB / 356.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007839/0.1112, allocations: 398 kB / 356.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.1132, allocations: 1.123 MB / 357.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000538/0.1137, allocations: 303.5 kB / 358.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003864/0.1141, allocations: 193.4 kB / 358.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.135e-05/0.1142, allocations: 7.938 kB / 358.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.1142, allocations: 38.56 kB / 358.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 2.795e-06/0.1142, allocations: 0 / 358.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004722/0.119, allocations: 2.025 MB / 360.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.119, allocations: 59.39 kB / 360.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002537/0.1193, allocations: 237 kB / 360.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.925e-05/0.1194, allocations: 37.7 kB / 360.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.1195, allocations: 160.7 kB / 360.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.1196, allocations: 146 kB / 361 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001751/0.1198, allocations: 102.1 kB / 361.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1199, allocations: 342.8 kB / 361.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004054/0.1203, allocations: 209 kB / 361.6 MB, free: 8.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004432/0.1208, allocations: 284.8 kB / 361.9 MB, free: 8.539 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006467/0.1215, allocations: 381.6 kB / 362.3 MB, free: 8.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1215, allocations: 0 / 362.3 MB, free: 8.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00151/0.123, allocations: 0.7002 MB / 363 MB, free: 7.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.123, allocations: 8 kB / 363 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.123, allocations: 0 / 363 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008973/0.1239, allocations: 493.5 kB / 363.5 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.1242, allocations: 71.91 kB / 363.6 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.1256, allocations: 1.39 MB / 364.9 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004176/0.126, allocations: 68.08 kB / 365 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.087e-05/0.1261, allocations: 23.98 kB / 365 MB, free: 5.336 MB / 302.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.0002114/0.1263, allocations: 161.6 kB / 365.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.502e-05/0.1264, allocations: 35.56 kB / 365.2 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001092/0.1265, allocations: 51.3 kB / 365.3 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1265, allocations: 4 kB / 365.3 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.1265, allocations: 4 kB / 365.3 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.1265, allocations: 3.984 kB / 365.3 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002818/0.1293, allocations: 1.345 MB / 366.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.619e-05/0.1294, allocations: 0 / 366.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.1297, allocations: 59.91 kB / 366.7 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007289/0.1304, allocations: 465.5 kB / 367.1 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-05/0.1305, allocations: 15.97 kB / 367.2 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.1317, allocations: 1.339 MB / 368.5 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.1317, allocations: 3.938 kB / 368.5 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/0.1335, allocations: 0.9433 MB / 369.5 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.1337, allocations: 152.7 kB / 369.6 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.1339, allocations: 23.94 kB / 369.6 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003067/0.1342, allocations: 39.89 kB / 369.7 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002121/0.1344, allocations: 83.84 kB / 369.7 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.081e-05/0.1344, allocations: 19.98 kB / 369.8 MB, free: 412 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001594/0.1346, allocations: 172.5 kB / 369.9 MB, free: 240 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1346, allocations: 4 kB / 369.9 MB, free: 236 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004821/0.1351, allocations: 100 kB / 370 MB, free: 136 kB / 302.1 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 (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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1635/0.2986, allocations: 136 kB / 370.2 MB, free: 26.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001585/0.3002, allocations: 0.5056 MB / 370.7 MB, free: 26.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.3003, allocations: 0.5312 kB / 370.7 MB, free: 26.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000653/0.3009, allocations: 292.6 kB / 371 MB, free: 26.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006465/0.3016, allocations: 52.5 kB / 371 MB, free: 26.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002405/0.304, allocations: 1.123 MB / 372.1 MB, free: 26.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.3043, allocations: 0.7879 MB / 372.9 MB, free: 25.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.3044, allocations: 32.31 kB / 373 MB, free: 25.41 MB / 302.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3044, allocations: 0 / 373 MB, free: 25.41 MB / 302.1 MB Notification: Performance of Templates: time 0.01119/0.3156, allocations: 6.616 MB / 379.6 MB, free: 24.16 MB / 302.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