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.0008582/0.0008582, allocations: 80.53 kB / 19.96 MB, free: 4.598 MB / 18.57 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.0011/0.0011, allocations: 174.3 kB / 23.25 MB, free: 1.309 MB / 18.57 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 0.897/0.897, allocations: 177.1 MB / 203.6 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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.02459/0.02459, allocations: 4.467 MB / 264.5 MB, free: 8.785 MB / 250.7 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 1.993e-06/1.993e-06, allocations: 0 / 389.6 MB, free: 7.402 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/2.025e-05, allocations: 4.812 kB / 389.6 MB, free: 7.398 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.001885/0.001905, allocations: 1.672 MB / 391.3 MB, free: 5.73 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.003566, allocations: 1.586 MB / 392.9 MB, free: 4.129 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.752e-05/0.003653, allocations: 8 kB / 392.9 MB, free: 4.121 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000281/0.003934, allocations: 139.1 kB / 393 MB, free: 3.984 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002342/0.004168, allocations: 147 kB / 393.1 MB, free: 3.84 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008118/0.00498, allocations: 0.7817 MB / 393.9 MB, free: 3.055 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000309/0.005289, allocations: 334.4 kB / 394.2 MB, free: 2.727 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.005435, allocations: 87.28 kB / 394.3 MB, free: 2.641 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.005568, allocations: 195.6 kB / 394.5 MB, free: 2.449 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.005738, allocations: 139.6 kB / 394.7 MB, free: 2.312 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.36e-05/0.005772, allocations: 32 kB / 394.7 MB, free: 2.281 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002235/0.005995, allocations: 219.6 kB / 394.9 MB, free: 2.066 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.138e-05/0.006037, allocations: 67.75 kB / 395 MB, free: 2 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.901e-05/0.006126, allocations: 115.7 kB / 395.1 MB, free: 1.887 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004292/0.006555, allocations: 0.5414 MB / 395.6 MB, free: 1.344 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.006557, allocations: 4 kB / 395.6 MB, free: 1.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.006558, allocations: 0 / 395.6 MB, free: 1.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.006563, allocations: 0 / 395.6 MB, free: 1.34 MB / 314.7 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.001434/0.007997, allocations: 0.8537 MB / 396.5 MB, free: 456 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.008032, allocations: 12.03 kB / 396.5 MB, free: 444 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.5e-05/0.008077, allocations: 50.73 kB / 396.5 MB, free: 384 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.008205, allocations: 52.72 kB / 396.6 MB, free: 332 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002414/0.008446, allocations: 237.2 kB / 396.8 MB, free: 68 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.008463, allocations: 16.88 kB / 396.8 MB, free: 52 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.008493, allocations: 28.38 kB / 396.9 MB, free: 24 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003928/0.008886, allocations: 399.9 kB / 397.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.008896, allocations: 4.188 kB / 397.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.112e-05/0.008917, allocations: 12.38 kB / 397.3 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.008924, allocations: 8.125 kB / 397.3 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003342/0.009259, allocations: 375.5 kB / 397.7 MB, free: 15.22 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.0103, allocations: 0.9037 MB / 398.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004883/0.01079, allocations: 356.2 kB / 398.9 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001907/0.01098, allocations: 218.8 kB / 399.1 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005785/0.01156, allocations: 0.6365 MB / 399.8 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006024/0.01216, allocations: 413.5 kB / 400.2 MB, free: 12.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 1.724e-06/0.01216, allocations: 4 kB / 400.2 MB, free: 12.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.001706/0.01387, allocations: 1.087 MB / 401.3 MB, free: 11.46 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.383e-05/0.01394, allocations: 199.8 kB / 401.4 MB, free: 11.22 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001725/0.01411, allocations: 261.7 kB / 401.7 MB, free: 10.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/0.01414, allocations: 37.7 kB / 401.7 MB, free: 10.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.01421, allocations: 160.7 kB / 401.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.431e-05/0.01427, allocations: 107.1 kB / 402 MB, free: 10.64 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.491e-05/0.01435, allocations: 82.17 kB / 402.1 MB, free: 10.56 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.054e-05/0.01443, allocations: 338.8 kB / 402.4 MB, free: 10.22 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.01463, allocations: 218.6 kB / 402.6 MB, free: 9.996 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.01485, allocations: 303.2 kB / 402.9 MB, free: 9.664 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002312/0.01717, allocations: 1.439 MB / 404.4 MB, free: 8.168 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.01717, allocations: 4 kB / 404.4 MB, free: 8.164 MB / 330.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001008/0.01818, allocations: 0.8383 MB / 405.2 MB, free: 7.305 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.19e-05/0.01821, allocations: 45.62 kB / 405.2 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.872e-06/0.01821, allocations: 0 / 405.2 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006666/0.01888, allocations: 316.5 kB / 405.6 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.01901, allocations: 59.91 kB / 405.6 MB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002574/0.02158, allocations: 2.786 MB / 408.4 MB, free: 3.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.02172, allocations: 43.67 kB / 408.4 MB, free: 3.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.02174, allocations: 16.03 kB / 408.5 MB, free: 3.922 MB / 330.7 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.0001838/0.02193, allocations: 212.2 kB / 408.7 MB, free: 3.699 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.136e-05/0.02196, allocations: 27.92 kB / 408.7 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00095/0.02291, allocations: 0.7908 MB / 409.5 MB, free: 2.859 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.02291, allocations: 8 kB / 409.5 MB, free: 2.852 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.02292, allocations: 4 kB / 409.5 MB, free: 2.848 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.423e-06/0.02292, allocations: 7.922 kB / 409.5 MB, free: 2.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002213/0.02314, allocations: 352.5 kB / 409.8 MB, free: 2.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.02315, allocations: 0 / 409.8 MB, free: 2.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.923e-05/0.02319, allocations: 27.92 kB / 409.9 MB, free: 2.426 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006/0.02379, allocations: 304.5 kB / 410.2 MB, free: 2.125 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.02381, allocations: 11.98 kB / 410.2 MB, free: 2.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.144/0.1678, allocations: 2.762 MB / 412.9 MB, free: 32.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1678, allocations: 0 / 412.9 MB, free: 32.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.1688, allocations: 0.7809 MB / 413.7 MB, free: 32.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.1689, allocations: 34.94 kB / 413.8 MB, free: 32.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.1689, allocations: 9.469 kB / 413.8 MB, free: 32.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.169, allocations: 15.95 kB / 413.8 MB, free: 32.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.101e-05/0.1691, allocations: 25.75 kB / 413.8 MB, free: 32.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.1691, allocations: 12.88 kB / 413.8 MB, free: 32.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001295/0.1693, allocations: 187.2 kB / 414 MB, free: 32.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1693, allocations: 0 / 414 MB, free: 32.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004093/0.1697, allocations: 128.9 kB / 414.1 MB, free: 32.59 MB / 330.7 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.001173/0.1708, allocations: 1.339 MB / 415.5 MB, free: 31.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00095/0.1718, allocations: 0.7601 MB / 416.2 MB, free: 31.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1718, allocations: 7.875 kB / 416.2 MB, free: 31.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004656/0.1723, allocations: 0.4934 MB / 416.7 MB, free: 30.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001921/0.1725, allocations: 25.38 kB / 416.8 MB, free: 30.97 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003795/0.1762, allocations: 4.103 MB / 420.9 MB, free: 28.38 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00011/0.1764, allocations: 160.5 kB / 421 MB, free: 28.3 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.669e-05/0.1764, allocations: 33.39 kB / 421.1 MB, free: 28.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.372e-05/0.1765, allocations: 86 kB / 421.1 MB, free: 28.24 MB / 330.7 MB Notification: Performance of SimCode: time 8.11e-07/0.1765, allocations: 0 / 421.1 MB, free: 28.24 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02516/0.2017, allocations: 10.52 MB / 431.7 MB, free: 24.7 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.234/7.436, allocations: 3.281 kB / 431.7 MB, free: 24.7 MB / 330.7 MB " [Timeout remaining time 652] (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: 9.243881879374385] Failed to read output from testmodel.py, exit status != 0: 7.5250028893351555 7.534094335 7.526142365 Calling exit ...