Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.QfURegulation.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.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",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.001034/0.001035, allocations: 107 kB / 16.03 MB, free: 6.305 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.001004/0.001004, allocations: 195.7 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.32/1.32, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04588/0.04588, allocations: 8.092 MB / 298.9 MB, free: 6.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 63.91 kB / 361.3 MB, free: 8.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2171, allocations: 51.52 MB / 412.8 MB, free: 25.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.002439/0.2196, allocations: 2.077 MB / 414.9 MB, free: 23.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.2212, allocations: 1.625 MB / 416.5 MB, free: 22.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.239e-05/0.2213, allocations: 12 kB / 416.6 MB, free: 22.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003132/0.2216, allocations: 111.5 kB / 416.7 MB, free: 21.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000466/0.2221, allocations: 207 kB / 416.9 MB, free: 21.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001482/0.2236, allocations: 1.144 MB / 418 MB, free: 20.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003426/0.224, allocations: 378.6 kB / 418.4 MB, free: 20.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.2242, allocations: 113.9 kB / 418.5 MB, free: 20.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001894/0.2243, allocations: 159.5 kB / 418.6 MB, free: 19.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.2246, allocations: 203.2 kB / 418.8 MB, free: 19.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.212e-05/0.2246, allocations: 32 kB / 418.9 MB, free: 19.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003339/0.225, allocations: 287.8 kB / 419.2 MB, free: 19.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.298e-05/0.225, allocations: 87.67 kB / 419.2 MB, free: 19.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.2252, allocations: 183.1 kB / 419.4 MB, free: 19.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004317/0.2256, allocations: 0.5454 MB / 420 MB, free: 18.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.2256, allocations: 3.984 kB / 420 MB, free: 18.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.2256, allocations: 0 / 420 MB, free: 18.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.2256, allocations: 4 kB / 420 MB, free: 18.58 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003367/0.229, allocations: 1.111 MB / 421.1 MB, free: 17.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.2291, allocations: 15.89 kB / 421.1 MB, free: 17.4 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.577e-05/0.2291, allocations: 58.73 kB / 421.2 MB, free: 17.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.408e-05/0.2292, allocations: 40.56 kB / 421.2 MB, free: 17.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002597/0.2295, allocations: 291.6 kB / 421.5 MB, free: 16.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000177/0.2297, allocations: 108.5 kB / 421.6 MB, free: 16.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.453e-05/0.2297, allocations: 28.38 kB / 421.6 MB, free: 16.83 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.2311, allocations: 0.7247 MB / 422.3 MB, free: 16.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.2311, allocations: 0 / 422.3 MB, free: 16.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.865e-05/0.2311, allocations: 16 kB / 422.4 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.2311, allocations: 8 kB / 422.4 MB, free: 16.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008049/0.2319, allocations: 449.5 kB / 422.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.2336, allocations: 1.541 MB / 424.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.2349, allocations: 0.7037 MB / 425.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000507/0.2355, allocations: 322.4 kB / 425.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001347/0.2356, allocations: 97.19 kB / 425.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003491/0.236, allocations: 265.5 kB / 425.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.443e-06/0.236, allocations: 0 / 425.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.003224/0.2392, allocations: 1.227 MB / 426.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/0.2393, allocations: 140.5 kB / 427.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001719/0.2394, allocations: 227.9 kB / 427.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.2395, allocations: 37.7 kB / 427.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.208e-05/0.2396, allocations: 160.7 kB / 427.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.444e-05/0.2396, allocations: 110.5 kB / 427.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.2398, allocations: 94.23 kB / 427.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.005e-05/0.2398, allocations: 334.8 kB / 428 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.2401, allocations: 205 kB / 428.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/0.2403, allocations: 336.5 kB / 428.6 MB, free: 9.496 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005398/0.2409, allocations: 0.5452 MB / 429.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/0.2409, allocations: 4 kB / 429.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0013/0.2422, allocations: 0.7981 MB / 429.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.2422, allocations: 4 kB / 429.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.2423, allocations: 4 kB / 429.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001992/0.2442, allocations: 468.3 kB / 430.4 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002915/0.2446, allocations: 83.84 kB / 430.5 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001227/0.2458, allocations: 0.9191 MB / 431.4 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.2461, allocations: 47.53 kB / 431.4 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/0.2462, allocations: 23.98 kB / 431.4 MB, free: 6.527 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (varLoad.degradedMode,$PRE.varLoad.degradedMode,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001427/0.2463, allocations: 161.7 kB / 431.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005884/0.2469, allocations: 249.2 kB / 431.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000886/0.2478, allocations: 0.5787 MB / 432.4 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.2478, allocations: 8 kB / 432.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.2478, allocations: 0 / 432.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.2478, allocations: 3.984 kB / 432.4 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/0.2499, allocations: 1.369 MB / 433.8 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2499, allocations: 3.984 kB / 433.8 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003306/0.2502, allocations: 79.89 kB / 433.9 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001855/0.2521, allocations: 460.3 kB / 434.3 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.527e-05/0.2522, allocations: 16 kB / 434.3 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.2533, allocations: 0.9158 MB / 435.3 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2534, allocations: 0 / 435.3 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/0.2555, allocations: 0.9964 MB / 436.3 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.468e-05/0.2556, allocations: 116.6 kB / 436.4 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.006e-05/0.2557, allocations: 15.94 kB / 436.4 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004003/0.2561, allocations: 52 kB / 436.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.181e-05/0.2561, allocations: 15.97 kB / 436.5 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.285e-05/0.2562, allocations: 16 kB / 436.5 MB, free: 1.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000113/0.2563, allocations: 171.1 kB / 436.6 MB, free: 1.168 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2563, allocations: 0 / 436.6 MB, free: 1.168 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004051/0.2567, allocations: 111.8 kB / 436.7 MB, free: 1.059 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,varLoad.degradedMode) * Number of discrete states: 1 (varLoad.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002576/0.2593, allocations: 1.564 MB / 438.3 MB, free: 15.45 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001872/0.2612, allocations: 0.7211 MB / 439 MB, free: 14.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.2612, allocations: 4 kB / 439 MB, free: 14.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.2623, allocations: 328.6 kB / 439.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007094/0.263, allocations: 163.7 kB / 439.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006809/0.2698, allocations: 4.358 MB / 443.9 MB, free: 9.695 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.2701, allocations: 0.781 MB / 444.7 MB, free: 8.891 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001492/0.2703, allocations: 38.95 kB / 444.7 MB, free: 8.852 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.2704, allocations: 103.4 kB / 444.8 MB, free: 8.75 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2704, allocations: 0 / 444.8 MB, free: 8.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3703/0.6407, allocations: 8.696 MB / 453.5 MB, free: 188 kB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002408/0.641, allocations: 202 kB / 453.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.922/2.563, allocations: 0 / 453.7 MB, free: 15.93 MB / 334.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.QfURegulation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_QfURegulation_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_QfURegulation.fmu > PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe 2>&1)