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.005683/0.005683, allocations: 105.5 kB / 15.73 MB, free: 5.984 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.001181/0.001181, allocations: 194.8 kB / 16.67 MB, free: 5.906 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.466/1.466, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001109/0.001109, allocations: 50.16 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09948/0.1006, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003389/0.104, allocations: 1.845 MB / 375 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.1053, allocations: 0.6279 MB / 375.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.1054, allocations: 4 kB / 375.6 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.1055, allocations: 27.67 kB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.1057, allocations: 35.66 kB / 375.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002919/0.106, allocations: 71.84 kB / 375.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000231/0.1062, allocations: 163.4 kB / 375.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.1064, allocations: 85.41 kB / 376 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.1066, allocations: 67.72 kB / 376.1 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000166/0.1068, allocations: 87.53 kB / 376.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.229e-05/0.1068, allocations: 12 kB / 376.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.658e-05/0.1069, allocations: 20 kB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.795e-05/0.107, allocations: 39.84 kB / 376.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.543e-05/0.1071, allocations: 83.47 kB / 376.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.1074, allocations: 183.3 kB / 376.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1074, allocations: 0 / 376.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.1074, allocations: 0 / 376.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1074, allocations: 0 / 376.5 MB, free: 13.95 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.0009502/0.1084, allocations: 0.5104 MB / 377 MB, free: 13.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.1084, allocations: 8.031 kB / 377 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.892e-05/0.1085, allocations: 24.66 kB / 377 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.1088, allocations: 243.6 kB / 377.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.1088, allocations: 20.59 kB / 377.3 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.1088, allocations: 12.38 kB / 377.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003444/0.1092, allocations: 203.3 kB / 377.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.1092, allocations: 3.938 kB / 377.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.1092, allocations: 11.98 kB / 377.5 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.537e-05/0.1092, allocations: 4 kB / 377.5 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000293/0.1095, allocations: 135.9 kB / 377.7 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.1106, allocations: 0.7779 MB / 378.4 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.1109, allocations: 169 kB / 378.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.1111, allocations: 69.81 kB / 378.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.733e-05/0.1111, allocations: 7.984 kB / 378.7 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002316/0.1114, allocations: 149 kB / 378.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.1114, allocations: 0 / 378.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005479/0.1119, allocations: 249.5 kB / 379.1 MB, free: 11.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.112, allocations: 81.05 kB / 379.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.1122, allocations: 206.9 kB / 379.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.1122, allocations: 33.7 kB / 379.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.824e-05/0.1123, allocations: 144.2 kB / 379.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.704e-05/0.1124, allocations: 47.28 kB / 379.6 MB, free: 10.63 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.004e-05/0.1124, allocations: 45.7 kB / 379.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1126, allocations: 330.8 kB / 379.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.1127, allocations: 67.95 kB / 380 MB, free: 10.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.1129, allocations: 126.7 kB / 380.1 MB, free: 10.03 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003492/0.1133, allocations: 207.2 kB / 380.3 MB, free: 9.805 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.1133, allocations: 0 / 380.3 MB, free: 9.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004164/0.1137, allocations: 241.4 kB / 380.6 MB, free: 9.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.1137, allocations: 12.09 kB / 380.6 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.1138, allocations: 3.938 kB / 380.6 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.1138, allocations: 4 kB / 380.6 MB, free: 9.543 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/0.114, allocations: 35.92 kB / 380.6 MB, free: 9.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.114, allocations: 4 kB / 380.6 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001558/0.1142, allocations: 27.81 kB / 380.6 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.1142, allocations: 8 kB / 380.7 MB, free: 9.469 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.000144/0.1144, allocations: 157.6 kB / 380.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.1144, allocations: 15.81 kB / 380.8 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004372/0.1148, allocations: 210.8 kB / 381 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1149, allocations: 4 kB / 381 MB, free: 9.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1149, allocations: 0 / 381 MB, free: 9.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1149, allocations: 0 / 381 MB, free: 9.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.1152, allocations: 277.4 kB / 381.3 MB, free: 8.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1152, allocations: 0 / 381.3 MB, free: 8.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.1153, allocations: 23.92 kB / 381.3 MB, free: 8.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1153, allocations: 4 kB / 381.3 MB, free: 8.723 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.1153, allocations: 8 kB / 381.3 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1153, allocations: 0 / 381.3 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1153, allocations: 0 / 381.3 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000368/0.1157, allocations: 233.6 kB / 381.6 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.734e-05/0.1158, allocations: 100.8 kB / 381.7 MB, free: 8.348 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.1158, allocations: 8 kB / 381.7 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.1159, allocations: 15.98 kB / 381.7 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.432e-05/0.116, allocations: 15.97 kB / 381.7 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.116, allocations: 4 kB / 381.7 MB, free: 8.305 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001065/0.1161, allocations: 152.3 kB / 381.9 MB, free: 8.156 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.383e-06/0.1162, allocations: 0 / 381.9 MB, free: 8.156 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002597/0.1164, allocations: 39.94 kB / 381.9 MB, free: 8.117 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.0001784/0.1166, allocations: 103.2 kB / 382 MB, free: 8.008 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003967/0.117, allocations: 175.7 kB / 382.2 MB, free: 7.836 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.117, allocations: 0 / 382.2 MB, free: 7.836 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001702/0.1172, allocations: 87.88 kB / 382.3 MB, free: 7.75 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003271/0.1175, allocations: 44.42 kB / 382.3 MB, free: 7.707 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006386/0.1182, allocations: 362.1 kB / 382.7 MB, free: 7.328 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.1185, allocations: 0.7397 MB / 383.4 MB, free: 6.562 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.1186, allocations: 29.53 kB / 383.4 MB, free: 6.527 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.901e-05/0.1187, allocations: 19.42 kB / 383.4 MB, free: 6.508 MB / 318.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1187, allocations: 0 / 383.4 MB, free: 6.508 MB / 318.1 MB Notification: Performance of Templates: time 0.005387/0.1241, allocations: 2.177 MB / 385.6 MB, free: 4.328 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)