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-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: 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.0014/0.0014, allocations: 120.2 kB / 17.13 MB, free: 5.895 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.001517/0.001517, allocations: 194.3 kB / 18.06 MB, free: 4.977 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.349/1.349, allocations: 222.9 MB / 241.8 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04419/0.04419, allocations: 8.103 MB / 300 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 67.89 kB / 415.2 MB, free: 21.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07515/0.07633, allocations: 51.51 MB / 466.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.00318/0.07955, allocations: 2.438 MB / 469.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002051/0.08162, allocations: 1.719 MB / 470.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.08174, allocations: 11.94 kB / 470.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003545/0.0821, allocations: 159.1 kB / 471 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003876/0.08251, allocations: 214.6 kB / 471.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001768/0.08429, allocations: 1.023 MB / 472.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004942/0.08479, allocations: 473.9 kB / 472.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002508/0.08505, allocations: 176.1 kB / 472.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001577/0.08522, allocations: 191.3 kB / 473 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003241/0.08555, allocations: 258.9 kB / 473.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.095e-05/0.08562, allocations: 44 kB / 473.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003865/0.08601, allocations: 251.8 kB / 473.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.281e-05/0.08609, allocations: 107.5 kB / 473.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001935/0.08629, allocations: 226.9 kB / 473.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006407/0.08694, allocations: 0.6387 MB / 474.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.08696, allocations: 7.938 kB / 474.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.08696, allocations: 0 / 474.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.08698, allocations: 4 kB / 474.6 MB, free: 10.22 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.003662/0.09064, allocations: 1.179 MB / 475.7 MB, free: 8.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.09068, allocations: 11.89 kB / 475.8 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002585/0.09095, allocations: 64.45 kB / 475.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.09138, allocations: 363.4 kB / 476.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.09141, allocations: 21.03 kB / 476.2 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.707e-05/0.09147, allocations: 40.36 kB / 476.2 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007105/0.09219, allocations: 454.5 kB / 476.7 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.09221, allocations: 192 / 476.7 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.167e-05/0.09226, allocations: 15.94 kB / 476.7 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.09227, allocations: 8 kB / 476.7 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006376/0.09292, allocations: 454.4 kB / 477.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00226/0.09518, allocations: 1.991 MB / 479.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.09626, allocations: 0.678 MB / 479.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004073/0.09668, allocations: 305.1 kB / 480.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.439e-05/0.09675, allocations: 16 kB / 480.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006054/0.09736, allocations: 472.5 kB / 480.6 MB, free: 3.801 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.653e-06/0.09737, allocations: 0 / 480.6 MB, free: 3.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005792/0.1032, allocations: 1.791 MB / 482.4 MB, free: 1.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.253e-05/0.1033, allocations: 200.3 kB / 482.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003161/0.1036, allocations: 302.9 kB / 482.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.074e-05/0.1037, allocations: 41.7 kB / 482.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.1038, allocations: 168.8 kB / 483.1 MB, free: 1.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.1039, allocations: 165.6 kB / 483.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.1041, allocations: 102.2 kB / 483.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1042, allocations: 350.8 kB / 483.7 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/0.1046, allocations: 281.1 kB / 484 MB, free: 328 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004542/0.1051, allocations: 339.8 kB / 484.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007361/0.1125, allocations: 2.082 MB / 486.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.1125, allocations: 4 kB / 486.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002619/0.1151, allocations: 1.176 MB / 487.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.1151, allocations: 41.69 kB / 487.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.1152, allocations: 11.92 kB / 487.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002221/0.1174, allocations: 0.5159 MB / 488.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003098/0.1177, allocations: 79.84 kB / 488.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005753/0.1235, allocations: 3.962 MB / 492.2 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003946/0.1239, allocations: 47.47 kB / 492.2 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.016e-05/0.1239, allocations: 27.98 kB / 492.2 MB, free: 7.824 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.000298/0.1243, allocations: 224 kB / 492.4 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.343e-05/0.1243, allocations: 35.53 kB / 492.5 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002718/0.1271, allocations: 1.137 MB / 493.6 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.1271, allocations: 12 kB / 493.6 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.1271, allocations: 0 / 493.6 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1271, allocations: 3.984 kB / 493.6 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00327/0.1304, allocations: 1.834 MB / 495.5 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.1304, allocations: 0 / 495.5 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.1306, allocations: 47.92 kB / 495.5 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002246/0.1328, allocations: 0.5041 MB / 496 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.917e-05/0.1329, allocations: 15.98 kB / 496 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005561/0.1384, allocations: 3.91 MB / 499.9 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1385, allocations: 0 / 499.9 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002594/0.1411, allocations: 1.184 MB / 0.4894 GB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.1412, allocations: 128.4 kB / 0.4895 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.618e-05/0.1413, allocations: 16 kB / 0.4895 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003449/0.1416, allocations: 23.92 kB / 0.4895 GB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.1417, allocations: 36.39 kB / 0.4896 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.976e-05/0.1418, allocations: 19.98 kB / 0.4896 GB, free: 14.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000232/0.142, allocations: 214 kB / 0.4898 GB, free: 14.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.142, allocations: 4 kB / 0.4898 GB, free: 14.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005968/0.1426, allocations: 187.8 kB / 0.49 GB, free: 14.01 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.0002097/0.1428, allocations: 139.2 kB / 0.4901 GB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001849/0.1447, allocations: 0.9887 MB / 0.4911 GB, free: 12.85 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.1447, allocations: 4.25 kB / 0.4911 GB, free: 12.85 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.1459, allocations: 0.6917 MB / 0.4918 GB, free: 12.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003966/0.1463, allocations: 43.47 kB / 0.4918 GB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.1476, allocations: 0.8235 MB / 0.4926 GB, free: 11.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.148, allocations: 0.8016 MB / 0.4934 GB, free: 10.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.1481, allocations: 39.42 kB / 0.4934 GB, free: 10.38 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1481, allocations: 4 kB / 0.4934 GB, free: 10.38 MB / 382.1 MB Notification: Performance of Templates: time 0.01028/0.1584, allocations: 7.736 MB / 0.501 GB, free: 2.641 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)