Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.00557/0.00557, allocations: 100.8 kB / 15.73 MB, free: 6.008 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.00133/0.00133, allocations: 190.2 kB / 16.67 MB, free: 5.934 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.542/1.542, allocations: 205.1 MB / 222.5 MB, free: 4.348 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.001195/0.001196, allocations: 55.02 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.112, allocations: 46.63 MB / 373.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003596/0.1156, allocations: 1.837 MB / 375 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.1168, allocations: 0.6279 MB / 375.6 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.117, allocations: 7.938 kB / 375.6 MB, free: 14.78 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.1171, allocations: 19.73 kB / 375.7 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.1173, allocations: 43.66 kB / 375.7 MB, free: 14.72 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.1176, allocations: 71.78 kB / 375.8 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002313/0.1178, allocations: 171.4 kB / 375.9 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.118, allocations: 73.44 kB / 376 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.1182, allocations: 75.64 kB / 376.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.1183, allocations: 75.61 kB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.112e-05/0.1184, allocations: 12 kB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.016e-05/0.1184, allocations: 20 kB / 376.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.1185, allocations: 47.83 kB / 376.2 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.1187, allocations: 83.47 kB / 376.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002813/0.1189, allocations: 179.3 kB / 376.5 MB, free: 13.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.119, allocations: 0 / 376.5 MB, free: 13.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.119, allocations: 0 / 376.5 MB, free: 13.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.119, allocations: 4 kB / 376.5 MB, free: 13.92 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.0009864/0.12, allocations: 0.5065 MB / 377 MB, free: 13.37 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.12, allocations: 12.03 kB / 377 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.808e-05/0.1201, allocations: 24.64 kB / 377 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003107/0.1204, allocations: 251.5 kB / 377.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.1204, allocations: 12.66 kB / 377.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.979e-05/0.1205, allocations: 24.36 kB / 377.3 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00034/0.1208, allocations: 195.2 kB / 377.5 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1208, allocations: 0 / 377.5 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.797e-05/0.1209, allocations: 4 kB / 377.5 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.82e-05/0.1209, allocations: 11.98 kB / 377.5 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002871/0.1212, allocations: 151.8 kB / 377.7 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.1222, allocations: 0.7584 MB / 378.4 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.1226, allocations: 169 kB / 378.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.1227, allocations: 77.8 kB / 378.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.1228, allocations: 4.141 kB / 378.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002669/0.123, allocations: 149 kB / 378.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.123, allocations: 0 / 378.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005747/0.1236, allocations: 249.8 kB / 379.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/0.1237, allocations: 89.11 kB / 379.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.1239, allocations: 202.9 kB / 379.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.1239, allocations: 33.81 kB / 379.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.124, allocations: 144.1 kB / 379.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.821e-05/0.1241, allocations: 43.36 kB / 379.6 MB, free: 10.6 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.656e-05/0.1241, allocations: 41.7 kB / 379.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1243, allocations: 334.8 kB / 379.9 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.1244, allocations: 67.95 kB / 380 MB, free: 10.15 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.1246, allocations: 126.8 kB / 380.1 MB, free: 10 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.1249, allocations: 214.6 kB / 380.3 MB, free: 9.766 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1249, allocations: 0 / 380.3 MB, free: 9.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003967/0.1253, allocations: 245.2 kB / 380.6 MB, free: 9.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.1253, allocations: 5.094 kB / 380.6 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.1254, allocations: 4 kB / 380.6 MB, free: 9.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.1254, allocations: 0 / 380.6 MB, free: 9.512 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.1255, allocations: 39.91 kB / 380.6 MB, free: 9.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.1256, allocations: 0 / 380.6 MB, free: 9.473 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.1257, allocations: 27.83 kB / 380.7 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.1257, allocations: 12 kB / 380.7 MB, free: 9.434 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.0001339/0.1259, allocations: 149.7 kB / 380.8 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.052e-05/0.1259, allocations: 23.81 kB / 380.8 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004227/0.1263, allocations: 214.8 kB / 381 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.1263, allocations: 0 / 381 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1264, allocations: 4 kB / 381 MB, free: 9.031 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1264, allocations: 3.984 kB / 381.1 MB, free: 9.027 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002701/0.1267, allocations: 269.4 kB / 381.3 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1267, allocations: 8 kB / 381.3 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.1268, allocations: 19.92 kB / 381.3 MB, free: 8.688 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1268, allocations: 4 kB / 381.3 MB, free: 8.684 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.1268, allocations: 0 / 381.3 MB, free: 8.684 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.1268, allocations: 4 kB / 381.3 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1268, allocations: 4 kB / 381.4 MB, free: 8.676 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003564/0.1272, allocations: 229.6 kB / 381.6 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.876e-05/0.1273, allocations: 100.8 kB / 381.7 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.1273, allocations: 7.938 kB / 381.7 MB, free: 8.305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.1274, allocations: 15.98 kB / 381.7 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.398e-05/0.1275, allocations: 19.97 kB / 381.7 MB, free: 8.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.1275, allocations: 4 kB / 381.7 MB, free: 8.266 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001305/0.1276, allocations: 148.4 kB / 381.9 MB, free: 8.121 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1276, allocations: 3.938 kB / 381.9 MB, free: 8.117 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002433/0.1279, allocations: 36 kB / 381.9 MB, free: 8.082 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.0001455/0.1281, allocations: 99.23 kB / 382 MB, free: 7.977 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004102/0.1285, allocations: 175.7 kB / 382.2 MB, free: 7.805 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1285, allocations: 0 / 382.2 MB, free: 7.805 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001755/0.1287, allocations: 84.27 kB / 382.3 MB, free: 7.723 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.129, allocations: 52.83 kB / 382.3 MB, free: 7.672 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000646/0.1297, allocations: 361.4 kB / 382.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.13, allocations: 0.7358 MB / 383.4 MB, free: 6.531 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.1301, allocations: 37.45 kB / 383.4 MB, free: 6.488 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.822e-05/0.1302, allocations: 23.44 kB / 383.5 MB, free: 6.465 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1302, allocations: 0 / 383.5 MB, free: 6.465 MB / 318.1 MB Notification: Performance of Templates: time 0.005559/0.1357, allocations: 2.119 MB / 385.6 MB, free: 4.344 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)