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.001271/0.001271, allocations: 105.2 kB / 16.45 MB, free: 6.375 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.001338/0.001338, allocations: 192.6 kB / 17.38 MB, free: 5.641 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.299/1.299, 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.05021/0.05021, allocations: 8.093 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 71.89 kB / 414 MB, free: 22.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0913/0.09245, allocations: 51.51 MB / 465.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers): time 0.009705/0.1022, allocations: 8.856 MB / 474.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004639/0.1069, allocations: 2.336 MB / 476.7 MB, free: 7.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001302/0.1082, allocations: 24 kB / 476.7 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.1095, allocations: 417.1 kB / 477.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002673/0.1123, allocations: 0.8385 MB / 478 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003463/0.1157, allocations: 1.595 MB / 479.6 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002903/0.1187, allocations: 1.91 MB / 481.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001281/0.12, allocations: 0.6929 MB / 482.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001649/0.1216, allocations: 0.7823 MB / 482.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001714/0.1233, allocations: 0.9844 MB / 483.9 MB, free: 128 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002982/0.1236, allocations: 188 kB / 484.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008677/0.1245, allocations: 427.7 kB / 484.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002802/0.1248, allocations: 410.6 kB / 484.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008868/0.1257, allocations: 0.9059 MB / 485.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002649/0.1284, allocations: 2.302 MB / 488.1 MB, free: 11.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1284, allocations: 0 / 488.1 MB, free: 11.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1284, allocations: 0 / 488.1 MB, free: 11.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.615e-05/0.1284, allocations: 0 / 488.1 MB, free: 11.9 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.01621/0.1447, allocations: 4.16 MB / 492.3 MB, free: 7.676 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.1447, allocations: 11.89 kB / 492.3 MB, free: 7.664 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002495/0.145, allocations: 185.6 kB / 492.5 MB, free: 7.473 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003881/0.1454, allocations: 183 kB / 492.7 MB, free: 7.293 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/0.1467, allocations: 0.9286 MB / 493.6 MB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.1469, allocations: 166.9 kB / 493.8 MB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002153/0.1471, allocations: 136.4 kB / 493.9 MB, free: 6.016 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003011/0.1501, allocations: 2.025 MB / 495.9 MB, free: 3.945 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.1502, allocations: 3.938 kB / 495.9 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/0.1503, allocations: 59.94 kB / 496 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.132e-05/0.1504, allocations: 28 kB / 496 MB, free: 3.855 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002793/0.1532, allocations: 1.946 MB / 497.9 MB, free: 1.902 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009725/0.1629, allocations: 8.193 MB / 0.4943 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004245/0.1672, allocations: 4.579 MB / 0.4988 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001764/0.1689, allocations: 1.406 MB / 0.5001 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001815/0.1691, allocations: 49.88 kB / 0.5002 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00215/0.1713, allocations: 1.433 MB / 0.5016 GB, free: 1.152 MB / 382.1 MB Notification: Performance of pre-optimization done (n=201): time 4.248e-06/0.1713, allocations: 0 / 0.5016 GB, free: 1.152 MB / 382.1 MB Notification: Performance of matching and sorting (n=201): time 0.2617/0.433, allocations: 13.24 MB / 0.5145 GB, free: 41.37 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.823e-05/0.4331, allocations: 177.1 kB / 0.5147 GB, free: 41.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.4342, allocations: 0.8111 MB / 0.5155 GB, free: 40.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002666/0.4345, allocations: 74.11 kB / 0.5155 GB, free: 40.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003071/0.4348, allocations: 442.7 kB / 0.516 GB, free: 40.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004354/0.4352, allocations: 0.6668 MB / 0.5166 GB, free: 39.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006464/0.4359, allocations: 375.7 kB / 0.517 GB, free: 39.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.202e-05/0.436, allocations: 361.7 kB / 0.5173 GB, free: 39.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0017/0.4377, allocations: 1.256 MB / 0.5185 GB, free: 38.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001793/0.4395, allocations: 1.429 MB / 0.5199 GB, free: 37.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003646/0.4431, allocations: 2.807 MB / 0.5227 GB, free: 36.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.4432, allocations: 0 / 0.5227 GB, free: 36.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01156/0.4547, allocations: 5.263 MB / 0.5278 GB, free: 33.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/0.4548, allocations: 6.031 kB / 0.5278 GB, free: 33.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.4548, allocations: 0 / 0.5278 GB, free: 33.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01209/0.4669, allocations: 3.801 MB / 0.5315 GB, free: 30.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.4681, allocations: 323.5 kB / 0.5318 GB, free: 30.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02766/0.4958, allocations: 15.85 MB / 0.5473 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/0.4976, allocations: 197.9 kB / 0.5475 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/0.4978, allocations: 71.97 kB / 0.5476 GB, free: 14.26 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.0007305/0.4985, allocations: 375.7 kB / 0.5479 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002513/0.4988, allocations: 138.3 kB / 0.5481 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0116/0.5104, allocations: 5.198 MB / 0.5531 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.5104, allocations: 24.94 kB / 0.5532 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.5104, allocations: 3.938 kB / 0.5532 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.5104, allocations: 11.95 kB / 0.5532 GB, free: 8.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01317/0.5236, allocations: 7.721 MB / 0.5607 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.5237, allocations: 0 / 0.5607 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000683/0.5243, allocations: 239.6 kB / 0.561 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01285/0.5372, allocations: 3.258 MB / 0.5641 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002278/0.5375, allocations: 47.98 kB / 0.5642 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02723/0.5647, allocations: 15.65 MB / 0.5795 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5647, allocations: 0 / 0.5795 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0125/0.5772, allocations: 5.033 MB / 0.5844 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004321/0.5777, allocations: 242.8 kB / 0.5846 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002035/0.5779, allocations: 40 kB / 0.5846 GB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/0.5792, allocations: 115.1 kB / 0.5848 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006741/0.5799, allocations: 170.8 kB / 0.5849 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001685/0.5801, allocations: 71.98 kB / 0.585 GB, free: 7.719 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007991/0.5809, allocations: 0.5341 MB / 0.5855 GB, free: 7.188 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5809, allocations: 7.281 kB / 0.5855 GB, free: 7.184 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002053/0.583, allocations: 0.7358 MB / 0.5862 GB, free: 6.449 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.01274/0.5957, allocations: 5.643 MB / 0.5917 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008734/0.6045, allocations: 4.155 MB / 0.5958 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/0.6045, allocations: 5.281 kB / 0.5958 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006142/0.6107, allocations: 2.607 MB / 0.5984 GB, free: 9.988 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.6119, allocations: 184.5 kB / 0.5985 GB, free: 9.809 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04025/0.6522, allocations: 19.06 MB / 0.6171 GB, free: 6.578 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/0.6533, allocations: 1.224 MB / 0.6183 GB, free: 5.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008363/0.6542, allocations: 199.8 kB / 0.6185 GB, free: 5.125 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000763/0.655, allocations: 0.5539 MB / 0.6191 GB, free: 4.57 MB / 446.1 MB Notification: Performance of SimCode: time 8.01e-07/0.655, allocations: 4 kB / 0.6191 GB, free: 4.566 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1115/0.7665, allocations: 68.08 MB / 0.6856 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/14.17, allocations: 6.438 kB / 0.6856 GB, free: 0.7812 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)