Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableLoad.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(PowerSysPro.Examples.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001013, allocations: 181.1 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 221.4 MB / 235.1 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009186/0.0009188, allocations: 97.59 kB / 286.1 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05018/0.05018, allocations: 8.098 MB / 345.1 MB, free: 1.93 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.674e-05/3.693e-05, allocations: 4 kB / 405.6 MB, free: 61.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09495/0.09501, allocations: 52.52 MB / 458.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3969/0.492, allocations: 84.09 MB / 0.5295 GB, free: 1.965 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001822/0.4922, allocations: 65.8 kB / 0.5295 GB, free: 1.938 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03451/0.5267, allocations: 13.44 MB / 0.5426 GB, free: 7.281 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5268, allocations: 4 kB / 0.5427 GB, free: 7.277 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.89e-05/0.5268, allocations: 4 kB / 0.5427 GB, free: 7.273 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.002331/0.5291, allocations: 0.8387 MB / 0.5435 GB, free: 6.449 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.5292, allocations: 8.031 kB / 0.5435 GB, free: 6.441 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.088e-05/0.5293, allocations: 62.61 kB / 0.5435 GB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.348e-05/0.5294, allocations: 39.53 kB / 0.5436 GB, free: 6.348 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004834/0.5298, allocations: 343 kB / 0.5439 GB, free: 6.031 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.947e-05/0.5299, allocations: 48.39 kB / 0.544 GB, free: 5.984 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.949e-05/0.53, allocations: 34.75 kB / 0.544 GB, free: 5.961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006517/0.5306, allocations: 430.6 kB / 0.5444 GB, free: 5.672 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.5307, allocations: 3.953 kB / 0.5444 GB, free: 5.668 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.051e-05/0.5307, allocations: 11.19 kB / 0.5444 GB, free: 5.664 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.5307, allocations: 4 kB / 0.5444 GB, free: 5.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005464/0.5313, allocations: 376.8 kB / 0.5448 GB, free: 5.445 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002506/0.5338, allocations: 1.876 MB / 0.5466 GB, free: 3.816 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009217/0.5347, allocations: 0.4886 MB / 0.5471 GB, free: 3.512 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003239/0.5351, allocations: 245.5 kB / 0.5473 GB, free: 3.383 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001667/0.5352, allocations: 92.66 kB / 0.5474 GB, free: 3.277 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004842/0.5357, allocations: 313.5 kB / 0.5477 GB, free: 3.066 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 2.855e-06/0.5357, allocations: 0 / 0.5477 GB, free: 3.066 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.002142/0.5379, allocations: 0.8392 MB / 0.5485 GB, free: 2.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.909e-05/0.538, allocations: 106.8 kB / 0.5486 GB, free: 2.352 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002752/0.5383, allocations: 250.6 kB / 0.5489 GB, free: 2.148 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.458e-05/0.5383, allocations: 36.69 kB / 0.5489 GB, free: 2.113 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.5385, allocations: 167.2 kB / 0.5491 GB, free: 1.984 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.5386, allocations: 147 kB / 0.5492 GB, free: 1.859 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.664e-05/0.5386, allocations: 7.625 kB / 0.5492 GB, free: 1.855 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.5388, allocations: 350.7 kB / 0.5495 GB, free: 1.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.5391, allocations: 211.5 kB / 0.5497 GB, free: 1.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003471/0.5395, allocations: 250.8 kB / 0.55 GB, free: 1.254 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000345/0.5398, allocations: 227.1 kB / 0.5502 GB, free: 1.137 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.5398, allocations: 0 / 0.5502 GB, free: 1.137 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002578/0.5424, allocations: 0.9564 MB / 0.5511 GB, free: 456 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.5424, allocations: 4 kB / 0.5511 GB, free: 452 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.5424, allocations: 0 / 0.5511 GB, free: 452 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002621/0.5451, allocations: 0.5865 MB / 0.5517 GB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.5453, allocations: 55.61 kB / 0.5518 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001654/0.547, allocations: 1.086 MB / 0.5528 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.5473, allocations: 42.23 kB / 0.5529 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.952e-05/0.5474, allocations: 11.5 kB / 0.5529 GB, free: 14.99 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.varLoad.degradedMode,varLoad.degradedMode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.000138/0.5475, allocations: 122.4 kB / 0.553 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.547e-05/0.5476, allocations: 47.47 kB / 0.553 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002342/0.5499, allocations: 0.9712 MB / 0.554 GB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.55, allocations: 4 kB / 0.554 GB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.55, allocations: 8 kB / 0.554 GB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.55, allocations: 7.922 kB / 0.554 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006311/0.5506, allocations: 0.6112 MB / 0.5546 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.5506, allocations: 3.938 kB / 0.5546 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001878/0.5508, allocations: 55.59 kB / 0.5547 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002428/0.5533, allocations: 0.5718 MB / 0.5552 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.818e-05/0.5533, allocations: 11 kB / 0.5552 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001375/0.5547, allocations: 1.049 MB / 0.5562 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.5547, allocations: 0 / 0.5562 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002088/0.5568, allocations: 0.9183 MB / 0.5571 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.5569, allocations: 127.7 kB / 0.5573 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.397e-05/0.557, allocations: 17.2 kB / 0.5573 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003109/0.5573, allocations: 27.55 kB / 0.5573 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.922e-05/0.5574, allocations: 28.08 kB / 0.5573 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.87e-05/0.5575, allocations: 17.75 kB / 0.5574 GB, free: 11.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002097/0.5577, allocations: 208 kB / 0.5576 GB, free: 11.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5577, allocations: 0 / 0.5576 GB, free: 11.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004123/0.5581, allocations: 133.5 kB / 0.5577 GB, free: 11.14 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,varLoad.degradedMode) * Number of discrete states: 1 (varLoad.degradedMode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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 {6 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003178/0.5613, allocations: 1.749 MB / 0.5594 GB, free: 9.625 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.5632, allocations: 0.6571 MB / 0.56 GB, free: 8.965 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5632, allocations: 0 / 0.56 GB, free: 8.965 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/0.5643, allocations: 382.3 kB / 0.5604 GB, free: 8.594 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.5646, allocations: 36.88 kB / 0.5604 GB, free: 8.555 MB / 378.7 MB Warning: Could not resolve URI (loadFile) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.5659, allocations: 0.5895 MB / 0.561 GB, free: 7.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.5662, allocations: 0.7973 MB / 0.5618 GB, free: 7.109 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001922/0.5664, allocations: 46.94 kB / 0.5618 GB, free: 7.062 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001834/0.5666, allocations: 123.4 kB / 0.5619 GB, free: 6.945 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.5666, allocations: 0 / 0.5619 GB, free: 6.945 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.141/0.7077, allocations: 10.67 MB / 0.5724 GB, free: 12.38 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003011/0.708, allocations: 198.9 kB / 0.5726 GB, free: 12.16 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.225/2.933, allocations: 3.984 kB / 0.5726 GB, free: 12.15 MB / 394.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_VariableLoad_fmu --startTime=0 --stopTime=3.15324e+07 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_VariableLoad.fmu > PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe 2>&1)