Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 101.1 kB / 21.93 MB, free: 5.199 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001658/0.001658, allocations: 203.2 kB / 25.22 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.626/1.626, allocations: 207.7 MB / 236.1 MB, free: 9.777 MB / 190.1 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002049/0.002049, allocations: 55.92 kB / 348.4 MB, free: 9.473 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4114/0.4134, allocations: 49.15 MB / 397.6 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004543/0.418, allocations: 2.283 MB / 399.9 MB, free: 7.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.4191, allocations: 498 kB / 400.4 MB, free: 7.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.4192, allocations: 7.688 kB / 400.4 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002389/0.4195, allocations: 44.16 kB / 400.4 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001573/0.4196, allocations: 86.22 kB / 400.5 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005979/0.4202, allocations: 199.7 kB / 400.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005463/0.4208, allocations: 497 kB / 401.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.4209, allocations: 52.72 kB / 401.2 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002793/0.4212, allocations: 219.6 kB / 401.4 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003638/0.4216, allocations: 228.8 kB / 401.7 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.92e-05/0.4217, allocations: 38.03 kB / 401.7 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002026/0.4219, allocations: 84.8 kB / 401.8 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.422, allocations: 99.64 kB / 401.9 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.4222, allocations: 155.9 kB / 402 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007223/0.4229, allocations: 473.3 kB / 402.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.4229, allocations: 0 / 402.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4229, allocations: 0 / 402.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.4229, allocations: 1.406 kB / 402.5 MB, free: 6.52 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.001418/0.4243, allocations: 0.5988 MB / 403.1 MB, free: 6.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/0.4244, allocations: 9.75 kB / 403.1 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.4245, allocations: 37.8 kB / 403.1 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005341/0.425, allocations: 226 kB / 403.4 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.477e-05/0.4251, allocations: 20.81 kB / 403.4 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.396e-05/0.4252, allocations: 35.5 kB / 403.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008022/0.426, allocations: 381.3 kB / 403.8 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.707e-05/0.426, allocations: 6.844 kB / 403.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.117e-05/0.426, allocations: 14.25 kB / 403.8 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.4261, allocations: 10.53 kB / 403.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008501/0.4269, allocations: 399.9 kB / 404.2 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.4289, allocations: 0.9349 MB / 405.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005989/0.4295, allocations: 274.9 kB / 405.4 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003951/0.4299, allocations: 190.8 kB / 405.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.062e-05/0.4299, allocations: 4.969 kB / 405.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.43, allocations: 41.25 kB / 405.6 MB, free: 4.758 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.814e-06/0.43, allocations: 0 / 405.6 MB, free: 4.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004589/0.4346, allocations: 1.743 MB / 407.4 MB, free: 3.973 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.4346, allocations: 56.28 kB / 407.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002395/0.4348, allocations: 231.6 kB / 407.7 MB, free: 3.762 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.134e-05/0.4349, allocations: 41.47 kB / 407.7 MB, free: 3.723 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.088e-05/0.435, allocations: 155.7 kB / 407.9 MB, free: 3.586 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.4351, allocations: 158 kB / 408 MB, free: 3.465 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.4353, allocations: 100.1 kB / 408.1 MB, free: 3.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.4354, allocations: 339.7 kB / 408.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004341/0.4358, allocations: 206.1 kB / 408.6 MB, free: 3.016 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005049/0.4363, allocations: 283.8 kB / 408.9 MB, free: 2.867 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007217/0.437, allocations: 383.1 kB / 409.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.437, allocations: 1.188 kB / 409.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001544/0.4386, allocations: 0.6889 MB / 410 MB, free: 2.391 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.4386, allocations: 5.922 kB / 410 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.4386, allocations: 2.781 kB / 410 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009838/0.4396, allocations: 499.2 kB / 410.5 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003214/0.4399, allocations: 68.22 kB / 410.6 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.441, allocations: 1.388 MB / 411.9 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004428/0.4415, allocations: 71.56 kB / 412 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-05/0.4415, allocations: 18.06 kB / 412 MB, free: 0.9375 MB / 318.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.0002044/0.4417, allocations: 162.5 kB / 412.2 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.141e-05/0.4418, allocations: 35.22 kB / 412.2 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.77e-05/0.4419, allocations: 42.97 kB / 412.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.4419, allocations: 5.344 kB / 412.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.4419, allocations: 0 / 412.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.4419, allocations: 7.984 kB / 412.3 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002637/0.4445, allocations: 1.228 MB / 413.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.4445, allocations: 1.125 kB / 413.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002864/0.4448, allocations: 59.91 kB / 413.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007837/0.4456, allocations: 465.3 kB / 414 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/0.4457, allocations: 20.52 kB / 414 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001328/0.447, allocations: 1.343 MB / 415.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.447, allocations: 5.094 kB / 415.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/0.449, allocations: 0.9407 MB / 416.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002125/0.4492, allocations: 74.09 kB / 416.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.186e-05/0.4492, allocations: 19.59 kB / 416.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002916/0.4495, allocations: 35.48 kB / 416.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.4498, allocations: 91.08 kB / 416.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.864e-05/0.4498, allocations: 18.48 kB / 416.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002357/0.4501, allocations: 163.7 kB / 416.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4501, allocations: 0 / 416.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006065/0.4507, allocations: 104.4 kB / 416.8 MB, free: 13.61 MB / 334.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.0002776/0.4509, allocations: 139.4 kB / 417 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.4524, allocations: 488.7 kB / 417.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4525, allocations: 0 / 417.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008457/0.4533, allocations: 280.6 kB / 417.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006323/0.4539, allocations: 52.03 kB / 417.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002768/0.4567, allocations: 1.01 MB / 418.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002281/0.4569, allocations: 172.6 kB / 418.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.457, allocations: 35.33 kB / 419 MB, free: 12.26 MB / 334.1 MB Notification: Performance of SimCode: time 4.6e-07/0.457, allocations: 1.094 kB / 419 MB, free: 12.26 MB / 334.1 MB Notification: Performance of Templates: time 0.0113/0.4683, allocations: 6.758 MB / 425.7 MB, free: 6.453 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.227198195178062]