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.0009879/0.0009878, allocations: 103.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.001008/0.001009, allocations: 192.1 kB / 17.39 MB, free: 5.668 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.272/1.272, 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.04666/0.04666, allocations: 8.103 MB / 299.3 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 63.91 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0914/0.09256, allocations: 51.52 MB / 465.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers): time 0.009445/0.1021, allocations: 8.845 MB / 474.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004549/0.1066, allocations: 2.34 MB / 476.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001245/0.1079, allocations: 28 kB / 476.7 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001204/0.1091, allocations: 413.1 kB / 477.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002516/0.1117, allocations: 0.8308 MB / 478 MB, free: 6.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003379/0.1151, allocations: 1.611 MB / 479.6 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003061/0.1182, allocations: 1.898 MB / 481.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001302/0.1195, allocations: 0.7006 MB / 482.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001241/0.1207, allocations: 0.7823 MB / 482.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001696/0.1225, allocations: 0.9805 MB / 483.9 MB, free: 152 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005511/0.123, allocations: 192 kB / 484.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/0.1242, allocations: 431.7 kB / 484.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005737/0.1248, allocations: 402.6 kB / 484.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001542/0.1263, allocations: 0.9137 MB / 485.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003118/0.1295, allocations: 2.29 MB / 488.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1295, allocations: 4 kB / 488.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1295, allocations: 0 / 488.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.343e-05/0.1296, allocations: 0 / 488.1 MB, free: 11.93 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.01579/0.1454, allocations: 4.156 MB / 492.3 MB, free: 7.703 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.1454, allocations: 19.83 kB / 492.3 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000235/0.1457, allocations: 181.7 kB / 492.5 MB, free: 7.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003581/0.1461, allocations: 183 kB / 492.7 MB, free: 7.316 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001274/0.1473, allocations: 0.9325 MB / 493.6 MB, free: 6.344 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.1475, allocations: 166.9 kB / 493.8 MB, free: 6.168 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000211/0.1477, allocations: 140.4 kB / 493.9 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002916/0.1506, allocations: 2.021 MB / 495.9 MB, free: 3.965 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.1507, allocations: 7.938 kB / 495.9 MB, free: 3.957 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001496/0.1508, allocations: 55.94 kB / 496 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.1508, allocations: 28 kB / 496 MB, free: 3.875 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002707/0.1536, allocations: 1.946 MB / 498 MB, free: 1.922 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009331/0.1629, allocations: 8.189 MB / 0.4943 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004481/0.1674, allocations: 4.583 MB / 0.4988 GB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/0.1692, allocations: 1.4 MB / 0.5001 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001924/0.1695, allocations: 53.86 kB / 0.5002 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002156/0.1716, allocations: 1.44 MB / 0.5016 GB, free: 1.164 MB / 382.1 MB Notification: Performance of pre-optimization done (n=201): time 4.178e-06/0.1716, allocations: 0 / 0.5016 GB, free: 1.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=201): time 0.2414/0.413, allocations: 13.23 MB / 0.5145 GB, free: 41.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.787e-05/0.4131, allocations: 180.5 kB / 0.5147 GB, free: 41.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.4142, allocations: 0.8174 MB / 0.5155 GB, free: 40.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003171/0.4145, allocations: 74.77 kB / 0.5155 GB, free: 40.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/0.4148, allocations: 431.1 kB / 0.516 GB, free: 40.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004086/0.4152, allocations: 0.6625 MB / 0.5166 GB, free: 39.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006372/0.4159, allocations: 383.4 kB / 0.517 GB, free: 39.74 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.016e-05/0.4159, allocations: 354.3 kB / 0.5173 GB, free: 39.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001712/0.4177, allocations: 1.256 MB / 0.5185 GB, free: 38.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001796/0.4195, allocations: 1.432 MB / 0.5199 GB, free: 37.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003619/0.4231, allocations: 2.807 MB / 0.5227 GB, free: 36.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.4231, allocations: 1.375 kB / 0.5227 GB, free: 36.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.0115/0.4346, allocations: 5.26 MB / 0.5278 GB, free: 33.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.4347, allocations: 3.625 kB / 0.5278 GB, free: 33.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.4347, allocations: 7.438 kB / 0.5278 GB, free: 33.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01147/0.4462, allocations: 3.802 MB / 0.5315 GB, free: 30.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.4474, allocations: 323.5 kB / 0.5318 GB, free: 30.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02206/0.4695, allocations: 15.84 MB / 0.5473 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/0.4709, allocations: 209.6 kB / 0.5475 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/0.4711, allocations: 71.98 kB / 0.5476 GB, free: 14.41 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.0005849/0.4717, allocations: 365.5 kB / 0.5479 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.4719, allocations: 142.3 kB / 0.5481 GB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01099/0.4829, allocations: 5.198 MB / 0.5531 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.483, allocations: 28.88 kB / 0.5532 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.483, allocations: 0 / 0.5532 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.01e-05/0.483, allocations: 11.95 kB / 0.5532 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01306/0.4961, allocations: 7.723 MB / 0.5607 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.4961, allocations: 0 / 0.5607 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007083/0.4968, allocations: 239.6 kB / 0.561 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01208/0.5089, allocations: 3.262 MB / 0.5641 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002487/0.5092, allocations: 43.98 kB / 0.5642 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02614/0.5353, allocations: 15.65 MB / 0.5795 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.5354, allocations: 3.984 kB / 0.5795 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01215/0.5475, allocations: 5.025 MB / 0.5844 GB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004283/0.548, allocations: 250.8 kB / 0.5846 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002173/0.5482, allocations: 40 kB / 0.5847 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/0.5494, allocations: 110.6 kB / 0.5848 GB, free: 8.102 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000616/0.55, allocations: 170.8 kB / 0.5849 GB, free: 7.934 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001611/0.5502, allocations: 71.98 kB / 0.585 GB, free: 7.863 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007626/0.551, allocations: 0.5375 MB / 0.5855 GB, free: 7.332 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.551, allocations: 4 kB / 0.5855 GB, free: 7.328 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001899/0.5529, allocations: 0.7404 MB / 0.5862 GB, free: 6.59 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.0123/0.5652, allocations: 5.647 MB / 0.5918 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008386/0.5736, allocations: 4.148 MB / 0.5958 GB, free: 12.76 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/0.5736, allocations: 1.281 kB / 0.5958 GB, free: 12.76 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005694/0.5793, allocations: 2.614 MB / 0.5984 GB, free: 10.13 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.5804, allocations: 184.5 kB / 0.5985 GB, free: 9.953 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03541/0.6159, allocations: 19.06 MB / 0.6171 GB, free: 6.719 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007728/0.6167, allocations: 1.228 MB / 0.6183 GB, free: 5.457 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006946/0.6174, allocations: 199.8 kB / 0.6185 GB, free: 5.262 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006648/0.6181, allocations: 0.5461 MB / 0.6191 GB, free: 4.715 MB / 446.1 MB Notification: Performance of SimCode: time 7.92e-07/0.6181, allocations: 0 / 0.6191 GB, free: 4.715 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1004/0.7185, allocations: 65.8 MB / 0.6833 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.81, allocations: 7.938 kB / 0.6833 GB, free: 3.215 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)