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.0007283/0.0007283, allocations: 102.6 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008116/0.0008117, allocations: 180.8 kB / 16.96 MB, free: 6.902 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.291/1.291, allocations: 223.3 MB / 241 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1541/0.1541, allocations: 8.084 MB / 300.2 MB, free: 2.93 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002839/0.000284, allocations: 8 kB / 363.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09265/0.09294, allocations: 52.53 MB / 416.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.001994/0.09498, allocations: 1.724 MB / 417.8 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001931/0.09692, allocations: 1.606 MB / 419.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.703e-05/0.09701, allocations: 4 kB / 419.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003076/0.09733, allocations: 115.5 kB / 419.6 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004872/0.09783, allocations: 215 kB / 419.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001858/0.0997, allocations: 1.148 MB / 420.9 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004406/0.1001, allocations: 362.6 kB / 421.3 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.1003, allocations: 99.73 kB / 421.4 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002109/0.1006, allocations: 147.5 kB / 421.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000245/0.1008, allocations: 183.2 kB / 421.7 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.2e-05/0.1009, allocations: 16 kB / 421.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004051/0.1013, allocations: 267.7 kB / 422 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.139e-05/0.1014, allocations: 75.72 kB / 422 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001718/0.1016, allocations: 184.8 kB / 422.2 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005735/0.1021, allocations: 0.5297 MB / 422.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1022, allocations: 4 kB / 422.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1022, allocations: 0 / 422.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.1022, allocations: 0 / 422.8 MB, free: 1.613 MB / 350.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.003775/0.106, allocations: 1.08 MB / 423.8 MB, free: 488 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.106, allocations: 8.031 kB / 423.8 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.457e-05/0.1061, allocations: 66.72 kB / 423.9 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8e-05/0.1062, allocations: 36.56 kB / 424 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.1065, allocations: 295.5 kB / 424.2 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1689/0.2754, allocations: 103 kB / 424.3 MB, free: 41.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.2756, allocations: 38.5 kB / 424.4 MB, free: 41.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001664/0.2773, allocations: 0.7296 MB / 425.1 MB, free: 41.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.2773, allocations: 0 / 425.1 MB, free: 41.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.296e-05/0.2773, allocations: 13.19 kB / 425.1 MB, free: 41.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.2774, allocations: 6.219 kB / 425.1 MB, free: 41.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.2784, allocations: 468 kB / 425.6 MB, free: 41.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.2803, allocations: 1.545 MB / 427.1 MB, free: 40.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.2818, allocations: 0.7354 MB / 427.9 MB, free: 40.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005512/0.2823, allocations: 329.8 kB / 428.2 MB, free: 40.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001342/0.2825, allocations: 91.8 kB / 428.3 MB, free: 40.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003439/0.2828, allocations: 281.6 kB / 428.5 MB, free: 40.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.783e-06/0.2828, allocations: 0 / 428.5 MB, free: 40.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003463/0.2863, allocations: 1.253 MB / 429.8 MB, free: 40.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.2864, allocations: 138.1 kB / 429.9 MB, free: 39.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.2866, allocations: 233.9 kB / 430.2 MB, free: 39.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.44e-05/0.2867, allocations: 34.61 kB / 430.2 MB, free: 39.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.754e-05/0.2867, allocations: 155.5 kB / 430.4 MB, free: 39.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.752e-05/0.2868, allocations: 116.9 kB / 430.5 MB, free: 39.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.913e-05/0.2869, allocations: 47.89 kB / 430.5 MB, free: 39.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.879e-05/0.2869, allocations: 343.2 kB / 430.8 MB, free: 39.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000271/0.2872, allocations: 205.5 kB / 431 MB, free: 39.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/0.2876, allocations: 336.3 kB / 431.4 MB, free: 39.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000657/0.2882, allocations: 0.5428 MB / 431.9 MB, free: 39.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.2882, allocations: 0 / 431.9 MB, free: 39.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001411/0.2897, allocations: 0.7891 MB / 432.7 MB, free: 38.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.2897, allocations: 6.344 kB / 432.7 MB, free: 38.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.2897, allocations: 7.562 kB / 432.7 MB, free: 38.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002193/0.2919, allocations: 469.4 kB / 433.2 MB, free: 38.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003325/0.2922, allocations: 91.2 kB / 433.3 MB, free: 38.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.2936, allocations: 0.9038 MB / 434.2 MB, free: 38.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003691/0.294, allocations: 51.53 kB / 434.2 MB, free: 38.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.694e-05/0.2941, allocations: 28.34 kB / 434.3 MB, free: 38.34 MB / 350.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.0001909/0.2943, allocations: 161.9 kB / 434.4 MB, free: 38.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006511/0.2949, allocations: 272.3 kB / 434.7 MB, free: 38.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000965/0.2959, allocations: 0.5789 MB / 435.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.373e-06/0.2959, allocations: 10.19 kB / 435.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.2959, allocations: 0.625 kB / 435.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.2959, allocations: 5.109 kB / 435.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002176/0.2981, allocations: 1.392 MB / 436.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2981, allocations: 7.125 kB / 436.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.2985, allocations: 83.95 kB / 436.8 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001935/0.3005, allocations: 473.6 kB / 437.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.3005, allocations: 7.062 kB / 437.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/0.3017, allocations: 0.9048 MB / 438.1 MB, free: 36.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3018, allocations: 4.438 kB / 438.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002335/0.3041, allocations: 1.027 MB / 439.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.538e-05/0.3042, allocations: 113.3 kB / 439.3 MB, free: 35.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.684e-05/0.3042, allocations: 11.34 kB / 439.3 MB, free: 35.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004294/0.3047, allocations: 51.38 kB / 439.3 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.346e-05/0.3047, allocations: 20.84 kB / 439.3 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.3048, allocations: 20.27 kB / 439.4 MB, free: 35.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001357/0.3049, allocations: 166.5 kB / 439.5 MB, free: 35.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3049, allocations: 0 / 439.5 MB, free: 35.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004509/0.3054, allocations: 115.5 kB / 439.6 MB, free: 35.51 MB / 350.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.00268/0.3081, allocations: 1.593 MB / 441.2 MB, free: 34.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.3099, allocations: 0.6832 MB / 441.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3099, allocations: 0 / 441.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.311, allocations: 328 kB / 442.2 MB, free: 34.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007539/0.3117, allocations: 160.6 kB / 442.4 MB, free: 34.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006714/0.3185, allocations: 4.39 MB / 446.8 MB, free: 31.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.3187, allocations: 0.7836 MB / 447.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001779/0.3189, allocations: 46.25 kB / 447.6 MB, free: 30.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.319, allocations: 100.9 kB / 447.7 MB, free: 30.58 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.319, allocations: 0 / 447.7 MB, free: 30.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.3383, allocations: 8.177 MB / 455.9 MB, free: 30 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001432/0.3385, allocations: 205.7 kB / 456.1 MB, free: 29.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/2.144, allocations: 0 / 456.1 MB, free: 29.75 MB / 350.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)