Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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 3.2.3+maint.om/package.mo", uses=false) 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.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="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_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.00793/0.00793, allocations: 97.97 kB / 15.73 MB, free: 6.055 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.00127/0.00127, allocations: 191.2 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.669/1.669, allocations: 205.1 MB / 222.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 55.92 kB / 326.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1056, allocations: 46.61 MB / 373.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003324/0.109, allocations: 2.426 MB / 375.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008796/0.1099, allocations: 0.5039 MB / 376.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.11, allocations: 4 kB / 376.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002162/0.1102, allocations: 47.52 kB / 376.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001423/0.1104, allocations: 83.27 kB / 376.2 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004719/0.1108, allocations: 199.7 kB / 376.4 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004455/0.1113, allocations: 487.1 kB / 376.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.1115, allocations: 72.66 kB / 376.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002191/0.1117, allocations: 219.4 kB / 377.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003227/0.112, allocations: 231.2 kB / 377.4 MB, free: 312 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.851e-05/0.1121, allocations: 36 kB / 377.4 MB, free: 276 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.1123, allocations: 95.88 kB / 377.5 MB, free: 180 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.1124, allocations: 95.72 kB / 377.6 MB, free: 84 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2209/0.3334, allocations: 175 kB / 377.8 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007512/0.3342, allocations: 470.6 kB / 378.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3342, allocations: 0 / 378.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3342, allocations: 1.094 kB / 378.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.3342, allocations: 2.781 kB / 378.2 MB, free: 10.26 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.001169/0.3354, allocations: 0.6685 MB / 378.9 MB, free: 9.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.3355, allocations: 10.06 kB / 378.9 MB, free: 9.797 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.856e-05/0.3356, allocations: 39.38 kB / 379 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003988/0.336, allocations: 276.6 kB / 379.2 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.366e-05/0.336, allocations: 23.14 kB / 379.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.929e-05/0.3361, allocations: 34.28 kB / 379.3 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007115/0.3368, allocations: 380.6 kB / 379.7 MB, free: 9.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.3368, allocations: 4.672 kB / 379.7 MB, free: 9.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.033e-05/0.3369, allocations: 17.23 kB / 379.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.3369, allocations: 7.531 kB / 379.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00086/0.3378, allocations: 401.3 kB / 380.1 MB, free: 9.512 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.3398, allocations: 1.098 MB / 381.2 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005514/0.3404, allocations: 304.5 kB / 381.5 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003754/0.3408, allocations: 198.4 kB / 381.7 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.388e-05/0.3408, allocations: 5.219 kB / 381.7 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.3409, allocations: 33.89 kB / 381.7 MB, free: 8.996 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.445e-06/0.3409, allocations: 2.625 kB / 381.7 MB, free: 8.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004772/0.3456, allocations: 2.046 MB / 383.8 MB, free: 8.062 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/0.3457, allocations: 57.56 kB / 383.8 MB, free: 8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003724/0.3461, allocations: 236.2 kB / 384 MB, free: 7.859 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.698e-05/0.3461, allocations: 39.67 kB / 384.1 MB, free: 7.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.3463, allocations: 153.4 kB / 384.2 MB, free: 7.684 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.3464, allocations: 158.4 kB / 384.4 MB, free: 7.566 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000199/0.3466, allocations: 100.4 kB / 384.5 MB, free: 7.512 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.745e-05/0.3467, allocations: 342 kB / 384.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004199/0.3471, allocations: 211.1 kB / 385 MB, free: 7.109 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004617/0.3476, allocations: 280.4 kB / 385.3 MB, free: 6.961 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006416/0.3483, allocations: 379.1 kB / 385.7 MB, free: 6.773 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3483, allocations: 1.031 kB / 385.7 MB, free: 6.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001458/0.3497, allocations: 0.6933 MB / 386.4 MB, free: 6.508 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.3498, allocations: 6.781 kB / 386.4 MB, free: 6.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.3498, allocations: 2.125 kB / 386.4 MB, free: 6.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/0.351, allocations: 0.4905 MB / 386.9 MB, free: 6.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000437/0.3515, allocations: 77.78 kB / 386.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001238/0.3527, allocations: 1.391 MB / 388.3 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005619/0.3533, allocations: 70.44 kB / 388.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.832e-05/0.3534, allocations: 18.92 kB / 388.4 MB, free: 5.176 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.0002613/0.3536, allocations: 164 kB / 388.6 MB, free: 5.031 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.3538, allocations: 36.69 kB / 388.6 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001321/0.3539, allocations: 52.75 kB / 388.7 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.3539, allocations: 4.641 kB / 388.7 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.3539, allocations: 0 / 388.7 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.354, allocations: 5.219 kB / 388.7 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003917/0.3579, allocations: 1.363 MB / 390 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.3579, allocations: 1.562 kB / 390 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.3583, allocations: 59.41 kB / 390.1 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00126/0.3596, allocations: 460.6 kB / 390.5 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.648e-05/0.3597, allocations: 21.2 kB / 390.6 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/0.3611, allocations: 1.342 MB / 391.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.3611, allocations: 5.969 kB / 391.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002559/0.3637, allocations: 0.9437 MB / 392.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/0.364, allocations: 154.8 kB / 393 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.3641, allocations: 28.09 kB / 393 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003943/0.3645, allocations: 33.42 kB / 393.1 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002848/0.3648, allocations: 84.75 kB / 393.2 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-05/0.3649, allocations: 21.44 kB / 393.2 MB, free: 2.363 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002765/0.3652, allocations: 166 kB / 393.3 MB, free: 2.266 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3652, allocations: 0 / 393.3 MB, free: 2.266 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000883/0.3661, allocations: 114.6 kB / 393.4 MB, free: 2.242 MB / 318.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.0003213/0.3664, allocations: 132.1 kB / 393.6 MB, free: 2.145 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.368, allocations: 0.514 MB / 394.1 MB, free: 1.988 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.368, allocations: 320 / 394.1 MB, free: 1.988 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008313/0.3689, allocations: 298.7 kB / 394.4 MB, free: 1.891 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007225/0.3696, allocations: 55.78 kB / 394.4 MB, free: 1.867 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003009/0.3726, allocations: 0.9783 MB / 395.4 MB, free: 1.289 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.373, allocations: 0.7777 MB / 396.2 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002344/0.3732, allocations: 37.2 kB / 396.2 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.3734, allocations: 36.03 kB / 396.3 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of SimCode: time 1.453e-06/0.3734, allocations: 1.375 kB / 396.3 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of Templates: time 0.01956/0.3929, allocations: 8.784 MB / 405.1 MB, free: 13.15 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)