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.001538/0.001539, allocations: 105.9 kB / 16.31 MB, free: 5.879 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.001896/0.001897, allocations: 191.2 kB / 17.24 MB, free: 5.539 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.426/1.426, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05437/0.05437, allocations: 8.101 MB / 299.2 MB, free: 6.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 59.91 kB / 361.8 MB, free: 8.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2463, allocations: 51.51 MB / 413.3 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.002601/0.2489, allocations: 2.045 MB / 415.4 MB, free: 23.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.2505, allocations: 1.641 MB / 417 MB, free: 21.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.2507, allocations: 8 kB / 417 MB, free: 21.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003344/0.251, allocations: 131.3 kB / 417.2 MB, free: 21.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004652/0.2515, allocations: 230.7 kB / 417.4 MB, free: 21.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001554/0.253, allocations: 1.213 MB / 418.6 MB, free: 20.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003725/0.2534, allocations: 370.6 kB / 419 MB, free: 19.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.2536, allocations: 113.9 kB / 419.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002015/0.2538, allocations: 163.5 kB / 419.2 MB, free: 19.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002307/0.2541, allocations: 207.2 kB / 419.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.846e-05/0.2541, allocations: 32 kB / 419.5 MB, free: 19.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003799/0.2545, allocations: 283.8 kB / 419.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.61e-05/0.2546, allocations: 91.67 kB / 419.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001447/0.2548, allocations: 179.1 kB / 420 MB, free: 18.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004833/0.2552, allocations: 0.5454 MB / 420.6 MB, free: 18.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.2553, allocations: 0 / 420.6 MB, free: 18.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2553, allocations: 0 / 420.6 MB, free: 18.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.2553, allocations: 0 / 420.6 MB, free: 18.33 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.003538/0.2588, allocations: 1.115 MB / 421.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.2589, allocations: 11.89 kB / 421.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.366e-05/0.2589, allocations: 66.73 kB / 421.7 MB, free: 17.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.914e-05/0.259, allocations: 40.56 kB / 421.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002947/0.2593, allocations: 295.6 kB / 422.1 MB, free: 16.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.2595, allocations: 104.5 kB / 422.2 MB, free: 16.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.846e-05/0.2596, allocations: 28.38 kB / 422.2 MB, free: 16.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.261, allocations: 0.7173 MB / 422.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.261, allocations: 0 / 422.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.061e-05/0.2611, allocations: 16 kB / 422.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.2611, allocations: 8 kB / 422.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009074/0.262, allocations: 457.4 kB / 423.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.2639, allocations: 1.545 MB / 424.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.2654, allocations: 0.7077 MB / 425.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005138/0.2659, allocations: 326.4 kB / 426 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/0.266, allocations: 85.27 kB / 426 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003355/0.2664, allocations: 269 kB / 426.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.2664, allocations: 4 kB / 426.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.00336/0.2698, allocations: 1.222 MB / 427.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.419e-05/0.2699, allocations: 144.5 kB / 427.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.2701, allocations: 228 kB / 427.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.2701, allocations: 37.7 kB / 427.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.842e-05/0.2702, allocations: 148.7 kB / 428.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8e-05/0.2703, allocations: 118.4 kB / 428.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.2705, allocations: 94.23 kB / 428.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.836e-05/0.2706, allocations: 338.8 kB / 428.6 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002614/0.2708, allocations: 205 kB / 428.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003047/0.2711, allocations: 332.5 kB / 429.1 MB, free: 9.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006192/0.2718, allocations: 0.5452 MB / 429.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.2718, allocations: 0 / 429.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001365/0.2731, allocations: 0.7942 MB / 430.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.2732, allocations: 6.5 kB / 430.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2732, allocations: 4 kB / 430.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002052/0.2752, allocations: 472.3 kB / 431 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003006/0.2756, allocations: 83.84 kB / 431 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.2768, allocations: 0.9113 MB / 432 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003307/0.2772, allocations: 51.52 kB / 432 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-05/0.2772, allocations: 20 kB / 432 MB, free: 6.273 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.0001871/0.2774, allocations: 173.6 kB / 432.2 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006333/0.2781, allocations: 249.3 kB / 432.4 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009116/0.279, allocations: 0.5787 MB / 433 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.279, allocations: 4 kB / 433 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.279, allocations: 0 / 433 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.279, allocations: 7.984 kB / 433 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.2811, allocations: 1.366 MB / 434.4 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2811, allocations: 3.938 kB / 434.4 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003366/0.2815, allocations: 79.88 kB / 434.5 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001847/0.2833, allocations: 457 kB / 434.9 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.147e-05/0.2834, allocations: 12 kB / 434.9 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.2845, allocations: 0.9191 MB / 435.8 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2846, allocations: 0 / 435.8 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.2868, allocations: 1.004 MB / 436.9 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.951e-05/0.2868, allocations: 112.7 kB / 437 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.031e-05/0.2869, allocations: 19.94 kB / 437 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003948/0.2873, allocations: 39.97 kB / 437 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.743e-05/0.2874, allocations: 27.95 kB / 437 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/0.2874, allocations: 12 kB / 437.1 MB, free: 1.074 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001281/0.2876, allocations: 171.1 kB / 437.2 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2876, allocations: 0 / 437.2 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004453/0.288, allocations: 111.8 kB / 437.3 MB, free: 0.7969 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.002812/0.2908, allocations: 1.568 MB / 438.9 MB, free: 15.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002009/0.2929, allocations: 0.7297 MB / 439.6 MB, free: 14.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2929, allocations: 0 / 439.6 MB, free: 14.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.294, allocations: 323.8 kB / 440 MB, free: 14.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008169/0.2948, allocations: 160.5 kB / 440.1 MB, free: 13.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007677/0.3025, allocations: 4.237 MB / 444.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000427/0.303, allocations: 0.7771 MB / 445.1 MB, free: 8.758 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001761/0.3032, allocations: 50.88 kB / 445.2 MB, free: 8.707 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001745/0.3034, allocations: 107.3 kB / 445.3 MB, free: 8.602 MB / 318.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3034, allocations: 0 / 445.3 MB, free: 8.602 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02847/0.3318, allocations: 8.789 MB / 454.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.54, allocations: 17.14 kB / 454.1 MB, free: 15.88 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)