Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.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.DoubleNetworkWithTwoOppositeBreakers,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers",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.001393/0.001394, allocations: 104.2 kB / 16.45 MB, free: 6.445 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.001295/0.001295, allocations: 186.4 kB / 17.39 MB, free: 5.688 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.467/1.467, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05744/0.05744, allocations: 8.096 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002615/0.002615, allocations: 67.88 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.131, allocations: 51.51 MB / 465.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers): time 0.01058/0.1416, allocations: 8.858 MB / 474.4 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005244/0.1469, allocations: 2.324 MB / 476.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001491/0.1484, allocations: 28 kB / 476.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001276/0.1497, allocations: 417.1 kB / 477.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002907/0.1527, allocations: 0.8308 MB / 478 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00394/0.1566, allocations: 1.611 MB / 479.6 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003546/0.1602, allocations: 1.898 MB / 481.5 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001207/0.1614, allocations: 0.6882 MB / 482.1 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001401/0.1628, allocations: 0.7862 MB / 482.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001679/0.1645, allocations: 0.9805 MB / 483.9 MB, free: 148 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004647/0.165, allocations: 188 kB / 484.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001243/0.1663, allocations: 431.7 kB / 484.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004288/0.1667, allocations: 406.6 kB / 484.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00126/0.168, allocations: 0.9137 MB / 485.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003415/0.1714, allocations: 2.308 MB / 488.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1714, allocations: 0 / 488.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1715, allocations: 0 / 488.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.502e-05/0.1715, allocations: 0 / 488.1 MB, free: 11.91 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.01761/0.1891, allocations: 4.201 MB / 492.3 MB, free: 7.637 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.409e-05/0.1892, allocations: 15.89 kB / 492.4 MB, free: 7.621 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003208/0.1895, allocations: 185.6 kB / 492.5 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004902/0.19, allocations: 191.9 kB / 492.7 MB, free: 7.242 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001568/0.1916, allocations: 0.9409 MB / 493.7 MB, free: 6.262 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.1918, allocations: 166.9 kB / 493.8 MB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002436/0.192, allocations: 140.4 kB / 494 MB, free: 5.949 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003643/0.1957, allocations: 2.028 MB / 496 MB, free: 3.875 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.1957, allocations: 0 / 496 MB, free: 3.875 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001779/0.1959, allocations: 56 kB / 496 MB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.017e-05/0.196, allocations: 28 kB / 496.1 MB, free: 3.793 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003421/0.1994, allocations: 1.946 MB / 498 MB, free: 1.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01338/0.2128, allocations: 8.198 MB / 0.4944 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005576/0.2184, allocations: 4.583 MB / 0.4988 GB, free: 3.977 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002463/0.2209, allocations: 1.406 MB / 0.5002 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002443/0.2212, allocations: 49.88 kB / 0.5003 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00288/0.2241, allocations: 1.437 MB / 0.5017 GB, free: 1.078 MB / 382.1 MB Notification: Performance of pre-optimization done (n=201): time 4.669e-06/0.2241, allocations: 3.938 kB / 0.5017 GB, free: 1.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=201): time 0.3006/0.5247, allocations: 13.24 MB / 0.5146 GB, free: 41.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.391e-05/0.5248, allocations: 183.4 kB / 0.5148 GB, free: 41.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001361/0.5262, allocations: 0.8165 MB / 0.5156 GB, free: 40.74 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004212/0.5266, allocations: 74.36 kB / 0.5156 GB, free: 40.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003724/0.527, allocations: 439 kB / 0.516 GB, free: 40.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007063/0.5277, allocations: 0.6985 MB / 0.5167 GB, free: 39.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009885/0.5287, allocations: 383.9 kB / 0.5171 GB, free: 39.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.5289, allocations: 357.1 kB / 0.5174 GB, free: 39.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002313/0.5312, allocations: 1.256 MB / 0.5187 GB, free: 38.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00253/0.5337, allocations: 1.433 MB / 0.5201 GB, free: 37.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004956/0.5387, allocations: 2.806 MB / 0.5228 GB, free: 36.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.4e-05/0.5388, allocations: 1.312 kB / 0.5228 GB, free: 36.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01364/0.5524, allocations: 5.269 MB / 0.5279 GB, free: 33.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.5525, allocations: 3.844 kB / 0.528 GB, free: 33.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.5525, allocations: 0 / 0.528 GB, free: 33.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01345/0.566, allocations: 3.81 MB / 0.5317 GB, free: 30.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.5673, allocations: 323.5 kB / 0.532 GB, free: 30.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02934/0.5967, allocations: 15.87 MB / 0.5475 GB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.5988, allocations: 203.8 kB / 0.5477 GB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004116/0.5993, allocations: 75.98 kB / 0.5477 GB, free: 14.33 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,n.y,cmd.pulseStart,$PRE.cmd.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 186 * 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 {(28,58)} Notification: Performance of prepare postOptimizeDAE: time 0.001086/0.6004, allocations: 369.5 kB / 0.5481 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005115/0.6009, allocations: 147.1 kB / 0.5482 GB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01318/0.6141, allocations: 5.203 MB / 0.5533 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-05/0.6142, allocations: 28 kB / 0.5533 GB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.6142, allocations: 0 / 0.5533 GB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.996e-05/0.6143, allocations: 11.95 kB / 0.5534 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02102/0.6353, allocations: 7.732 MB / 0.5609 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.492e-05/0.6354, allocations: 0 / 0.5609 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000961/0.6364, allocations: 239.6 kB / 0.5611 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01432/0.6507, allocations: 3.258 MB / 0.5643 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005933/0.6513, allocations: 55.97 kB / 0.5644 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03597/0.6873, allocations: 15.65 MB / 0.5797 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.6874, allocations: 0 / 0.5797 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01578/0.7032, allocations: 5.034 MB / 0.5846 GB, free: 8.418 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005678/0.7038, allocations: 255.5 kB / 0.5848 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006176/0.7044, allocations: 39.94 kB / 0.5849 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001893/0.7063, allocations: 115.9 kB / 0.585 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001016/0.7074, allocations: 170.8 kB / 0.5851 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003736/0.7078, allocations: 67.98 kB / 0.5852 GB, free: 7.762 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001128/0.7089, allocations: 0.5381 MB / 0.5857 GB, free: 7.227 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.603e-06/0.7089, allocations: 4 kB / 0.5857 GB, free: 7.223 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003271/0.7122, allocations: 0.7448 MB / 0.5865 GB, free: 6.48 MB / 414.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: 3 ($whenCondition1,cmd.pulseStart,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(28,58)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01893/0.7312, allocations: 5.648 MB / 0.592 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01753/0.7487, allocations: 4.16 MB / 0.596 GB, free: 12.64 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.386e-05/0.7488, allocations: 1.281 kB / 0.596 GB, free: 12.64 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01147/0.7603, allocations: 2.627 MB / 0.5986 GB, free: 10 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002562/0.7629, allocations: 172.2 kB / 0.5988 GB, free: 9.832 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05078/0.8137, allocations: 19.12 MB / 0.6174 GB, free: 6.531 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001552/0.8153, allocations: 1.23 MB / 0.6186 GB, free: 5.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001095/0.8165, allocations: 198 kB / 0.6188 GB, free: 5.074 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/0.8175, allocations: 0.5461 MB / 0.6194 GB, free: 4.527 MB / 446.1 MB Notification: Performance of SimCode: time 1.463e-06/0.8175, allocations: 4 kB / 0.6194 GB, free: 4.523 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1297/0.9472, allocations: 65.8 MB / 0.6836 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.88/15.82, allocations: 15.98 kB / 0.6836 GB, free: 3.016 MB / 0.4981 GB (rm -f PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe 2>&1)