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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 118.4 kB / 19.74 MB, free: 2.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002162/0.002162, allocations: 224 kB / 23.05 MB, free: 4.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.502/1.502, allocations: 230.6 MB / 256.8 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo): time 0.04052/0.04052, allocations: 6.138 MB / 319.4 MB, free: 12.94 MB / 254.1 MB " [Timeout remaining time 180] Using package PowerSysPro with version 2.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 51.92 kB / 444.5 MB, free: 5.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1195, allocations: 55.01 MB / 499.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.003056/0.1226, allocations: 1.86 MB / 0.4896 GB, free: 12.39 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002368/0.1249, allocations: 1.645 MB / 0.4912 GB, free: 10.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.1251, allocations: 8 kB / 0.4912 GB, free: 10.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004002/0.1255, allocations: 147.2 kB / 0.4914 GB, free: 10.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003392/0.1258, allocations: 143.1 kB / 0.4915 GB, free: 10.44 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001685/0.1275, allocations: 0.8403 MB / 0.4923 GB, free: 9.598 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004701/0.128, allocations: 334.5 kB / 0.4927 GB, free: 9.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.1281, allocations: 87.58 kB / 0.4927 GB, free: 9.184 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.1283, allocations: 135.5 kB / 0.4929 GB, free: 9.051 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003143/0.1286, allocations: 191.3 kB / 0.4931 GB, free: 8.863 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.571e-05/0.1287, allocations: 32 kB / 0.4931 GB, free: 8.832 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004623/0.1291, allocations: 227.8 kB / 0.4933 GB, free: 8.609 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.623e-05/0.1292, allocations: 67.7 kB / 0.4934 GB, free: 8.543 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.1294, allocations: 163.2 kB / 0.4935 GB, free: 8.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007231/0.1301, allocations: 0.5178 MB / 0.494 GB, free: 7.863 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1301, allocations: 3.984 kB / 0.494 GB, free: 7.859 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1301, allocations: 0 / 0.494 GB, free: 7.859 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.1301, allocations: 0 / 0.494 GB, free: 7.859 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002715/0.1328, allocations: 0.8575 MB / 0.4949 GB, free: 6.961 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1329, allocations: 12.03 kB / 0.4949 GB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.106e-05/0.133, allocations: 58.72 kB / 0.4949 GB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000246/0.1332, allocations: 52.73 kB / 0.495 GB, free: 6.832 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003656/0.1336, allocations: 241.9 kB / 0.4952 GB, free: 6.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.1336, allocations: 16.81 kB / 0.4952 GB, free: 6.555 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.791e-05/0.1336, allocations: 28.38 kB / 0.4953 GB, free: 6.527 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005652/0.1342, allocations: 335.7 kB / 0.4956 GB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.1342, allocations: 3.938 kB / 0.4956 GB, free: 6.188 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.58e-05/0.1343, allocations: 15.98 kB / 0.4956 GB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.1343, allocations: 4 kB / 0.4956 GB, free: 6.168 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005634/0.1348, allocations: 333.6 kB / 0.4959 GB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.1367, allocations: 1.213 MB / 0.4971 GB, free: 4.535 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008674/0.1376, allocations: 357.3 kB / 0.4974 GB, free: 4.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003053/0.1379, allocations: 184.8 kB / 0.4976 GB, free: 3.996 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001083/0.139, allocations: 0.7109 MB / 0.4983 GB, free: 3.266 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005757/0.1396, allocations: 366.2 kB / 0.4987 GB, free: 2.871 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.724e-06/0.1396, allocations: 4 kB / 0.4987 GB, free: 2.867 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.003302/0.1429, allocations: 1.027 MB / 0.4997 GB, free: 1.824 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.143, allocations: 195.9 kB / 0.4999 GB, free: 1.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003243/0.1433, allocations: 256.9 kB / 0.5001 GB, free: 1.332 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.617e-05/0.1434, allocations: 41.69 kB / 0.5001 GB, free: 1.285 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.1435, allocations: 152.7 kB / 0.5003 GB, free: 1.129 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.1436, allocations: 111.1 kB / 0.5004 GB, free: 1.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.1438, allocations: 86.11 kB / 0.5005 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.144, allocations: 338.8 kB / 0.5008 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003257/0.1443, allocations: 184.8 kB / 0.501 GB, free: 416 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003954/0.1447, allocations: 272.8 kB / 0.5012 GB, free: 116 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004909/0.1496, allocations: 1.42 MB / 0.5026 GB, free: 14.63 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/0.1496, allocations: 4 kB / 0.5026 GB, free: 14.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001951/0.1516, allocations: 0.8247 MB / 0.5034 GB, free: 13.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.058e-05/0.1516, allocations: 37.69 kB / 0.5035 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.1516, allocations: 7.938 kB / 0.5035 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001382/0.153, allocations: 312.5 kB / 0.5038 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002568/0.1533, allocations: 63.91 kB / 0.5038 GB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004486/0.1578, allocations: 2.846 MB / 0.5066 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003497/0.1581, allocations: 39.77 kB / 0.5067 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.927e-05/0.1582, allocations: 16 kB / 0.5067 GB, free: 10.35 MB / 382.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.0003535/0.1585, allocations: 211.9 kB / 0.5069 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.401e-05/0.1586, allocations: 31.86 kB / 0.5069 GB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/0.1604, allocations: 0.7378 MB / 0.5076 GB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.1604, allocations: 4 kB / 0.5076 GB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.1604, allocations: 0 / 0.5076 GB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.1604, allocations: 3.984 kB / 0.5076 GB, free: 9.336 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005158/0.1609, allocations: 444.2 kB / 0.5081 GB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1609, allocations: 0 / 0.5081 GB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.161, allocations: 27.98 kB / 0.5081 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.1623, allocations: 300.6 kB / 0.5084 GB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.445e-05/0.1623, allocations: 15.94 kB / 0.5084 GB, free: 8.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004216/0.1665, allocations: 2.823 MB / 0.5111 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1665, allocations: 0 / 0.5111 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.1683, allocations: 0.7413 MB / 0.5119 GB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.039e-05/0.1684, allocations: 35.73 kB / 0.5119 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.667e-05/0.1684, allocations: 12 kB / 0.5119 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.1686, allocations: 12 kB / 0.5119 GB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.506e-05/0.1687, allocations: 23.95 kB / 0.5119 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.509e-05/0.1688, allocations: 19.92 kB / 0.512 GB, free: 4.711 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000205/0.169, allocations: 188.5 kB / 0.5121 GB, free: 4.523 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.169, allocations: 0 / 0.5121 GB, free: 4.523 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005323/0.1695, allocations: 131.9 kB / 0.5123 GB, free: 4.395 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,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.002097/0.1716, allocations: 1.284 MB / 0.5135 GB, free: 3.074 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.1731, allocations: 0.7048 MB / 0.5142 GB, free: 2.344 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.1731, allocations: 4.062 kB / 0.5142 GB, free: 2.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009208/0.174, allocations: 477.8 kB / 0.5147 GB, free: 1.848 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.1743, allocations: 28.31 kB / 0.5147 GB, free: 1.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1961/0.3704, allocations: 3.929 MB / 0.5185 GB, free: 29.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001867/0.3706, allocations: 0.7647 MB / 0.5193 GB, free: 28.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001114/0.3707, allocations: 33.14 kB / 0.5193 GB, free: 28.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.3708, allocations: 84.22 kB / 0.5194 GB, free: 28.34 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3708, allocations: 0 / 0.5194 GB, free: 28.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04102/0.4118, allocations: 9.809 MB / 0.529 GB, free: 27.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.34, allocations: 5.438 kB / 0.529 GB, free: 27.12 MB / 382.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.138614242001495] Failed to read output from testmodel.py, exit status != 0: 12.45451735000097 12.471191115 12.338608571 Calling exit ...