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.001145/0.001145, allocations: 106.9 kB / 16.31 MB, free: 6.359 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.001075/0.001075, allocations: 186.4 kB / 17.24 MB, free: 5.879 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.421/1.421, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04866/0.04866, allocations: 8.108 MB / 299.2 MB, free: 6.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 63.91 kB / 361.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.2167, allocations: 51.51 MB / 413.3 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.002645/0.2194, allocations: 1.91 MB / 415.3 MB, free: 23.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.221, allocations: 1.602 MB / 416.9 MB, free: 22.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.2211, allocations: 4 kB / 416.9 MB, free: 22.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003683/0.2215, allocations: 135.2 kB / 417 MB, free: 21.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003105/0.2218, allocations: 155 kB / 417.1 MB, free: 21.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001703/0.2235, allocations: 0.8557 MB / 418 MB, free: 20.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000408/0.224, allocations: 346.6 kB / 418.3 MB, free: 20.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002133/0.2242, allocations: 138.8 kB / 418.5 MB, free: 20.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.839e-05/0.2243, allocations: 135.5 kB / 418.6 MB, free: 20.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002025/0.2245, allocations: 179.3 kB / 418.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.401e-05/0.2245, allocations: 32 kB / 418.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003249/0.2249, allocations: 227.8 kB / 419 MB, free: 19.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.32e-05/0.2249, allocations: 71.7 kB / 419.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001326/0.2251, allocations: 171.2 kB / 419.3 MB, free: 19.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004443/0.2255, allocations: 0.5009 MB / 419.8 MB, free: 19.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2255, allocations: 4 kB / 419.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2256, allocations: 0 / 419.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.2256, allocations: 0 / 419.8 MB, free: 19.12 MB / 302.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.002274/0.2278, allocations: 0.9256 MB / 420.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.2279, allocations: 11.89 kB / 420.7 MB, free: 18.13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.09e-05/0.2279, allocations: 58.67 kB / 420.8 MB, free: 18.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002337/0.2282, allocations: 48.55 kB / 420.8 MB, free: 18.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.2285, allocations: 307.8 kB / 421.1 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.2285, allocations: 20.81 kB / 421.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.332e-05/0.2286, allocations: 24.38 kB / 421.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004464/0.229, allocations: 331.8 kB / 421.5 MB, free: 17.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.229, allocations: 3.938 kB / 421.5 MB, free: 17.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.022e-05/0.2291, allocations: 12 kB / 421.5 MB, free: 17.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.2291, allocations: 4 kB / 421.5 MB, free: 17.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004039/0.2295, allocations: 337.5 kB / 421.8 MB, free: 16.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.2309, allocations: 1.361 MB / 423.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007307/0.2316, allocations: 0.5092 MB / 423.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.2318, allocations: 213.1 kB / 423.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007676/0.2326, allocations: 0.901 MB / 424.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004085/0.233, allocations: 366.6 kB / 425.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.184e-06/0.2331, allocations: 0 / 425.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002833/0.2359, allocations: 1.11 MB / 426.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/0.236, allocations: 187.9 kB / 426.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.2362, allocations: 265 kB / 426.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.2362, allocations: 33.7 kB / 426.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.712e-05/0.2363, allocations: 160.4 kB / 426.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.766e-05/0.2364, allocations: 106.5 kB / 427 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.2365, allocations: 78.12 kB / 427.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.984e-05/0.2366, allocations: 342.8 kB / 427.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000231/0.2368, allocations: 184.8 kB / 427.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002657/0.2371, allocations: 260.9 kB / 427.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004201/0.2413, allocations: 1.431 MB / 429.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.2413, allocations: 0 / 429.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001571/0.2429, allocations: 0.8234 MB / 430.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.2429, allocations: 37.7 kB / 430.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.243, allocations: 0 / 430.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.2441, allocations: 320.4 kB / 430.5 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.2444, allocations: 63.91 kB / 430.5 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003104/0.2475, allocations: 2.948 MB / 433.5 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.2478, allocations: 39.59 kB / 433.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.339e-05/0.2478, allocations: 16.03 kB / 433.5 MB, free: 4.613 MB / 302.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.0002805/0.2481, allocations: 209.5 kB / 433.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.255e-05/0.2482, allocations: 27.72 kB / 433.8 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/0.2497, allocations: 0.7487 MB / 434.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.2497, allocations: 4 kB / 434.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.2497, allocations: 0 / 434.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.2497, allocations: 0 / 434.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003095/0.25, allocations: 473 kB / 435 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.25, allocations: 0 / 435 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.128e-05/0.2501, allocations: 31.92 kB / 435 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/0.2513, allocations: 312.5 kB / 435.3 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.2513, allocations: 15.88 kB / 435.3 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003018/0.2543, allocations: 2.926 MB / 438.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2543, allocations: 0 / 438.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/0.2559, allocations: 0.7372 MB / 439 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.02e-05/0.256, allocations: 108.8 kB / 439.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.523e-05/0.2561, allocations: 16 kB / 439.1 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.2563, allocations: 8 kB / 439.1 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.556e-05/0.2564, allocations: 27.97 kB / 439.2 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-05/0.2564, allocations: 23.92 kB / 439.2 MB, free: 14.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.2566, allocations: 188.5 kB / 439.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2566, allocations: 0 / 439.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004815/0.2571, allocations: 127.9 kB / 439.5 MB, free: 14.39 MB / 318.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.001936/0.2591, allocations: 1.296 MB / 440.8 MB, free: 13.05 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.2605, allocations: 0.748 MB / 441.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2605, allocations: 0 / 441.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008758/0.2614, allocations: 0.5219 MB / 442 MB, free: 11.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002379/0.2616, allocations: 28.38 kB / 442.1 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00589/0.2675, allocations: 3.963 MB / 446 MB, free: 7.594 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003076/0.2679, allocations: 0.7613 MB / 446.8 MB, free: 6.805 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000116/0.268, allocations: 34.27 kB / 446.8 MB, free: 6.766 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.2681, allocations: 83.41 kB / 446.9 MB, free: 6.688 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2681, allocations: 0 / 446.9 MB, free: 6.688 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/0.2975, allocations: 9.354 MB / 456.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.095/9.392, allocations: 12 kB / 456.3 MB, free: 13.41 MB / 334.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)