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.004374/0.004374, allocations: 92.52 kB / 15.91 MB, free: 6.277 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.001029/0.001029, allocations: 195.7 kB / 16.83 MB, free: 6.191 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.294/1.294, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1495/0.1495, allocations: 8.094 MB / 298.7 MB, free: 2.051 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 64.09 kB / 361.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08439/0.08553, allocations: 51.52 MB / 412.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.002758/0.08831, allocations: 2.094 MB / 414.8 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001757/0.09007, allocations: 1.633 MB / 416.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.166e-05/0.09016, allocations: 7.938 kB / 416.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002837/0.09045, allocations: 111.6 kB / 416.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004243/0.09089, allocations: 211 kB / 416.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001789/0.09269, allocations: 1.179 MB / 417.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003647/0.09306, allocations: 370.5 kB / 418.2 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.09322, allocations: 91.73 kB / 418.3 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.09342, allocations: 155.5 kB / 418.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.09366, allocations: 199.2 kB / 418.7 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.524e-05/0.09372, allocations: 20 kB / 418.7 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003769/0.0941, allocations: 279.7 kB / 419 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.759e-05/0.09419, allocations: 75.72 kB / 419.1 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.09434, allocations: 163.2 kB / 419.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005171/0.09487, allocations: 0.5415 MB / 419.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.09488, allocations: 0 / 419.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.62e-07/0.09489, allocations: 4 kB / 419.8 MB, free: 2.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.0949, allocations: 4 kB / 419.8 MB, free: 2.918 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.003597/0.0985, allocations: 1.108 MB / 420.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.09854, allocations: 8.031 kB / 420.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.071e-05/0.09863, allocations: 74.66 kB / 420.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.359e-05/0.09872, allocations: 36.56 kB / 421 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003116/0.09903, allocations: 291.5 kB / 421.3 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001969/0.09924, allocations: 108.5 kB / 421.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.859e-05/0.0993, allocations: 28.38 kB / 421.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.1008, allocations: 0.7134 MB / 422.1 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.1008, allocations: 0 / 422.1 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.095e-05/0.1009, allocations: 16 kB / 422.1 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.1009, allocations: 4 kB / 422.1 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009581/0.1019, allocations: 453.4 kB / 422.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.1038, allocations: 1.542 MB / 424.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.1052, allocations: 0.7036 MB / 424.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005601/0.1058, allocations: 326.5 kB / 425.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.1059, allocations: 97.45 kB / 425.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000362/0.1063, allocations: 273.4 kB / 425.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.555e-06/0.1063, allocations: 0 / 425.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.003387/0.1097, allocations: 1.219 MB / 426.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.724e-05/0.1098, allocations: 144.5 kB / 426.9 MB, free: 11.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002037/0.11, allocations: 227.9 kB / 427.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.212e-05/0.1101, allocations: 37.7 kB / 427.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.458e-05/0.1102, allocations: 160.7 kB / 427.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.723e-05/0.1102, allocations: 102.5 kB / 427.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.1104, allocations: 98.23 kB / 427.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1106, allocations: 334.8 kB / 427.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003495/0.1109, allocations: 205 kB / 428 MB, free: 10.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004125/0.1113, allocations: 336.4 kB / 428.3 MB, free: 9.832 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007379/0.1121, allocations: 0.5413 MB / 428.9 MB, free: 9.246 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1121, allocations: 0 / 428.9 MB, free: 9.246 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001607/0.1137, allocations: 0.7942 MB / 429.7 MB, free: 8.441 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.1137, allocations: 8 kB / 429.7 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.1138, allocations: 7.984 kB / 429.7 MB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002109/0.1159, allocations: 468.3 kB / 430.1 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.1162, allocations: 87.83 kB / 430.2 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.1176, allocations: 0.9075 MB / 431.1 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003223/0.1179, allocations: 47.52 kB / 431.2 MB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.789e-05/0.118, allocations: 24 kB / 431.2 MB, free: 6.875 MB / 366.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.0001852/0.1182, allocations: 169.6 kB / 431.4 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006472/0.1188, allocations: 245.7 kB / 431.6 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.1199, allocations: 0.5825 MB / 432.2 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.1199, allocations: 4 kB / 432.2 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1199, allocations: 11.94 kB / 432.2 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1199, allocations: 3.984 kB / 432.2 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.1224, allocations: 1.373 MB / 433.6 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.1224, allocations: 7.938 kB / 433.6 MB, free: 4.402 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003681/0.1227, allocations: 75.94 kB / 433.7 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001965/0.1247, allocations: 460.2 kB / 434.1 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.63e-05/0.1248, allocations: 15.98 kB / 434.1 MB, free: 3.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00135/0.1261, allocations: 0.9114 MB / 435 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1261, allocations: 320 / 435 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.1286, allocations: 1 MB / 436 MB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.591e-05/0.1287, allocations: 108.8 kB / 436.1 MB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.434e-05/0.1287, allocations: 19.88 kB / 436.2 MB, free: 1.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004012/0.1291, allocations: 48 kB / 436.2 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.743e-05/0.1292, allocations: 15.97 kB / 436.2 MB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-05/0.1293, allocations: 19.98 kB / 436.3 MB, free: 1.672 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001569/0.1294, allocations: 171.1 kB / 436.4 MB, free: 1.504 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1294, allocations: 0 / 436.4 MB, free: 1.504 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000447/0.1299, allocations: 111.9 kB / 436.5 MB, free: 1.395 MB / 366.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.1434/0.2733, allocations: 1.56 MB / 438.1 MB, free: 57.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002031/0.2753, allocations: 0.6842 MB / 438.8 MB, free: 57.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.2754, allocations: 0 / 438.8 MB, free: 57.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.2764, allocations: 334 kB / 439.1 MB, free: 57.33 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007582/0.2772, allocations: 151.7 kB / 439.2 MB, free: 57.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006484/0.2837, allocations: 4.355 MB / 443.6 MB, free: 55.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/0.2839, allocations: 0.7844 MB / 444.4 MB, free: 54.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001575/0.2841, allocations: 41.84 kB / 444.4 MB, free: 54.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.2842, allocations: 97.83 kB / 444.5 MB, free: 54.89 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2842, allocations: 0 / 444.5 MB, free: 54.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.3021, allocations: 8.309 MB / 452.8 MB, free: 54.3 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002036/0.3024, allocations: 217.9 kB / 453 MB, free: 54.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.778/2.08, allocations: 0 / 453 MB, free: 54.04 MB / 366.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)