Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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: translateModel(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad") translateModel(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 107.3 kB / 16.45 MB, free: 6.438 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.001202/0.001202, allocations: 189.5 kB / 17.39 MB, free: 5.691 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.486/1.486, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05553/0.05553, allocations: 8.09 MB / 299.3 MB, free: 6.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 67.89 kB / 414.5 MB, free: 21.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.106, allocations: 51.51 MB / 466 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.004316/0.1104, allocations: 2.457 MB / 468.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002924/0.1133, allocations: 1.715 MB / 470.2 MB, free: 14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001608/0.1135, allocations: 8 kB / 470.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004881/0.114, allocations: 159 kB / 470.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005502/0.1146, allocations: 214.7 kB / 470.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001941/0.1166, allocations: 1.031 MB / 471.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000692/0.1173, allocations: 477.9 kB / 472 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000303/0.1176, allocations: 172.1 kB / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.1178, allocations: 191.3 kB / 472.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003703/0.1182, allocations: 254.9 kB / 472.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.505e-05/0.1182, allocations: 44 kB / 472.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005035/0.1187, allocations: 259.8 kB / 472.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.11e-05/0.1188, allocations: 95.62 kB / 473 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002411/0.1191, allocations: 234.8 kB / 473.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007672/0.1199, allocations: 0.6388 MB / 473.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1199, allocations: 4 kB / 473.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1199, allocations: 4 kB / 473.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.1199, allocations: 0 / 473.9 MB, free: 10.25 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003453/0.1234, allocations: 1.175 MB / 475.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.1234, allocations: 12.02 kB / 475.1 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002421/0.1237, allocations: 60.45 kB / 475.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000428/0.1241, allocations: 359.4 kB / 475.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.1241, allocations: 25.03 kB / 475.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.99e-05/0.1242, allocations: 36.36 kB / 475.5 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007078/0.1249, allocations: 458.5 kB / 476 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1249, allocations: 192 / 476 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.348e-05/0.125, allocations: 15.94 kB / 476 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.125, allocations: 8 kB / 476 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006668/0.1257, allocations: 462.4 kB / 476.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002334/0.128, allocations: 1.983 MB / 478.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.1291, allocations: 0.6858 MB / 479.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004085/0.1295, allocations: 309.1 kB / 479.4 MB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.743e-05/0.1296, allocations: 8 kB / 479.4 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006622/0.1303, allocations: 472.5 kB / 479.9 MB, free: 3.832 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.703e-06/0.1303, allocations: 4 kB / 479.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005378/0.1357, allocations: 1.791 MB / 481.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.382e-05/0.1358, allocations: 196.3 kB / 481.9 MB, free: 1.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.1361, allocations: 302.9 kB / 482.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.493e-05/0.1362, allocations: 37.7 kB / 482.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.1363, allocations: 172.8 kB / 482.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.1364, allocations: 165.6 kB / 482.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.1366, allocations: 110.2 kB / 482.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1367, allocations: 346.8 kB / 483 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003892/0.1371, allocations: 273.1 kB / 483.3 MB, free: 364 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004318/0.1375, allocations: 339.8 kB / 483.6 MB, free: 4 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006881/0.1444, allocations: 2.082 MB / 485.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.1445, allocations: 4 kB / 485.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002679/0.1471, allocations: 1.184 MB / 486.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.1472, allocations: 37.69 kB / 486.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1472, allocations: 3.938 kB / 486.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002096/0.1493, allocations: 0.5112 MB / 487.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.1496, allocations: 83.89 kB / 487.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005333/0.1549, allocations: 3.964 MB / 491.5 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003564/0.1553, allocations: 47.47 kB / 491.5 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.68e-05/0.1554, allocations: 23.98 kB / 491.5 MB, free: 7.863 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: line2.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean line2.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real line2.myFault.Y.im:DISCRETE(start = 0.0 fixed = true ) "Imaginary part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.line2.myFault.fault,line2.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.line2.myFault.Y.re,$PRE.line2.myFault.Y.im,line2.myFault.Y.im,line2.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0002667/0.1556, allocations: 224 kB / 491.8 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.558e-05/0.1557, allocations: 39.53 kB / 491.8 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002572/0.1583, allocations: 1.141 MB / 492.9 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.1583, allocations: 8 kB / 492.9 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.1583, allocations: 0 / 492.9 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1584, allocations: 3.984 kB / 493 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003187/0.1615, allocations: 1.826 MB / 494.8 MB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1616, allocations: 4 kB / 494.8 MB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.1617, allocations: 43.98 kB / 494.8 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00212/0.1639, allocations: 0.5145 MB / 495.3 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.686e-05/0.1639, allocations: 15.98 kB / 495.4 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005473/0.1694, allocations: 3.916 MB / 499.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1694, allocations: 48 / 499.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/0.172, allocations: 1.188 MB / 0.4887 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001591/0.1722, allocations: 116.5 kB / 0.4888 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.696e-05/0.1723, allocations: 12 kB / 0.4889 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003383/0.1726, allocations: 27.92 kB / 0.4889 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.1728, allocations: 44.38 kB / 0.4889 GB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.542e-05/0.1728, allocations: 16 kB / 0.4889 GB, free: 14.44 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002785/0.1731, allocations: 221.9 kB / 0.4891 GB, free: 14.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1731, allocations: 0 / 0.4891 GB, free: 14.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008402/0.174, allocations: 183.8 kB / 0.4893 GB, free: 14.04 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: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,line2.myFault.Y.re,line2.myFault.Y.im,line2.myFault.fault) * Number of discrete states: 7 ($whenCondition4,line2.myFault.Y.im,line2.myFault.Y.re,$whenCondition3,$whenCondition2,line2.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000327/0.1743, allocations: 142.8 kB / 0.4895 GB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002081/0.1764, allocations: 0.9887 MB / 0.4904 GB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.1764, allocations: 0 / 0.4904 GB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.1776, allocations: 0.688 MB / 0.4911 GB, free: 12.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.178, allocations: 47.45 kB / 0.4911 GB, free: 12.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/0.1795, allocations: 0.7801 MB / 0.4919 GB, free: 11.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004862/0.18, allocations: 0.8133 MB / 0.4927 GB, free: 10.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001924/0.1802, allocations: 47.25 kB / 0.4927 GB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.854e-05/0.1803, allocations: 35.42 kB / 0.4928 GB, free: 10.41 MB / 382.1 MB Notification: Performance of SimCode: time 5.92e-07/0.1803, allocations: 0 / 0.4928 GB, free: 10.41 MB / 382.1 MB Notification: Performance of Templates: time 0.2446/0.4249, allocations: 11.49 MB / 0.504 GB, free: 46.03 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)