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: translateModel(PowerSysPro.Examples.OneSourceOneLigneWithFault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault") translateModel(PowerSysPro.Examples.OneSourceOneLigneWithFault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 105.6 kB / 16.57 MB, free: 6.719 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.001064/0.001064, allocations: 191.7 kB / 17.49 MB, free: 6.004 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.306/1.306, allocations: 222.9 MB / 241.2 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0526/0.0526, allocations: 8.094 MB / 299.4 MB, free: 6.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.91 kB / 361.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1918/0.1931, allocations: 51.51 MB / 413.2 MB, free: 25.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.002329/0.1955, allocations: 1.955 MB / 415.2 MB, free: 24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.1969, allocations: 1.594 MB / 416.7 MB, free: 22.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.091e-05/0.197, allocations: 4 kB / 416.7 MB, free: 22.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003099/0.1973, allocations: 115.6 kB / 416.9 MB, free: 22.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000251/0.1976, allocations: 143.2 kB / 417 MB, free: 22.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.1988, allocations: 0.8407 MB / 417.8 MB, free: 21.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002586/0.199, allocations: 326.5 kB / 418.2 MB, free: 20.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.1992, allocations: 111.4 kB / 418.3 MB, free: 20.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.281e-05/0.1993, allocations: 123.5 kB / 418.4 MB, free: 20.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.1995, allocations: 175.3 kB / 418.6 MB, free: 20.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.434e-05/0.1995, allocations: 20 kB / 418.6 MB, free: 20.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.1998, allocations: 207.8 kB / 418.8 MB, free: 20.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.913e-05/0.1998, allocations: 55.75 kB / 418.8 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001111/0.1999, allocations: 163.1 kB / 419 MB, free: 20.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00031/0.2003, allocations: 389.3 kB / 419.4 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2003, allocations: 8 kB / 419.4 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.2003, allocations: 0 / 419.4 MB, free: 19.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.2003, allocations: 0 / 419.4 MB, free: 19.75 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.002225/0.2025, allocations: 0.9256 MB / 420.3 MB, free: 18.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.2026, allocations: 11.97 kB / 420.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002379/0.2028, allocations: 44.55 kB / 420.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002699/0.2031, allocations: 307.8 kB / 420.7 MB, free: 18.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.2031, allocations: 16.81 kB / 420.7 MB, free: 18.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.807e-05/0.2032, allocations: 28.38 kB / 420.7 MB, free: 18.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004386/0.2036, allocations: 335.8 kB / 421 MB, free: 17.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.2036, allocations: 192 / 421 MB, free: 17.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.977e-05/0.2037, allocations: 15.94 kB / 421.1 MB, free: 17.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.2037, allocations: 4 kB / 421.1 MB, free: 17.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000394/0.2041, allocations: 333.6 kB / 421.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.2054, allocations: 1.353 MB / 422.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007248/0.2062, allocations: 0.5084 MB / 423.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.2064, allocations: 208.9 kB / 423.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007764/0.2072, allocations: 0.9127 MB / 424.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003995/0.2076, allocations: 351.1 kB / 424.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.533e-06/0.2076, allocations: 0 / 424.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002797/0.2104, allocations: 1.11 MB / 425.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.2105, allocations: 195.9 kB / 426 MB, free: 12.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.2107, allocations: 257 kB / 426.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/0.2107, allocations: 41.69 kB / 426.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.195e-05/0.2108, allocations: 156.4 kB / 426.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.735e-05/0.2109, allocations: 102.5 kB / 426.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.211, allocations: 86.11 kB / 426.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.871e-05/0.211, allocations: 338.8 kB / 427 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002406/0.2113, allocations: 188.8 kB / 427.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.2116, allocations: 260.9 kB / 427.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004351/0.2159, allocations: 1.427 MB / 428.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.2159, allocations: 4 kB / 428.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001581/0.2175, allocations: 0.8156 MB / 429.7 MB, free: 8.887 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.2176, allocations: 41.69 kB / 429.7 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2176, allocations: 0 / 429.7 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.2188, allocations: 320.4 kB / 430 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002084/0.2191, allocations: 63.91 kB / 430.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002946/0.222, allocations: 2.708 MB / 432.8 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.2223, allocations: 35.69 kB / 432.8 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.35e-05/0.2224, allocations: 20 kB / 432.8 MB, free: 5.562 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.0002257/0.2226, allocations: 211.9 kB / 433 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.222e-05/0.2227, allocations: 27.62 kB / 433.1 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/0.2242, allocations: 0.7446 MB / 433.8 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.2242, allocations: 8 kB / 433.8 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2242, allocations: 4 kB / 433.8 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.2242, allocations: 7.922 kB / 433.8 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002979/0.2245, allocations: 465.1 kB / 434.3 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2245, allocations: 0 / 434.3 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.314e-05/0.2246, allocations: 27.92 kB / 434.3 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001198/0.2258, allocations: 308.8 kB / 434.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.824e-05/0.2259, allocations: 15.98 kB / 434.6 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002862/0.2287, allocations: 2.698 MB / 437.3 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.2288, allocations: 0 / 437.3 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.2302, allocations: 0.7375 MB / 438.1 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.124e-05/0.2303, allocations: 108.6 kB / 438.2 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.683e-05/0.2303, allocations: 15.94 kB / 438.2 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.2306, allocations: 11.98 kB / 438.2 MB, free: 15.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.134e-05/0.2307, allocations: 35.95 kB / 438.2 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.2307, allocations: 12 kB / 438.2 MB, free: 15.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001773/0.2309, allocations: 196.5 kB / 438.4 MB, free: 15.69 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2309, allocations: 0 / 438.4 MB, free: 15.69 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004817/0.2314, allocations: 127.8 kB / 438.6 MB, free: 15.56 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.0001984/0.2316, allocations: 128.3 kB / 438.7 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.2329, allocations: 0.7246 MB / 439.4 MB, free: 14.68 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.2329, allocations: 0 / 439.4 MB, free: 14.68 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008617/0.2338, allocations: 0.5213 MB / 439.9 MB, free: 14.13 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.2341, allocations: 28.81 kB / 440 MB, free: 14.1 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.2351, allocations: 0.7261 MB / 440.7 MB, free: 13.36 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.2355, allocations: 0.765 MB / 441.5 MB, free: 12.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.195e-05/0.2355, allocations: 31.42 kB / 441.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2355, allocations: 0 / 441.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of Templates: time 0.007529/0.2431, allocations: 5.638 MB / 447.1 MB, free: 6.891 MB / 318.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.makefile (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 & ./PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe 2>&1)