Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(PowerSysPro.Examples.MediumNetworks.Network,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_Network",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MediumNetworks.Network,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_Network",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001191, allocations: 105.2 kB / 16.45 MB, free: 6.434 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.001194/0.001194, allocations: 190 kB / 17.39 MB, free: 5.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04932/0.04932, allocations: 8.098 MB / 299.3 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 67.89 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09525/0.09672, allocations: 51.52 MB / 465.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MediumNetworks.Network): time 0.005138/0.1019, allocations: 3.854 MB / 469.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00336/0.1053, allocations: 1.955 MB / 471.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006562/0.106, allocations: 8 kB / 471.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007825/0.1068, allocations: 238.5 kB / 471.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001299/0.1082, allocations: 385.5 kB / 471.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002802/0.111, allocations: 1.33 MB / 473.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.1123, allocations: 0.7853 MB / 474 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004481/0.1127, allocations: 257.6 kB / 474.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005134/0.1132, allocations: 334.7 kB / 474.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007282/0.114, allocations: 426.2 kB / 475 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000192/0.1142, allocations: 64 kB / 475.1 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006823/0.1149, allocations: 303.8 kB / 475.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001908/0.1151, allocations: 159.3 kB / 475.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005351/0.1156, allocations: 378 kB / 475.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.1168, allocations: 0.9354 MB / 476.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1168, allocations: 0 / 476.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1169, allocations: 0 / 476.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.046e-05/0.1169, allocations: 0 / 476.9 MB, free: 7.27 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.008329/0.1252, allocations: 2.136 MB / 479 MB, free: 5.078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.1253, allocations: 11.89 kB / 479 MB, free: 5.066 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001851/0.1255, allocations: 98.64 kB / 479.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002327/0.1257, allocations: 80 kB / 479.2 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007705/0.1265, allocations: 485.7 kB / 479.7 MB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.724e-05/0.1265, allocations: 45.38 kB / 479.7 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.1267, allocations: 60.38 kB / 479.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.128, allocations: 0.8353 MB / 480.6 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.128, allocations: 3.938 kB / 480.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.139e-05/0.1281, allocations: 20 kB / 480.6 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.1281, allocations: 15.98 kB / 480.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.1293, allocations: 0.7887 MB / 481.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004337/0.1336, allocations: 3.319 MB / 484.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.1353, allocations: 1.352 MB / 486.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007498/0.1361, allocations: 0.5857 MB / 486.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001054/0.1362, allocations: 28.91 kB / 486.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.1362, allocations: 43.56 kB / 486.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 2.174e-06/0.1362, allocations: 0 / 486.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.01438/0.1506, allocations: 3.977 MB / 490.7 MB, free: 8.848 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.805e-05/0.1507, allocations: 115.8 kB / 490.8 MB, free: 8.711 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005596/0.1513, allocations: 433.8 kB / 491.3 MB, free: 8.281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.414e-05/0.1514, allocations: 45.7 kB / 491.3 MB, free: 8.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.1516, allocations: 241.4 kB / 491.5 MB, free: 7.988 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002534/0.1518, allocations: 299.5 kB / 491.8 MB, free: 7.691 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003194/0.1522, allocations: 186.6 kB / 492 MB, free: 7.504 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1523, allocations: 370.8 kB / 492.4 MB, free: 7.133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007734/0.1531, allocations: 0.533 MB / 492.9 MB, free: 6.598 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008619/0.154, allocations: 0.6185 MB / 493.5 MB, free: 5.973 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001694/0.1557, allocations: 1.209 MB / 494.7 MB, free: 4.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1557, allocations: 0 / 494.7 MB, free: 4.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.006083/0.1618, allocations: 2.382 MB / 497.1 MB, free: 2.371 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.1618, allocations: 4 kB / 497.1 MB, free: 2.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.1619, allocations: 4 kB / 497.1 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006466/0.1683, allocations: 1.769 MB / 498.9 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005831/0.1689, allocations: 147.8 kB / 499 MB, free: 456 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01381/0.1828, allocations: 7.352 MB / 0.4945 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007982/0.1836, allocations: 91.2 kB / 0.4946 GB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001386/0.1837, allocations: 36 kB / 0.4946 GB, free: 8.836 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(18,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0003963/0.1841, allocations: 205.7 kB / 0.4948 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001983/0.1844, allocations: 67.19 kB / 0.4949 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006366/0.1907, allocations: 2.323 MB / 0.4972 GB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.556e-05/0.1908, allocations: 11.94 kB / 0.4972 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.1908, allocations: 0 / 0.4972 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.1908, allocations: 3.984 kB / 0.4972 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007631/0.1984, allocations: 3.323 MB / 0.5004 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.1985, allocations: 0 / 0.5004 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003811/0.1989, allocations: 111.8 kB / 0.5005 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006312/0.2052, allocations: 1.499 MB / 0.502 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.2053, allocations: 19.94 kB / 0.502 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2381/0.4434, allocations: 7.221 MB / 0.5091 GB, free: 43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.4435, allocations: 0 / 0.5091 GB, free: 43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006085/0.4496, allocations: 2.282 MB / 0.5113 GB, free: 42.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/0.4498, allocations: 157.7 kB / 0.5115 GB, free: 41.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.4499, allocations: 21.61 kB / 0.5115 GB, free: 41.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006269/0.4505, allocations: 52.14 kB / 0.5115 GB, free: 41.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003559/0.4509, allocations: 79.33 kB / 0.5116 GB, free: 41.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.05e-05/0.451, allocations: 32.28 kB / 0.5116 GB, free: 41.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003697/0.4514, allocations: 296 kB / 0.5119 GB, free: 41.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4514, allocations: 3.062 kB / 0.5119 GB, free: 41.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009992/0.4524, allocations: 340.2 kB / 0.5122 GB, free: 41.75 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(18,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006245/0.4586, allocations: 2.872 MB / 0.515 GB, free: 40.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004515/0.4632, allocations: 1.963 MB / 0.517 GB, free: 39.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.4632, allocations: 1.219 kB / 0.517 GB, free: 39.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003393/0.4666, allocations: 1.301 MB / 0.5182 GB, free: 38.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006973/0.4673, allocations: 84.5 kB / 0.5183 GB, free: 38.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01754/0.4849, allocations: 9.003 MB / 0.5271 GB, free: 34.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.4853, allocations: 0.916 MB / 0.528 GB, free: 33.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003385/0.4857, allocations: 98.23 kB / 0.5281 GB, free: 33.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002756/0.4859, allocations: 238.7 kB / 0.5283 GB, free: 33.62 MB / 382.1 MB Notification: Performance of SimCode: time 1.252e-06/0.486, allocations: 0 / 0.5283 GB, free: 33.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04499/0.531, allocations: 29.62 MB / 0.5572 GB, free: 5.539 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.2, allocations: 6.344 kB / 0.5573 GB, free: 5.535 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_MediumNetworks_Network_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_MediumNetworks_Network.fmu > PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe 2>&1)