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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.0009172/0.0009172, allocations: 96.44 kB / 15.73 MB, free: 440 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.0009688/0.000969, allocations: 177.9 kB / 16.61 MB, free: 6.426 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.259/1.259, allocations: 223.2 MB / 240.5 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.146/0.146, allocations: 8.087 MB / 299.7 MB, free: 2.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000282/0.0002821, allocations: 8 kB / 362.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08295/0.08325, allocations: 52.51 MB / 415.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.001906/0.08519, allocations: 1.529 MB / 416.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001826/0.08704, allocations: 1.556 MB / 418.4 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.842e-05/0.08713, allocations: 7.938 kB / 418.5 MB, free: 5.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.08739, allocations: 103.4 kB / 418.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004324/0.08784, allocations: 199.4 kB / 418.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001599/0.08944, allocations: 0.9887 MB / 419.7 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003501/0.0898, allocations: 243.5 kB / 420 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.08996, allocations: 85.83 kB / 420.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001877/0.09016, allocations: 131.6 kB / 420.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.09039, allocations: 171.4 kB / 420.4 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.663e-05/0.09044, allocations: 16 kB / 420.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003554/0.0908, allocations: 235.7 kB / 420.6 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.578e-05/0.0909, allocations: 67.78 kB / 420.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.09102, allocations: 93.5 kB / 420.8 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005592/0.09159, allocations: 387.1 kB / 421.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.0916, allocations: 0 / 421.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.09161, allocations: 0 / 421.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.09162, allocations: 0 / 421.1 MB, free: 2.867 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.003789/0.09542, allocations: 1.08 MB / 422.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.09546, allocations: 12.03 kB / 422.2 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.364e-05/0.09555, allocations: 66.5 kB / 422.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.738e-05/0.09565, allocations: 43.61 kB / 422.3 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003515/0.09601, allocations: 286.3 kB / 422.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002016/0.09622, allocations: 104 kB / 422.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.059e-05/0.09628, allocations: 28 kB / 422.7 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.09789, allocations: 0.7325 MB / 423.5 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.09791, allocations: 3.953 kB / 423.5 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.104e-05/0.09796, allocations: 12 kB / 423.5 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.09797, allocations: 8 kB / 423.5 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1457/0.2437, allocations: 464.9 kB / 424 MB, free: 40.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001923/0.2456, allocations: 1.548 MB / 425.5 MB, free: 40.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.247, allocations: 0.7305 MB / 426.2 MB, free: 39.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001173/0.2472, allocations: 95.88 kB / 426.3 MB, free: 39.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003242/0.2475, allocations: 263.3 kB / 426.6 MB, free: 39.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.763e-06/0.2475, allocations: 0 / 426.6 MB, free: 39.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003306/0.2508, allocations: 1.245 MB / 427.8 MB, free: 39.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.2509, allocations: 141.9 kB / 428 MB, free: 39.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001732/0.2511, allocations: 226.2 kB / 428.2 MB, free: 39.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.935e-05/0.2511, allocations: 35.95 kB / 428.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.268e-05/0.2512, allocations: 149.6 kB / 428.4 MB, free: 39.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.113e-05/0.2512, allocations: 112.8 kB / 428.5 MB, free: 39.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.506e-05/0.2513, allocations: 10.53 kB / 428.5 MB, free: 39.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.039e-05/0.2513, allocations: 337.5 kB / 428.8 MB, free: 38.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.2516, allocations: 203.7 kB / 429 MB, free: 38.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002921/0.2519, allocations: 336.5 kB / 429.3 MB, free: 38.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003049/0.2522, allocations: 243.1 kB / 429.6 MB, free: 38.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2522, allocations: 4 kB / 429.6 MB, free: 38.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001502/0.2537, allocations: 0.8107 MB / 430.4 MB, free: 38.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.2537, allocations: 10.28 kB / 430.4 MB, free: 38.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.2538, allocations: 5.812 kB / 430.4 MB, free: 38.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002088/0.2559, allocations: 462.6 kB / 430.9 MB, free: 38.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003138/0.2562, allocations: 91.55 kB / 431 MB, free: 38.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.2575, allocations: 0.9125 MB / 431.9 MB, free: 38.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003395/0.2579, allocations: 55.48 kB / 431.9 MB, free: 38.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.2579, allocations: 22.97 kB / 431.9 MB, free: 38.05 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 ($whenCondition1,$PRE.varLoad.degradedMode,varLoad.degradedMode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001507/0.2581, allocations: 160.7 kB / 432.1 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006291/0.2587, allocations: 270 kB / 432.4 MB, free: 37.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009153/0.2596, allocations: 0.5759 MB / 432.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.2596, allocations: 6.438 kB / 432.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2596, allocations: 4 kB / 432.9 MB, free: 37.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.2597, allocations: 0 / 432.9 MB, free: 37.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002293/0.262, allocations: 1.4 MB / 434.3 MB, free: 37.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.262, allocations: 3.406 kB / 434.4 MB, free: 37.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003663/0.2623, allocations: 88.59 kB / 434.4 MB, free: 37.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001913/0.2643, allocations: 464.9 kB / 434.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.076e-05/0.2643, allocations: 10.62 kB / 434.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/0.2655, allocations: 0.9073 MB / 435.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2655, allocations: 224 / 435.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002259/0.2678, allocations: 1.042 MB / 436.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.217e-05/0.2678, allocations: 109.9 kB / 437 MB, free: 35.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.033e-05/0.2679, allocations: 14.22 kB / 437 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004204/0.2683, allocations: 56.52 kB / 437 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.444e-05/0.2684, allocations: 23.95 kB / 437.1 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.362e-05/0.2685, allocations: 14.53 kB / 437.1 MB, free: 35.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.2686, allocations: 166.2 kB / 437.2 MB, free: 35.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2686, allocations: 0 / 437.2 MB, free: 35.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004204/0.269, allocations: 111.8 kB / 437.3 MB, free: 35.82 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002513/0.2715, allocations: 1.737 MB / 439.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.2732, allocations: 0.6926 MB / 439.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2733, allocations: 3.938 kB / 439.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009879/0.2743, allocations: 321.6 kB / 440.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005738/0.2748, allocations: 154.9 kB / 440.2 MB, free: 34.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002741/0.2776, allocations: 3.559 MB / 443.8 MB, free: 31.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001769/0.2778, allocations: 0.7888 MB / 444.6 MB, free: 30.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001479/0.2779, allocations: 46.19 kB / 444.6 MB, free: 30.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.2781, allocations: 100.3 kB / 444.7 MB, free: 30.36 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2781, allocations: 0 / 444.7 MB, free: 30.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01819/0.2963, allocations: 8.013 MB / 452.7 MB, free: 29.79 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001264/0.2964, allocations: 182.3 kB / 452.9 MB, free: 29.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.648/1.945, allocations: 0 / 452.9 MB, free: 29.55 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/linux/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) Environment - environmentSimulation: