Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.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.OneSourceOneLigneWithFault,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceOneLigneWithFault,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault",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.001014/0.001014, allocations: 109.7 kB / 16.45 MB, free: 6.457 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.0009408/0.0009407, allocations: 189.5 kB / 17.38 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.254/1.254, 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-master/package.mo): time 0.04423/0.04423, allocations: 8.095 MB / 299.3 MB, free: 6.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 59.91 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09168/0.09284, allocations: 51.52 MB / 465.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.002669/0.09555, allocations: 1.913 MB / 467.4 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.09746, allocations: 1.598 MB / 469 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.09758, allocations: 8 kB / 469 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004053/0.09799, allocations: 135.2 kB / 469.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003425/0.09836, allocations: 155 kB / 469.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001556/0.09992, allocations: 0.8712 MB / 470.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004355/0.1004, allocations: 350.5 kB / 470.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002246/0.1006, allocations: 134.6 kB / 470.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.1007, allocations: 139.4 kB / 470.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002401/0.101, allocations: 179.3 kB / 471 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.374e-05/0.101, allocations: 39.94 kB / 471 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003277/0.1014, allocations: 219.8 kB / 471.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.208e-05/0.1014, allocations: 71.7 kB / 471.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.1016, allocations: 167.2 kB / 471.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000539/0.1021, allocations: 0.5102 MB / 472 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1022, allocations: 0 / 472 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.1022, allocations: 0 / 472 MB, free: 12.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1022, allocations: 0 / 472 MB, free: 12.16 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002482/0.1047, allocations: 0.9406 MB / 472.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.1047, allocations: 11.89 kB / 472.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.627e-05/0.1048, allocations: 54.73 kB / 473 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002224/0.105, allocations: 48.72 kB / 473 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.1054, allocations: 323.7 kB / 473.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.1054, allocations: 20.8 kB / 473.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.435e-05/0.1054, allocations: 28.38 kB / 473.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004988/0.106, allocations: 335.8 kB / 473.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.106, allocations: 7.875 kB / 473.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.106, allocations: 8 kB / 473.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.106, allocations: 4 kB / 473.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000442/0.1065, allocations: 325.6 kB / 474 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001606/0.1081, allocations: 1.35 MB / 475.4 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008107/0.1089, allocations: 0.5054 MB / 475.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002702/0.1092, allocations: 208.8 kB / 476.1 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009276/0.1101, allocations: 0.8936 MB / 477 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004614/0.1106, allocations: 366 kB / 477.3 MB, free: 6.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 3.787e-06/0.1106, allocations: 8 kB / 477.4 MB, free: 6.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002914/0.1135, allocations: 1.099 MB / 478.5 MB, free: 5.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.157e-05/0.1136, allocations: 187.9 kB / 478.6 MB, free: 5.008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000249/0.1139, allocations: 272.9 kB / 478.9 MB, free: 4.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.474e-05/0.1139, allocations: 33.7 kB / 478.9 MB, free: 4.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.888e-05/0.114, allocations: 160.7 kB / 479.1 MB, free: 4.531 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.803e-05/0.1141, allocations: 107.1 kB / 479.2 MB, free: 4.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.1143, allocations: 82.12 kB / 479.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.1144, allocations: 342.8 kB / 479.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/0.1147, allocations: 180.8 kB / 479.8 MB, free: 3.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003199/0.115, allocations: 272.8 kB / 480.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004731/0.1197, allocations: 1.42 MB / 481.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.1198, allocations: 0 / 481.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001655/0.1214, allocations: 0.8274 MB / 482.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/0.1215, allocations: 40.05 kB / 482.3 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.1215, allocations: 4 kB / 482.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.1227, allocations: 312.5 kB / 482.6 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.1229, allocations: 63.95 kB / 482.7 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003646/0.1266, allocations: 2.938 MB / 485.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003123/0.1269, allocations: 47.7 kB / 485.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.356e-05/0.1269, allocations: 12 kB / 485.7 MB, free: 13.65 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: lnFault.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean lnFault.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real lnFault.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: 10 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.lnFault.myFault.fault,lnFault.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.lnFault.myFault.Y.re,$PRE.lnFault.myFault.Y.im,lnFault.myFault.Y.im,lnFault.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002907/0.1272, allocations: 212.4 kB / 485.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.466e-05/0.1273, allocations: 27.81 kB / 485.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001534/0.1288, allocations: 0.7526 MB / 486.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.1289, allocations: 7.938 kB / 486.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.1289, allocations: 0 / 486.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1289, allocations: 4 kB / 486.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003752/0.1293, allocations: 473.1 kB / 487.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1293, allocations: 0 / 487.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.1294, allocations: 31.92 kB / 487.2 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001147/0.1305, allocations: 308.5 kB / 487.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.965e-05/0.1306, allocations: 11.94 kB / 487.5 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00337/0.1339, allocations: 2.926 MB / 490.4 MB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.134, allocations: 0 / 490.4 MB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.1354, allocations: 0.7374 MB / 491.2 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.56e-05/0.1355, allocations: 112.8 kB / 491.3 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.079e-05/0.1355, allocations: 12 kB / 491.3 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.1357, allocations: 8 kB / 491.3 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.578e-05/0.1358, allocations: 27.95 kB / 491.3 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/0.1359, allocations: 15.94 kB / 491.3 MB, free: 7.734 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001739/0.136, allocations: 188.5 kB / 491.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1361, allocations: 0 / 491.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004703/0.1365, allocations: 127.9 kB / 491.7 MB, free: 7.426 MB / 366.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,lnFault.myFault.Y.re,lnFault.myFault.Y.im,lnFault.myFault.fault) * Number of discrete states: 7 ($whenCondition4,lnFault.myFault.Y.im,lnFault.myFault.Y.re,$whenCondition3,$whenCondition2,lnFault.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001846/0.1384, allocations: 1.313 MB / 493 MB, free: 6.074 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.1397, allocations: 0.7361 MB / 493.7 MB, free: 5.312 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1397, allocations: 0.5 kB / 493.7 MB, free: 5.312 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007959/0.1405, allocations: 0.5251 MB / 494.2 MB, free: 4.762 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002282/0.1408, allocations: 32.38 kB / 494.3 MB, free: 4.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005552/0.1463, allocations: 3.96 MB / 498.2 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/0.1466, allocations: 0.7647 MB / 499 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.1468, allocations: 38.34 kB / 499 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.1469, allocations: 83.41 kB / 499.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1469, allocations: 0 / 499.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03063/0.1775, allocations: 9.487 MB / 0.4967 GB, free: 6.328 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.937/9.115, allocations: 0 / 0.4967 GB, free: 6.328 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe 2>&1)