Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.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.DoubleNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_DoubleNetwork",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MediumNetworks.DoubleNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_DoubleNetwork",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.001806/0.001806, allocations: 100.8 kB / 16.31 MB, free: 6.391 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.001635/0.001635, allocations: 190.7 kB / 17.24 MB, free: 5.922 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.384/1.384, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04664/0.04664, allocations: 8.11 MB / 299.2 MB, free: 6.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 63.91 kB / 361.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2108, allocations: 51.5 MB / 413.3 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MediumNetworks.DoubleNetwork): time 0.00485/0.2156, allocations: 5.915 MB / 419.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003158/0.2188, allocations: 2.332 MB / 421.6 MB, free: 17.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007993/0.2196, allocations: 20 kB / 421.6 MB, free: 17.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008877/0.2205, allocations: 313.8 kB / 421.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001336/0.2219, allocations: 0.6133 MB / 422.5 MB, free: 16.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002082/0.224, allocations: 1.431 MB / 424 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009249/0.225, allocations: 1.287 MB / 425.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003863/0.2254, allocations: 409 kB / 425.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003292/0.2257, allocations: 0.5331 MB / 426.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005166/0.2262, allocations: 0.7002 MB / 426.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.2263, allocations: 104 kB / 427 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005264/0.2269, allocations: 347.8 kB / 427.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.227, allocations: 258.9 kB / 427.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003721/0.2274, allocations: 0.6063 MB / 428.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009532/0.2284, allocations: 1.409 MB / 429.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2284, allocations: 4 kB / 429.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2284, allocations: 0 / 429.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.2284, allocations: 0 / 429.6 MB, free: 9.27 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.01111/0.2395, allocations: 3.154 MB / 432.8 MB, free: 6.059 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.2396, allocations: 11.89 kB / 432.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001369/0.2397, allocations: 135.2 kB / 432.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002137/0.2399, allocations: 135.4 kB / 433 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007351/0.2407, allocations: 0.6755 MB / 433.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.647e-05/0.2407, allocations: 78.38 kB / 433.8 MB, free: 4.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.2408, allocations: 96.38 kB / 433.9 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/0.2424, allocations: 1.342 MB / 435.2 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.2424, allocations: 3.938 kB / 435.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.2425, allocations: 36 kB / 435.3 MB, free: 3.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.2426, allocations: 20 kB / 435.3 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.2441, allocations: 1.277 MB / 436.6 MB, free: 2.191 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006068/0.2501, allocations: 5.242 MB / 441.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003049/0.2532, allocations: 3.108 MB / 444.9 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001259/0.2545, allocations: 0.9964 MB / 445.9 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001303/0.2546, allocations: 33.27 kB / 445.9 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/0.2547, allocations: 59.98 kB / 446 MB, free: 7.996 MB / 318.1 MB Notification: Performance of pre-optimization done (n=147): time 3.156e-06/0.2547, allocations: 0 / 446 MB, free: 7.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.02728/0.282, allocations: 7.069 MB / 453.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.424e-05/0.2821, allocations: 124.1 kB / 453.2 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008236/0.2829, allocations: 0.6409 MB / 453.8 MB, free: 92 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001548/0.2831, allocations: 57.7 kB / 453.9 MB, free: 28 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/0.2833, allocations: 338.4 kB / 454.2 MB, free: 15.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000376/0.2837, allocations: 496.6 kB / 454.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004472/0.2841, allocations: 275.6 kB / 455 MB, free: 14.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.2843, allocations: 353.9 kB / 455.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.2855, allocations: 0.8552 MB / 456.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.2869, allocations: 0.9767 MB / 457.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002679/0.2896, allocations: 1.936 MB / 459.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.2896, allocations: 4.031 kB / 459.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.009608/0.2992, allocations: 3.819 MB / 462.9 MB, free: 6.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.2992, allocations: 7.984 kB / 462.9 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.2992, allocations: 0 / 462.9 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01111/0.3104, allocations: 3.954 MB / 466.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008998/0.3113, allocations: 227.6 kB / 467.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02228/0.3336, allocations: 11.47 MB / 478.5 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/0.3351, allocations: 138.4 kB / 478.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001273/0.3353, allocations: 51.98 kB / 478.7 MB, free: 6.996 MB / 350.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 (135): * Single equations (assignments): 134 * 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 {(32,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0005109/0.3358, allocations: 266.3 kB / 479 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002344/0.336, allocations: 114.7 kB / 479.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009498/0.3455, allocations: 3.789 MB / 482.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-05/0.3456, allocations: 16 kB / 482.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3456, allocations: 7.922 kB / 482.9 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-05/0.3456, allocations: 7.969 kB / 482.9 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/0.3571, allocations: 5.317 MB / 488.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/0.3572, allocations: 4 kB / 488.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005727/0.3577, allocations: 179.7 kB / 488.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01008/0.3678, allocations: 2.743 MB / 491.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001551/0.368, allocations: 39.98 kB / 491.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02061/0.3886, allocations: 11.27 MB / 0.4907 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3887, allocations: 3.984 kB / 0.4907 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009475/0.3981, allocations: 3.659 MB / 0.4943 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003127/0.3985, allocations: 203.3 kB / 0.4945 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001842/0.3987, allocations: 35.92 kB / 0.4945 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.3997, allocations: 83.94 kB / 0.4946 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004584/0.4002, allocations: 126.4 kB / 0.4947 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.4003, allocations: 51.98 kB / 0.4948 GB, free: 10.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005952/0.4009, allocations: 439 kB / 0.4952 GB, free: 10.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.4009, allocations: 0 / 0.4952 GB, free: 10.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001332/0.4022, allocations: 0.5349 MB / 0.4957 GB, free: 9.844 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 (106): * Single equations (assignments): 105 * 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 {(32,32)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009794/0.412, allocations: 4.271 MB / 0.4999 GB, free: 5.547 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008631/0.4207, allocations: 3.227 MB / 0.503 GB, free: 2.305 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.4207, allocations: 0.6562 kB / 0.503 GB, free: 2.305 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005804/0.4266, allocations: 2.119 MB / 0.5051 GB, free: 184 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009341/0.4275, allocations: 149.2 kB / 0.5052 GB, free: 36 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1879/0.6155, allocations: 14.51 MB / 0.5194 GB, free: 87.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004833/0.616, allocations: 1.089 MB / 0.5205 GB, free: 86.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005223/0.6165, allocations: 153.5 kB / 0.5206 GB, free: 86.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004019/0.6169, allocations: 399.4 kB / 0.521 GB, free: 86.36 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.6169, allocations: 0 / 0.521 GB, free: 86.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06574/0.6827, allocations: 45.48 MB / 0.5654 GB, free: 42.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.45, allocations: 7.969 kB / 0.5654 GB, free: 42.85 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_MediumNetworks_DoubleNetwork_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_MediumNetworks_DoubleNetwork.fmu > PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.pipe 2>&1)