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.001285/0.001285, allocations: 101.7 kB / 16.45 MB, free: 6.43 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.001356/0.001356, allocations: 190.1 kB / 17.38 MB, free: 5.695 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.482/1.482, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05463/0.05463, allocations: 8.111 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 63.89 kB / 414.5 MB, free: 21.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1142, allocations: 51.52 MB / 466 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.003606/0.1178, allocations: 2.446 MB / 468.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002724/0.1206, allocations: 1.726 MB / 470.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.1208, allocations: 4 kB / 470.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005156/0.1213, allocations: 159 kB / 470.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005028/0.1218, allocations: 214.7 kB / 470.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001801/0.1237, allocations: 1.023 MB / 471.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005605/0.1242, allocations: 477.9 kB / 472 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.1245, allocations: 176.1 kB / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000186/0.1247, allocations: 191.3 kB / 472.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003184/0.125, allocations: 258.9 kB / 472.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.799e-05/0.1251, allocations: 47.94 kB / 472.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004528/0.1256, allocations: 255.8 kB / 472.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.1257, allocations: 95.61 kB / 473 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002121/0.1259, allocations: 238.8 kB / 473.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007321/0.1266, allocations: 0.6388 MB / 473.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1267, allocations: 0 / 473.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1267, allocations: 0 / 473.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.1267, 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.00375/0.1304, allocations: 1.179 MB / 475.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.1305, allocations: 8.031 kB / 475.1 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.1307, allocations: 64.44 kB / 475.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004751/0.1312, allocations: 359.4 kB / 475.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/0.1313, allocations: 29.03 kB / 475.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.355e-05/0.1314, allocations: 32.38 kB / 475.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007265/0.1321, allocations: 458.5 kB / 476 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.1321, allocations: 192 / 476 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.741e-05/0.1322, allocations: 19.92 kB / 476 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.1322, allocations: 11.94 kB / 476 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006583/0.1328, allocations: 454.5 kB / 476.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002665/0.1355, allocations: 1.979 MB / 478.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.1368, allocations: 0.6936 MB / 479.1 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004727/0.1373, allocations: 301.2 kB / 479.4 MB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.214e-05/0.1374, allocations: 4 kB / 479.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007221/0.1381, allocations: 476.5 kB / 479.9 MB, free: 3.832 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.795e-06/0.1381, allocations: 0 / 479.9 MB, free: 3.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005965/0.1441, allocations: 1.799 MB / 481.7 MB, free: 2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.1442, allocations: 196.3 kB / 481.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004427/0.1447, allocations: 302.9 kB / 482.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.169e-05/0.1448, allocations: 41.69 kB / 482.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.1449, allocations: 168.8 kB / 482.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.1451, allocations: 169.6 kB / 482.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002021/0.1453, allocations: 102.2 kB / 482.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1454, allocations: 346.8 kB / 483 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004127/0.1458, allocations: 273.1 kB / 483.3 MB, free: 364 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005174/0.1464, allocations: 343.8 kB / 483.6 MB, free: 0 / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007725/0.1541, allocations: 2.078 MB / 485.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1541, allocations: 0 / 485.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002814/0.1569, allocations: 1.188 MB / 486.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.157, allocations: 41.62 kB / 486.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.157, allocations: 3.938 kB / 486.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002303/0.1593, allocations: 0.5113 MB / 487.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003607/0.1597, allocations: 83.89 kB / 487.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006954/0.1667, allocations: 3.959 MB / 491.5 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005182/0.1672, allocations: 47.47 kB / 491.5 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/0.1674, allocations: 27.92 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.0004107/0.1678, allocations: 232 kB / 491.8 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.168, allocations: 39.53 kB / 491.8 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002822/0.1708, allocations: 1.141 MB / 493 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.1708, allocations: 4 kB / 493 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.1708, allocations: 0 / 493 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.1708, allocations: 3.984 kB / 493 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003472/0.1743, allocations: 1.83 MB / 494.8 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1743, allocations: 0 / 494.8 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001716/0.1745, allocations: 47.98 kB / 494.8 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002264/0.1768, allocations: 0.5143 MB / 495.4 MB, free: 3.949 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.043e-05/0.1768, allocations: 12 kB / 495.4 MB, free: 3.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005838/0.1827, allocations: 3.916 MB / 499.3 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1827, allocations: 0 / 499.3 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002829/0.1855, allocations: 1.188 MB / 0.4887 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001518/0.1857, allocations: 116.5 kB / 0.4888 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.316e-05/0.1858, allocations: 19.98 kB / 0.4889 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003738/0.1862, allocations: 27.92 kB / 0.4889 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.1863, allocations: 36.39 kB / 0.4889 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.413e-05/0.1864, allocations: 20 kB / 0.4889 GB, free: 14.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003006/0.1867, allocations: 221.9 kB / 0.4892 GB, free: 14.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1867, allocations: 3.938 kB / 0.4892 GB, free: 14.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007644/0.1875, allocations: 183.8 kB / 0.4893 GB, free: 14.03 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.0002751/0.1878, allocations: 131.2 kB / 0.4895 GB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002113/0.1899, allocations: 0.9966 MB / 0.4904 GB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.1899, allocations: 0 / 0.4904 GB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001242/0.1912, allocations: 0.692 MB / 0.4911 GB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004236/0.1916, allocations: 40.88 kB / 0.4912 GB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.1931, allocations: 0.7747 MB / 0.4919 GB, free: 11.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004506/0.1936, allocations: 0.8172 MB / 0.4927 GB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001871/0.1938, allocations: 47.25 kB / 0.4928 GB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.101e-05/0.1939, allocations: 35.42 kB / 0.4928 GB, free: 10.4 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1939, allocations: 0 / 0.4928 GB, free: 10.4 MB / 382.1 MB Notification: Performance of Templates: time 0.2318/0.4256, allocations: 11.48 MB / 0.504 GB, free: 46.04 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)