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.0007646/0.0007648, allocations: 96.86 kB / 15.74 MB, free: 424 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.0008765/0.0008766, allocations: 171.5 kB / 16.62 MB, free: 6.434 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.239/1.239, allocations: 223.3 MB / 240.7 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1598/0.1598, allocations: 8.089 MB / 299.8 MB, free: 2.93 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002993, allocations: 8 kB / 362.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08635/0.08666, allocations: 52.51 MB / 415.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.001812/0.08851, allocations: 1.628 MB / 417.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.09033, allocations: 1.56 MB / 418.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.527e-05/0.09043, allocations: 7.938 kB / 418.7 MB, free: 5.438 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002376/0.09068, allocations: 91.53 kB / 418.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004324/0.09112, allocations: 195.1 kB / 418.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001514/0.09264, allocations: 0.9772 MB / 419.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003803/0.09303, allocations: 338.6 kB / 420.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.09319, allocations: 77.84 kB / 420.3 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001849/0.09338, allocations: 139.5 kB / 420.5 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002323/0.09362, allocations: 183.3 kB / 420.6 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.842e-05/0.09367, allocations: 16 kB / 420.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003568/0.09403, allocations: 259.8 kB / 420.9 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.356e-05/0.09411, allocations: 67.73 kB / 421 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.251e-05/0.0942, allocations: 89.52 kB / 421.1 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003872/0.09459, allocations: 402.9 kB / 421.5 MB, free: 2.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.0946, allocations: 0 / 421.5 MB, free: 2.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.09461, allocations: 0 / 421.5 MB, free: 2.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.09462, allocations: 0 / 421.5 MB, free: 2.633 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.003309/0.09793, allocations: 1.072 MB / 422.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.09798, allocations: 16.03 kB / 422.5 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.854e-05/0.09806, allocations: 66.53 kB / 422.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.759e-05/0.09815, allocations: 43.58 kB / 422.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.09846, allocations: 286.3 kB / 422.9 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/0.09865, allocations: 107.9 kB / 423 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.933e-05/0.09871, allocations: 28 kB / 423.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.1001, allocations: 0.7287 MB / 423.8 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.1002, allocations: 11.92 kB / 423.8 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.1002, allocations: 11.95 kB / 423.8 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.954e-06/0.1002, allocations: 8 kB / 423.8 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1619/0.2621, allocations: 460.5 kB / 424.3 MB, free: 40.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.264, allocations: 1.55 MB / 425.8 MB, free: 40.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.2653, allocations: 0.7278 MB / 426.5 MB, free: 39.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005053/0.2658, allocations: 333.7 kB / 426.9 MB, free: 39.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00013/0.266, allocations: 93.42 kB / 427 MB, free: 39.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000358/0.2664, allocations: 275.7 kB / 427.2 MB, free: 39.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.315e-06/0.2664, allocations: 0 / 427.2 MB, free: 39.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002996/0.2694, allocations: 1.244 MB / 428.5 MB, free: 39.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/0.2694, allocations: 141.1 kB / 428.6 MB, free: 39.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001815/0.2696, allocations: 226 kB / 428.8 MB, free: 39.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/0.2697, allocations: 35.77 kB / 428.9 MB, free: 39.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.696e-05/0.2698, allocations: 155.7 kB / 429 MB, free: 39.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.071e-05/0.2698, allocations: 102.4 kB / 429.1 MB, free: 39.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.587e-05/0.2699, allocations: 12.88 kB / 429.1 MB, free: 39.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.981e-05/0.2699, allocations: 337.8 kB / 429.5 MB, free: 38.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002632/0.2702, allocations: 205 kB / 429.7 MB, free: 38.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002836/0.2705, allocations: 337.8 kB / 430 MB, free: 38.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002891/0.2708, allocations: 244.6 kB / 430.2 MB, free: 38.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2708, allocations: 0 / 430.2 MB, free: 38.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001515/0.2723, allocations: 0.8156 MB / 431 MB, free: 38.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.2723, allocations: 6 kB / 431.1 MB, free: 38.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.2723, allocations: 6.531 kB / 431.1 MB, free: 38.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001837/0.2742, allocations: 475.1 kB / 431.5 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002901/0.2745, allocations: 85.78 kB / 431.6 MB, free: 38.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.2756, allocations: 0.9104 MB / 432.5 MB, free: 37.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.2759, allocations: 51.91 kB / 432.6 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.276, allocations: 18.75 kB / 432.6 MB, free: 37.92 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.000147/0.2761, allocations: 168.6 kB / 432.8 MB, free: 37.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005396/0.2767, allocations: 267.3 kB / 433 MB, free: 37.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008937/0.2776, allocations: 0.5792 MB / 433.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.2776, allocations: 6.406 kB / 433.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.2776, allocations: 0.75 kB / 433.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.2776, allocations: 0 / 433.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.2797, allocations: 1.394 MB / 435 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.2797, allocations: 3.156 kB / 435 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.28, allocations: 86.95 kB / 435.1 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001666/0.2817, allocations: 467 kB / 435.5 MB, free: 37.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/0.2817, allocations: 11.22 kB / 435.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.2828, allocations: 0.9057 MB / 436.5 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2828, allocations: 3.938 kB / 436.5 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/0.2848, allocations: 1.013 MB / 437.5 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.628e-05/0.2849, allocations: 109.5 kB / 437.6 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.698e-05/0.2849, allocations: 11.19 kB / 437.6 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003617/0.2853, allocations: 50.97 kB / 437.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.49e-05/0.2854, allocations: 30.98 kB / 437.7 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.372e-05/0.2854, allocations: 18.39 kB / 437.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001152/0.2855, allocations: 162.6 kB / 437.8 MB, free: 35.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2855, allocations: 4 kB / 437.8 MB, free: 35.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004132/0.286, allocations: 116 kB / 438 MB, free: 35.73 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.002221/0.2882, allocations: 1.573 MB / 439.5 MB, free: 34.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.2897, allocations: 0.6958 MB / 440.2 MB, free: 34.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2897, allocations: 0 / 440.2 MB, free: 34.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008716/0.2906, allocations: 315.9 kB / 440.5 MB, free: 34.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006476/0.2912, allocations: 168.6 kB / 440.7 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003843/0.2951, allocations: 2.511 MB / 443.2 MB, free: 32.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001675/0.2953, allocations: 0.7819 MB / 444 MB, free: 32.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000154/0.2954, allocations: 43.61 kB / 444 MB, free: 32.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.2956, allocations: 98.25 kB / 444.1 MB, free: 32.2 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2956, allocations: 0 / 444.1 MB, free: 32.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.313, allocations: 8.093 MB / 452.2 MB, free: 31.63 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001168/0.3131, allocations: 192.3 kB / 452.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/1.989, allocations: 0 / 452.4 MB, free: 31.39 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: