Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.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.StructuredNetwork.DoubleNetworkWithLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithLoads",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.001041/0.001041, allocations: 102.1 kB / 16.31 MB, free: 5.879 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.00118/0.001181, allocations: 191.6 kB / 17.24 MB, free: 5.539 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.335/1.335, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04841/0.04841, allocations: 8.094 MB / 299.2 MB, free: 6.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 63.91 kB / 361.8 MB, free: 8.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.171/0.1722, allocations: 51.52 MB / 413.4 MB, free: 25.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads): time 0.004752/0.177, allocations: 6.116 MB / 419.5 MB, free: 19.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003178/0.1802, allocations: 2.456 MB / 421.9 MB, free: 16.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004744/0.1807, allocations: 20 kB / 421.9 MB, free: 16.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005764/0.1813, allocations: 321.8 kB / 422.3 MB, free: 16.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001086/0.1824, allocations: 0.6483 MB / 422.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002406/0.1848, allocations: 1.47 MB / 424.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00178/0.1866, allocations: 1.443 MB / 425.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006477/0.1872, allocations: 0.5211 MB / 426.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005973/0.1879, allocations: 0.5994 MB / 426.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006157/0.1885, allocations: 0.747 MB / 427.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.1886, allocations: 144 kB / 427.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006142/0.1892, allocations: 387.8 kB / 428.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001508/0.1894, allocations: 310.9 kB / 428.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004387/0.1899, allocations: 0.6998 MB / 429.2 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001364/0.1912, allocations: 1.799 MB / 431 MB, free: 7.832 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.1912, allocations: 0 / 431 MB, free: 7.832 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1912, allocations: 0 / 431 MB, free: 7.832 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.75e-05/0.1913, allocations: 0 / 431 MB, free: 7.832 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.01172/0.203, allocations: 3.244 MB / 434.3 MB, free: 4.527 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.2031, allocations: 11.89 kB / 434.3 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001698/0.2032, allocations: 139.6 kB / 434.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002564/0.2035, allocations: 139.3 kB / 434.5 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009535/0.2045, allocations: 0.7692 MB / 435.3 MB, free: 3.426 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.429e-05/0.2045, allocations: 78.38 kB / 435.4 MB, free: 3.348 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.2047, allocations: 100.4 kB / 435.5 MB, free: 3.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/0.2065, allocations: 1.522 MB / 437 MB, free: 1.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.2066, allocations: 3.938 kB / 437 MB, free: 1.707 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/0.2067, allocations: 40 kB / 437 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.409e-05/0.2067, allocations: 20 kB / 437.1 MB, free: 1.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001764/0.2085, allocations: 1.476 MB / 438.5 MB, free: 176 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007709/0.2162, allocations: 6.018 MB / 444.6 MB, free: 9.691 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003387/0.2196, allocations: 3.757 MB / 448.3 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001457/0.2211, allocations: 1.106 MB / 449.4 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001345/0.2212, allocations: 37.25 kB / 449.5 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.893e-05/0.2213, allocations: 56.11 kB / 449.5 MB, free: 4.344 MB / 318.1 MB Notification: Performance of pre-optimization done (n=151): time 4.047e-06/0.2213, allocations: 0 / 449.5 MB, free: 4.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.03421/0.2555, allocations: 8.278 MB / 457.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.812e-05/0.2557, allocations: 120.1 kB / 457.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.2568, allocations: 0.6682 MB / 458.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002671/0.2571, allocations: 65.7 kB / 458.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002853/0.2574, allocations: 346.3 kB / 459 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00051/0.2579, allocations: 0.5082 MB / 459.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006543/0.2586, allocations: 279.6 kB / 459.8 MB, free: 9.996 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.2587, allocations: 345.9 kB / 460.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001519/0.2603, allocations: 0.9646 MB / 461.1 MB, free: 8.688 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.2619, allocations: 1.082 MB / 462.1 MB, free: 7.602 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003375/0.2653, allocations: 2.166 MB / 464.3 MB, free: 5.434 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.2653, allocations: 4 kB / 464.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.01071/0.2761, allocations: 4.112 MB / 468.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.041e-05/0.2761, allocations: 10.5 kB / 468.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.2762, allocations: 4 kB / 468.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01204/0.2882, allocations: 4.219 MB / 472.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.2893, allocations: 219.7 kB / 472.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02635/0.3156, allocations: 13.16 MB / 486 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001324/0.317, allocations: 142.5 kB / 486.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002193/0.3172, allocations: 55.98 kB / 486.2 MB, free: 15.37 MB / 366.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,36)} Notification: Performance of prepare postOptimizeDAE: time 0.0006501/0.3179, allocations: 305.6 kB / 486.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003018/0.3182, allocations: 106.7 kB / 486.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01062/0.3288, allocations: 4.082 MB / 490.7 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.658e-05/0.3289, allocations: 16 kB / 490.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3289, allocations: 3.938 kB / 490.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.539e-05/0.3289, allocations: 11.97 kB / 490.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01308/0.342, allocations: 5.999 MB / 496.7 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.3421, allocations: 0 / 496.7 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006274/0.3427, allocations: 175.7 kB / 496.9 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.011/0.3537, allocations: 2.903 MB / 499.8 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002223/0.354, allocations: 32 kB / 499.9 MB, free: 1.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02435/0.3783, allocations: 12.96 MB / 0.5008 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3784, allocations: 0 / 0.5008 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01128/0.3897, allocations: 3.94 MB / 0.5046 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003696/0.3901, allocations: 207.3 kB / 0.5048 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002623/0.3904, allocations: 28 kB / 0.5049 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/0.3915, allocations: 102.7 kB / 0.505 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005187/0.3921, allocations: 126.4 kB / 0.5051 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001566/0.3922, allocations: 52 kB / 0.5051 GB, free: 60 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.1789/0.5711, allocations: 456.8 kB / 0.5056 GB, free: 91.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.553e-06/0.5712, allocations: 0 / 0.5056 GB, free: 91.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00268/0.5739, allocations: 0.5522 MB / 0.5061 GB, free: 91.91 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 (105): * Single equations (assignments): 104 * 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,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01071/0.5846, allocations: 4.549 MB / 0.5106 GB, free: 91.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009875/0.5945, allocations: 3.486 MB / 0.514 GB, free: 90.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/0.5945, allocations: 0.6562 kB / 0.514 GB, free: 90.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0059/0.6005, allocations: 2.265 MB / 0.5162 GB, free: 89.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.6016, allocations: 148.8 kB / 0.5163 GB, free: 89.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02773/0.6294, allocations: 15.58 MB / 0.5315 GB, free: 77.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006373/0.6301, allocations: 1.102 MB / 0.5326 GB, free: 75.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006143/0.6307, allocations: 150 kB / 0.5327 GB, free: 75.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005099/0.6312, allocations: 415.3 kB / 0.5331 GB, free: 75.42 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.6312, allocations: 0 / 0.5331 GB, free: 75.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1965/0.8278, allocations: 49.98 MB / 0.5819 GB, free: 25.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/13.32, allocations: 6.906 kB / 0.5819 GB, free: 25.7 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithLoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithLoads.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe 2>&1)