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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 108.8 kB / 17.17 MB, free: 5.867 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 196.5 kB / 20.12 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 225.6 MB / 248.5 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0536/0.0536, allocations: 8.228 MB / 311.6 MB, free: 2.113 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 71.88 kB / 434 MB, free: 11.8 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2484, allocations: 54.35 MB / 488.3 MB, free: 27.4 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.002853/0.2513, allocations: 2.068 MB / 490.4 MB, free: 25.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001847/0.2531, allocations: 1.646 MB / 492 MB, free: 24.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.2532, allocations: 7.906 kB / 492 MB, free: 24.47 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003542/0.2536, allocations: 144.1 kB / 492.2 MB, free: 24.38 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005482/0.2541, allocations: 223.8 kB / 492.4 MB, free: 24.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.2558, allocations: 1.231 MB / 493.6 MB, free: 23.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004181/0.2562, allocations: 373.9 kB / 494 MB, free: 23.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.2564, allocations: 81.95 kB / 494.1 MB, free: 23.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.2566, allocations: 162.1 kB / 494.2 MB, free: 22.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.2569, allocations: 200.8 kB / 494.4 MB, free: 22.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.753e-05/0.2569, allocations: 31.22 kB / 494.5 MB, free: 22.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000448/0.2574, allocations: 289.1 kB / 494.7 MB, free: 22.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.052e-05/0.2575, allocations: 85.77 kB / 494.8 MB, free: 22.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.2576, allocations: 177.3 kB / 495 MB, free: 22.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005917/0.2582, allocations: 0.5556 MB / 495.6 MB, free: 22.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2582, allocations: 0 / 495.6 MB, free: 22.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2582, allocations: 4 kB / 495.6 MB, free: 22.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.2582, allocations: 3.938 kB / 495.6 MB, free: 22.11 MB / 366.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.003598/0.2618, allocations: 1.117 MB / 496.7 MB, free: 21.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.2619, allocations: 12.61 kB / 496.7 MB, free: 21.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.519e-05/0.2619, allocations: 69.84 kB / 496.8 MB, free: 21.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.262, allocations: 41.11 kB / 496.8 MB, free: 21.24 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003329/0.2624, allocations: 292.9 kB / 497.1 MB, free: 20.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/0.2625, allocations: 106.1 kB / 497.2 MB, free: 20.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.933e-05/0.2626, allocations: 28.59 kB / 497.2 MB, free: 20.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.2641, allocations: 0.7142 MB / 497.9 MB, free: 20.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.2641, allocations: 0 / 497.9 MB, free: 20.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.736e-05/0.2641, allocations: 11.34 kB / 497.9 MB, free: 20.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.2641, allocations: 10.41 kB / 498 MB, free: 20.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009226/0.265, allocations: 453.6 kB / 498.4 MB, free: 20.19 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.2669, allocations: 1.539 MB / 499.9 MB, free: 18.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001417/0.2683, allocations: 0.6698 MB / 0.4889 GB, free: 18.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005409/0.2688, allocations: 293.8 kB / 0.4892 GB, free: 18.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001239/0.269, allocations: 89.5 kB / 0.4892 GB, free: 18.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003656/0.2693, allocations: 280 kB / 0.4895 GB, free: 17.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.573e-06/0.2693, allocations: 0 / 0.4895 GB, free: 17.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.00339/0.2727, allocations: 1.211 MB / 0.4907 GB, free: 17.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.2728, allocations: 140.1 kB / 0.4908 GB, free: 17.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.273, allocations: 229.4 kB / 0.491 GB, free: 16.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/0.273, allocations: 36.27 kB / 0.4911 GB, free: 16.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.836e-05/0.2731, allocations: 155.7 kB / 0.4912 GB, free: 16.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.793e-05/0.2732, allocations: 113.7 kB / 0.4913 GB, free: 16.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.2733, allocations: 96.08 kB / 0.4914 GB, free: 16.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.372e-05/0.2733, allocations: 340.5 kB / 0.4917 GB, free: 16.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002882/0.2736, allocations: 204.3 kB / 0.4919 GB, free: 16.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003268/0.274, allocations: 338.3 kB / 0.4923 GB, free: 15.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005932/0.2745, allocations: 0.5369 MB / 0.4928 GB, free: 15.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.2745, allocations: 1.094 kB / 0.4928 GB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001391/0.2759, allocations: 0.7806 MB / 0.4936 GB, free: 15.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.276, allocations: 10.22 kB / 0.4936 GB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.276, allocations: 2.875 kB / 0.4936 GB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/0.278, allocations: 470.2 kB / 0.494 GB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000308/0.2783, allocations: 90.39 kB / 0.4941 GB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.2796, allocations: 0.9216 MB / 0.495 GB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000322/0.2799, allocations: 51.75 kB / 0.495 GB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.896e-05/0.2799, allocations: 23.5 kB / 0.4951 GB, free: 13.99 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.0001581/0.2801, allocations: 165.6 kB / 0.4952 GB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005965/0.2807, allocations: 257.2 kB / 0.4955 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009461/0.2816, allocations: 0.5645 MB / 0.496 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.2816, allocations: 4.406 kB / 0.496 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2816, allocations: 1.312 kB / 0.496 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.2816, allocations: 5.328 kB / 0.496 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.2838, allocations: 1.367 MB / 0.4974 GB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2838, allocations: 0 / 0.4974 GB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003422/0.2841, allocations: 89.91 kB / 0.4975 GB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001822/0.2859, allocations: 451.9 kB / 0.4979 GB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.105e-05/0.286, allocations: 14.73 kB / 0.4979 GB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.2872, allocations: 0.9035 MB / 0.4988 GB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.2872, allocations: 13.3 kB / 0.4988 GB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00231/0.2895, allocations: 0.9868 MB / 0.4998 GB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.695e-05/0.2896, allocations: 110.3 kB / 0.4999 GB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.139e-05/0.2896, allocations: 14.66 kB / 0.4999 GB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004063/0.29, allocations: 44.55 kB / 0.4999 GB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.293e-05/0.2901, allocations: 26.66 kB / 0.4999 GB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.563e-05/0.2901, allocations: 17.86 kB / 0.5 GB, free: 10.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001302/0.2903, allocations: 163.1 kB / 0.5001 GB, free: 10.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2903, allocations: 0 / 0.5001 GB, free: 10.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004737/0.2907, allocations: 116.1 kB / 0.5002 GB, free: 10.46 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.002573/0.2933, allocations: 1.557 MB / 0.5018 GB, free: 9.289 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001785/0.2951, allocations: 0.6613 MB / 0.5024 GB, free: 8.984 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.2951, allocations: 0.9375 kB / 0.5024 GB, free: 8.984 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.2961, allocations: 309 kB / 0.5027 GB, free: 8.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007032/0.2968, allocations: 158.1 kB / 0.5028 GB, free: 8.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006284/0.3031, allocations: 4.217 MB / 0.507 GB, free: 4.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/0.3033, allocations: 0.7849 MB / 0.5077 GB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001464/0.3034, allocations: 46.94 kB / 0.5078 GB, free: 3.871 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.3036, allocations: 95.41 kB / 0.5079 GB, free: 3.777 MB / 366.1 MB Notification: Performance of SimCode: time 9.71e-07/0.3036, allocations: 0 / 0.5079 GB, free: 3.777 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03368/0.3373, allocations: 9.005 MB / 0.5167 GB, free: 10.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/11.99, allocations: 10.69 kB / 0.5167 GB, free: 10.87 MB / 382.1 MB " [Timeout remaining time 648] (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 --stepSize=0.08 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_QfURegulation.fmu > PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.378701882902533] Failed to read output from testmodel.py, exit status != 0: 12.083116742316633 12.095656296 11.834804609 Calling exit ...