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.003966/0.003966, allocations: 92.06 kB / 15.91 MB, free: 6.289 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.001126/0.001126, allocations: 194.4 kB / 16.83 MB, free: 6.207 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.257/1.257, allocations: 222.9 MB / 240.5 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.178/0.178, allocations: 8.073 MB / 298.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.00106, allocations: 56.14 kB / 361.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09741/0.09848, allocations: 51.53 MB / 412.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers): time 0.008234/0.1067, allocations: 8.758 MB / 421.4 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004377/0.1111, allocations: 2.312 MB / 423.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007657/0.1119, allocations: 28 kB / 423.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007557/0.1127, allocations: 342.3 kB / 424.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001697/0.1144, allocations: 0.7343 MB / 424.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002923/0.1174, allocations: 1.553 MB / 426.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001937/0.1193, allocations: 1.777 MB / 428.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007075/0.12, allocations: 0.588 MB / 428.8 MB, free: 9.887 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007743/0.1208, allocations: 0.6848 MB / 429.4 MB, free: 9.199 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000925/0.1218, allocations: 0.9336 MB / 430.4 MB, free: 8.262 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.1219, allocations: 116 kB / 430.5 MB, free: 8.148 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007019/0.1227, allocations: 347.7 kB / 430.8 MB, free: 7.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000243/0.1229, allocations: 326.6 kB / 431.1 MB, free: 7.488 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007059/0.1236, allocations: 0.8394 MB / 432 MB, free: 6.645 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001709/0.1253, allocations: 2.224 MB / 434.2 MB, free: 4.414 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.604e-06/0.1253, allocations: 0 / 434.2 MB, free: 4.414 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.32e-07/0.1254, allocations: 0 / 434.2 MB, free: 4.414 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.1254, allocations: 0 / 434.2 MB, free: 4.414 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.01687/0.1423, allocations: 4.16 MB / 438.4 MB, free: 192 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.1423, allocations: 8.031 kB / 438.4 MB, free: 184 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1616/0.304, allocations: 180.4 kB / 438.5 MB, free: 54.74 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006831/0.3047, allocations: 183.5 kB / 438.7 MB, free: 54.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001549/0.3062, allocations: 0.931 MB / 439.7 MB, free: 54.44 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.3064, allocations: 167 kB / 439.8 MB, free: 54.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003577/0.3067, allocations: 141 kB / 440 MB, free: 54.38 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003213/0.31, allocations: 2.017 MB / 442 MB, free: 54.24 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.322e-05/0.31, allocations: 1.938 kB / 442 MB, free: 54.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001731/0.3102, allocations: 51.97 kB / 442 MB, free: 54.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.3102, allocations: 29.53 kB / 442.1 MB, free: 54.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002599/0.3128, allocations: 1.949 MB / 444 MB, free: 53.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007662/0.3205, allocations: 8.225 MB / 452.2 MB, free: 47.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003147/0.3236, allocations: 4.584 MB / 456.8 MB, free: 43.92 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001449/0.3251, allocations: 1.398 MB / 458.2 MB, free: 43.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001692/0.3253, allocations: 46.25 kB / 458.3 MB, free: 43.22 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001791/0.3271, allocations: 1.443 MB / 459.7 MB, free: 42.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=201): time 3.356e-06/0.3271, allocations: 0 / 459.7 MB, free: 42.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=201): time 0.05251/0.3796, allocations: 13.23 MB / 472.9 MB, free: 39.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.3797, allocations: 178.2 kB / 473.1 MB, free: 39.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009434/0.3806, allocations: 0.8084 MB / 473.9 MB, free: 39.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002557/0.3809, allocations: 74.14 kB / 474 MB, free: 39.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002311/0.3811, allocations: 439 kB / 474.4 MB, free: 38.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004237/0.3816, allocations: 0.659 MB / 475.1 MB, free: 38.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005861/0.3822, allocations: 392 kB / 475.5 MB, free: 38.06 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.729e-05/0.3822, allocations: 359.1 kB / 475.8 MB, free: 37.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/0.3839, allocations: 1.257 MB / 477.1 MB, free: 37.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001764/0.3856, allocations: 1.431 MB / 478.5 MB, free: 36.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003625/0.3893, allocations: 2.8 MB / 481.3 MB, free: 34.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.3893, allocations: 5.188 kB / 481.3 MB, free: 34.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01282/0.4021, allocations: 5.267 MB / 486.6 MB, free: 32.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.4022, allocations: 4.625 kB / 486.6 MB, free: 32.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.4022, allocations: 1.906 kB / 486.6 MB, free: 32.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01367/0.4158, allocations: 3.805 MB / 490.4 MB, free: 32.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.4172, allocations: 317.6 kB / 490.7 MB, free: 32.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02264/0.4398, allocations: 14.45 MB / 0.4933 GB, free: 23.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.4412, allocations: 199.6 kB / 0.4935 GB, free: 23.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000146/0.4413, allocations: 74.38 kB / 0.4936 GB, free: 23.19 MB / 366.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.0005764/0.4419, allocations: 362.2 kB / 0.4939 GB, free: 22.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.4422, allocations: 143.7 kB / 0.4941 GB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01133/0.4535, allocations: 5.209 MB / 0.4991 GB, free: 18.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.4535, allocations: 24 kB / 0.4992 GB, free: 18.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.4535, allocations: 0 / 0.4992 GB, free: 18.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.4535, allocations: 11.95 kB / 0.4992 GB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01279/0.4663, allocations: 7.749 MB / 0.5067 GB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.4664, allocations: 0 / 0.5067 GB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006773/0.467, allocations: 235.7 kB / 0.507 GB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01187/0.4789, allocations: 3.262 MB / 0.5102 GB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001441/0.4791, allocations: 43.98 kB / 0.5102 GB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02232/0.5014, allocations: 14.25 MB / 0.5241 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.5014, allocations: 1.562 kB / 0.5241 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01212/0.5135, allocations: 5.024 MB / 0.529 GB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002859/0.5139, allocations: 238.8 kB / 0.5292 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002259/0.5141, allocations: 47.61 kB / 0.5293 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/0.5152, allocations: 108.8 kB / 0.5294 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005396/0.5158, allocations: 182.6 kB / 0.5296 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/0.516, allocations: 71.98 kB / 0.5296 GB, free: 2.938 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000695/0.5167, allocations: 0.5341 MB / 0.5302 GB, free: 2.402 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5167, allocations: 4 kB / 0.5302 GB, free: 2.398 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001742/0.5184, allocations: 0.7338 MB / 0.5309 GB, free: 1.664 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: 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.5307, allocations: 5.639 MB / 0.5364 GB, free: 12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007961/0.5387, allocations: 4.094 MB / 0.5404 GB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.5387, allocations: 5.281 kB / 0.5404 GB, free: 7.883 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00552/0.5443, allocations: 2.577 MB / 0.5429 GB, free: 5.305 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.5453, allocations: 177 kB / 0.5431 GB, free: 5.137 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03791/0.5832, allocations: 20.41 MB / 0.563 GB, free: 244 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007668/0.584, allocations: 1.228 MB / 0.5642 GB, free: 14.98 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007905/0.5848, allocations: 198 kB / 0.5644 GB, free: 14.79 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006733/0.5855, allocations: 0.5461 MB / 0.5649 GB, free: 14.24 MB / 430.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5855, allocations: 0 / 0.5649 GB, free: 14.24 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.219/1.805, allocations: 62.33 MB / 0.6258 GB, free: 121 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002379/1.805, allocations: 261.7 kB / 0.626 GB, free: 120.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.725/4.53, allocations: 1.406 kB / 0.626 GB, free: 120.7 MB / 446.1 MB (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)