Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007443/0.007444, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.001615/0.001615, allocations: 186.8 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.525/1.525, allocations: 205.1 MB / 222.6 MB, free: 4.48 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.001214/0.001214, allocations: 54.67 kB / 326.5 MB, free: 14.57 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1152, allocations: 46.63 MB / 373.2 MB, free: 1.441 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003136/0.1184, allocations: 1.841 MB / 375 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.1198, allocations: 0.6279 MB / 375.6 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.1199, allocations: 3.938 kB / 375.6 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.1201, allocations: 23.73 kB / 375.7 MB, free: 14.92 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001868/0.1203, allocations: 39.66 kB / 375.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.1207, allocations: 75.84 kB / 375.8 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002539/0.1209, allocations: 163.4 kB / 375.9 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/0.1212, allocations: 81.41 kB / 376 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.1213, allocations: 71.66 kB / 376.1 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.1214, allocations: 79.59 kB / 376.2 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.941e-05/0.1215, allocations: 16 kB / 376.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.924e-05/0.1216, allocations: 23.94 kB / 376.2 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.643e-05/0.1216, allocations: 39.84 kB / 376.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.324e-05/0.1217, allocations: 83.47 kB / 376.3 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000235/0.122, allocations: 179.3 kB / 376.5 MB, free: 14.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.122, allocations: 4 kB / 376.5 MB, free: 14.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.122, allocations: 4 kB / 376.5 MB, free: 14.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.742e-06/0.122, allocations: 0 / 376.5 MB, free: 14.08 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009189/0.1229, allocations: 0.5026 MB / 377 MB, free: 13.53 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.123, allocations: 8.031 kB / 377 MB, free: 13.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.95e-05/0.1231, allocations: 28.64 kB / 377 MB, free: 13.49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.1234, allocations: 251.6 kB / 377.3 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.1234, allocations: 12.66 kB / 377.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.345e-05/0.1234, allocations: 16.38 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003652/0.1238, allocations: 199.2 kB / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.1238, allocations: 0 / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.1238, allocations: 0 / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.544e-05/0.1239, allocations: 12 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002845/0.1242, allocations: 143.8 kB / 377.7 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.1252, allocations: 0.7701 MB / 378.4 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003084/0.1255, allocations: 165 kB / 378.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001322/0.1256, allocations: 73.81 kB / 378.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.485e-05/0.1257, allocations: 7.984 kB / 378.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002297/0.1259, allocations: 153 kB / 378.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.1259, allocations: 0 / 378.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005541/0.1265, allocations: 253.5 kB / 379.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/0.1266, allocations: 81.11 kB / 379.2 MB, free: 11.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.1268, allocations: 202.9 kB / 379.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.1268, allocations: 33.7 kB / 379.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.527e-05/0.1269, allocations: 140.2 kB / 379.5 MB, free: 10.81 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.978e-05/0.1269, allocations: 51.28 kB / 379.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.215e-05/0.127, allocations: 41.7 kB / 379.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1271, allocations: 330.8 kB / 379.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.1273, allocations: 71.95 kB / 380 MB, free: 10.31 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.1274, allocations: 126.7 kB / 380.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/0.1277, allocations: 210.5 kB / 380.3 MB, free: 9.934 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1277, allocations: 0 / 380.3 MB, free: 9.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003703/0.1281, allocations: 241.9 kB / 380.6 MB, free: 9.691 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.1281, allocations: 4 kB / 380.6 MB, free: 9.688 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.1282, allocations: 4 kB / 380.6 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.1282, allocations: 4 kB / 380.6 MB, free: 9.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.1283, allocations: 31.92 kB / 380.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.1284, allocations: 4 kB / 380.6 MB, free: 9.645 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001514/0.1285, allocations: 31.81 kB / 380.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.1285, allocations: 8.234 kB / 380.7 MB, free: 9.605 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: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001168/0.1287, allocations: 157.6 kB / 380.8 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.1287, allocations: 15.81 kB / 380.8 MB, free: 9.426 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003976/0.1291, allocations: 218.8 kB / 381 MB, free: 9.203 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.1291, allocations: 4 kB / 381 MB, free: 9.199 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.1291, allocations: 0 / 381 MB, free: 9.199 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1291, allocations: 0 / 381 MB, free: 9.199 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002439/0.1294, allocations: 277.4 kB / 381.3 MB, free: 8.879 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1294, allocations: 4 kB / 381.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.1295, allocations: 23.92 kB / 381.3 MB, free: 8.852 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.1295, allocations: 0 / 381.3 MB, free: 8.852 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.1295, allocations: 0 / 381.3 MB, free: 8.852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.237e-06/0.1295, allocations: 4 kB / 381.3 MB, free: 8.848 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1295, allocations: 0 / 381.3 MB, free: 8.848 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000347/0.1299, allocations: 229.6 kB / 381.6 MB, free: 8.602 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-05/0.1299, allocations: 100.8 kB / 381.7 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.13, allocations: 3.984 kB / 381.7 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.1301, allocations: 15.98 kB / 381.7 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.815e-05/0.1302, allocations: 23.91 kB / 381.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.1302, allocations: 8 kB / 381.7 MB, free: 8.434 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001096/0.1303, allocations: 148.4 kB / 381.9 MB, free: 8.289 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.423e-06/0.1303, allocations: 0 / 381.9 MB, free: 8.289 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002354/0.1306, allocations: 39.94 kB / 381.9 MB, free: 8.25 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001348/0.1307, allocations: 103.2 kB / 382 MB, free: 8.141 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000358/0.1311, allocations: 179.8 kB / 382.2 MB, free: 7.965 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1311, allocations: 0 / 382.2 MB, free: 7.965 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000157/0.1313, allocations: 84.27 kB / 382.3 MB, free: 7.883 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.1316, allocations: 39.92 kB / 382.3 MB, free: 7.844 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000607/0.1322, allocations: 365.3 kB / 382.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.1325, allocations: 0.7397 MB / 383.4 MB, free: 6.695 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001035/0.1326, allocations: 29.53 kB / 383.4 MB, free: 6.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.013e-05/0.1327, allocations: 23.42 kB / 383.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1327, allocations: 3.938 kB / 383.5 MB, free: 6.633 MB / 318.1 MB Notification: Performance of Templates: time 0.004912/0.1376, allocations: 2.12 MB / 385.6 MB, free: 4.512 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)