Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.01073/0.01073, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.00196/0.00196, allocations: 201.3 kB / 16.68 MB, free: 5.969 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.689/1.689, allocations: 205.1 MB / 222.5 MB, free: 4.547 MB / 174.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.001198/0.001198, allocations: 54.05 kB / 326.5 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1065, allocations: 46.63 MB / 373.2 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003617/0.1102, allocations: 2.42 MB / 375.6 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.1114, allocations: 0.5039 MB / 376.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.1115, allocations: 4 kB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002743/0.1118, allocations: 47.52 kB / 376.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001842/0.112, allocations: 79.28 kB / 376.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005596/0.1126, allocations: 191.7 kB / 376.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005755/0.1132, allocations: 499.1 kB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001985/0.1134, allocations: 65.78 kB / 376.9 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000241/0.1137, allocations: 215.4 kB / 377.2 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003069/0.114, allocations: 243.2 kB / 377.4 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.823e-05/0.114, allocations: 36 kB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000163/0.1142, allocations: 87.89 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.1143, allocations: 103.6 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001855/0.1145, allocations: 183.1 kB / 377.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005291/0.1151, allocations: 470.3 kB / 378.3 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1151, allocations: 0 / 378.3 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1151, allocations: 0 / 378.3 MB, free: 12.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1151, allocations: 0 / 378.3 MB, free: 12.21 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.001283/0.1164, allocations: 0.6701 MB / 378.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.1164, allocations: 8.031 kB / 378.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.558e-05/0.1165, allocations: 44.7 kB / 379 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004027/0.117, allocations: 276.8 kB / 379.2 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.117, allocations: 28.88 kB / 379.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-05/0.1171, allocations: 32.33 kB / 379.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006779/0.1178, allocations: 373.2 kB / 379.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.1178, allocations: 4.172 kB / 379.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.312e-05/0.1178, allocations: 15.94 kB / 379.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.1179, allocations: 11.94 kB / 379.7 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007752/0.1186, allocations: 402 kB / 380.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.1206, allocations: 1.092 MB / 381.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000524/0.1211, allocations: 295.7 kB / 381.5 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003516/0.1215, allocations: 205.7 kB / 381.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.069e-05/0.1216, allocations: 4 kB / 381.7 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.1216, allocations: 38.5 kB / 381.7 MB, free: 8.562 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.763e-06/0.1216, allocations: 0 / 381.7 MB, free: 8.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004579/0.1262, allocations: 2.043 MB / 383.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.1262, allocations: 55.41 kB / 383.8 MB, free: 6.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.1265, allocations: 237 kB / 384 MB, free: 6.078 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.224e-05/0.1266, allocations: 41.69 kB / 384.1 MB, free: 6.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.1267, allocations: 160.9 kB / 384.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.1268, allocations: 158.7 kB / 384.4 MB, free: 5.715 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.127, allocations: 98.19 kB / 384.5 MB, free: 5.613 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1272, allocations: 346.8 kB / 384.8 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003839/0.1275, allocations: 209 kB / 385 MB, free: 5.059 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004583/0.128, allocations: 284.8 kB / 385.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006117/0.1286, allocations: 373.7 kB / 385.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1286, allocations: 0 / 385.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001334/0.13, allocations: 0.7003 MB / 386.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.13, allocations: 4 kB / 386.4 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.13, allocations: 4 kB / 386.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008612/0.1309, allocations: 493.6 kB / 386.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.1312, allocations: 75.84 kB / 386.9 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.1324, allocations: 1.394 MB / 388.3 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004445/0.1328, allocations: 76.03 kB / 388.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-05/0.1329, allocations: 16 kB / 388.4 MB, free: 1.547 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.0002038/0.1331, allocations: 165.9 kB / 388.6 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.1332, allocations: 35.75 kB / 388.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001127/0.1334, allocations: 43.31 kB / 388.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.1334, allocations: 4 kB / 388.7 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.1334, allocations: 4 kB / 388.7 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1334, allocations: 3.984 kB / 388.7 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002745/0.1362, allocations: 1.37 MB / 390 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.1362, allocations: 0 / 390 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002947/0.1365, allocations: 67.83 kB / 390.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007633/0.1372, allocations: 465.4 kB / 390.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.698e-05/0.1373, allocations: 23.97 kB / 390.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001206/0.1385, allocations: 1.335 MB / 391.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.1385, allocations: 4.031 kB / 391.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001772/0.1403, allocations: 0.9405 MB / 392.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002101/0.1405, allocations: 156.9 kB / 393 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.06e-05/0.1406, allocations: 19.94 kB / 393 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002973/0.1409, allocations: 35.95 kB / 393.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/0.1411, allocations: 83.86 kB / 393.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.628e-05/0.1412, allocations: 23.97 kB / 393.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001731/0.1414, allocations: 172.5 kB / 393.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1414, allocations: 0 / 393.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005254/0.1419, allocations: 100 kB / 393.5 MB, free: 12.31 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.0002616/0.1422, allocations: 139.2 kB / 393.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.1434, allocations: 0.51 MB / 394.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.1434, allocations: 0 / 394.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006529/0.144, allocations: 300.5 kB / 394.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000524/0.1446, allocations: 56.33 kB / 394.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.1469, allocations: 0.9802 MB / 395.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.1474, allocations: 0.7836 MB / 396.2 MB, free: 9.477 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001478/0.1475, allocations: 34.95 kB / 396.2 MB, free: 9.445 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.345e-05/0.1476, allocations: 35.42 kB / 396.3 MB, free: 9.414 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1476, allocations: 0 / 396.3 MB, free: 9.414 MB / 334.1 MB Notification: Performance of Templates: time 0.01519/0.1628, allocations: 8.775 MB / 405.1 MB, free: 0.6211 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)