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.001029/0.001029, allocations: 105.3 kB / 16.03 MB, free: 6.297 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.001037/0.001037, allocations: 196 kB / 16.95 MB, free: 6.141 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.268/1.268, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04143/0.04143, allocations: 8.108 MB / 298.9 MB, free: 6.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001071, allocations: 59.91 kB / 361.3 MB, free: 8.426 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1606, allocations: 51.52 MB / 412.8 MB, free: 25.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.002173/0.1628, allocations: 1.954 MB / 414.8 MB, free: 23.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.164, allocations: 1.582 MB / 416.4 MB, free: 22.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.958e-05/0.1641, allocations: 4 kB / 416.4 MB, free: 22.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002849/0.1644, allocations: 123.5 kB / 416.5 MB, free: 22.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002366/0.1646, allocations: 139.2 kB / 416.6 MB, free: 21.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.1657, allocations: 0.8134 MB / 417.4 MB, free: 21.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002601/0.1659, allocations: 346.5 kB / 417.8 MB, free: 20.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.1661, allocations: 126.9 kB / 417.9 MB, free: 20.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.054e-05/0.1662, allocations: 135.5 kB / 418 MB, free: 20.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.1663, allocations: 179.3 kB / 418.2 MB, free: 20.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.291e-05/0.1664, allocations: 36 kB / 418.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000236/0.1666, allocations: 231.8 kB / 418.5 MB, free: 20.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.825e-05/0.1667, allocations: 71.69 kB / 418.5 MB, free: 20.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.1668, allocations: 171.2 kB / 418.7 MB, free: 19.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003478/0.1671, allocations: 0.4931 MB / 419.2 MB, free: 19.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1671, allocations: 4 kB / 419.2 MB, free: 19.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1672, allocations: 0 / 419.2 MB, free: 19.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.1672, allocations: 3.938 kB / 419.2 MB, free: 19.38 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.002138/0.1693, allocations: 0.9256 MB / 420.1 MB, free: 18.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.1694, allocations: 11.89 kB / 420.1 MB, free: 18.38 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.906e-05/0.1694, allocations: 54.73 kB / 420.2 MB, free: 18.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00021/0.1696, allocations: 56.53 kB / 420.3 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002486/0.1699, allocations: 315.7 kB / 420.6 MB, free: 17.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.1699, allocations: 20.81 kB / 420.6 MB, free: 17.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.814e-05/0.1699, allocations: 20.38 kB / 420.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004222/0.1704, allocations: 335.8 kB / 420.9 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1704, allocations: 3.938 kB / 420.9 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/0.1704, allocations: 12 kB / 420.9 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.1704, allocations: 4 kB / 421 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003572/0.1708, allocations: 321.6 kB / 421.3 MB, free: 17.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.172, allocations: 1.365 MB / 422.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000656/0.1727, allocations: 0.5123 MB / 423.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002102/0.1729, allocations: 213 kB / 423.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007186/0.1737, allocations: 0.8932 MB / 424.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003389/0.174, allocations: 371 kB / 424.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.513e-06/0.174, allocations: 0 / 424.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002664/0.1767, allocations: 1.098 MB / 425.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.1767, allocations: 191.9 kB / 425.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.1769, allocations: 265 kB / 426.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.177, allocations: 37.7 kB / 426.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.235e-05/0.177, allocations: 160.4 kB / 426.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.483e-05/0.1771, allocations: 106.5 kB / 426.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.1772, allocations: 78.12 kB / 426.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.732e-05/0.1773, allocations: 342.8 kB / 426.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/0.1775, allocations: 184.8 kB / 427 MB, free: 11.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002449/0.1777, allocations: 272.9 kB / 427.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003976/0.1817, allocations: 1.423 MB / 428.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.1817, allocations: 0 / 428.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001394/0.1831, allocations: 0.8195 MB / 429.6 MB, free: 8.438 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.1832, allocations: 37.7 kB / 429.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/0.1832, allocations: 4 kB / 429.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/0.1844, allocations: 316.5 kB / 429.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.1846, allocations: 71.84 kB / 430 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002819/0.1874, allocations: 2.93 MB / 432.9 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.1877, allocations: 51.56 kB / 433 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.978e-05/0.1877, allocations: 16 kB / 433 MB, free: 4.867 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.0001981/0.1879, allocations: 203.8 kB / 433.2 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.476e-05/0.1879, allocations: 23.86 kB / 433.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.1893, allocations: 0.7564 MB / 433.9 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1893, allocations: 4 kB / 433.9 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.1893, allocations: 0 / 433.9 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.1894, allocations: 4 kB / 434 MB, free: 3.848 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002673/0.1896, allocations: 469 kB / 434.4 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1896, allocations: 0 / 434.4 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.449e-05/0.1897, allocations: 27.98 kB / 434.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.1909, allocations: 312.4 kB / 434.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.1909, allocations: 11.94 kB / 434.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0027/0.1936, allocations: 2.926 MB / 437.7 MB, free: 15.92 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1936, allocations: 0 / 437.7 MB, free: 15.92 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/0.1952, allocations: 0.7335 MB / 438.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.378e-05/0.1952, allocations: 116.7 kB / 438.5 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.186e-05/0.1953, allocations: 8 kB / 438.5 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.1955, allocations: 12 kB / 438.5 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.81e-05/0.1956, allocations: 39.89 kB / 438.6 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/0.1956, allocations: 15.84 kB / 438.6 MB, free: 14.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001701/0.1958, allocations: 192.5 kB / 438.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1958, allocations: 0 / 438.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004025/0.1962, allocations: 123.9 kB / 438.9 MB, free: 14.64 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.001783/0.198, allocations: 1.296 MB / 440.2 MB, free: 13.31 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00124/0.1993, allocations: 0.744 MB / 441 MB, free: 12.54 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1993, allocations: 0.5 kB / 441 MB, free: 12.54 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008028/0.2001, allocations: 0.5184 MB / 441.5 MB, free: 12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.2003, allocations: 28.38 kB / 441.5 MB, free: 11.97 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005652/0.206, allocations: 4.069 MB / 445.6 MB, free: 7.766 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002709/0.2063, allocations: 0.7686 MB / 446.3 MB, free: 6.969 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.2064, allocations: 30.36 kB / 446.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.2065, allocations: 91.39 kB / 446.5 MB, free: 6.848 MB / 318.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2065, allocations: 7.875 kB / 446.5 MB, free: 6.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5769/0.7834, allocations: 9.257 MB / 455.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002326/0.7837, allocations: 212.9 kB / 455.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.978/2.762, allocations: 3.938 kB / 455.9 MB, free: 13.46 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe 2>&1)