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.0009625/0.0009626, allocations: 177.6 kB / 8.045 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 221.5 MB / 230 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008456/0.0008453, allocations: 95.52 kB / 280.9 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.06804/0.06804, allocations: 8.102 MB / 339.8 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.34e-05/2.334e-05, allocations: 5 kB / 398.6 MB, free: 49.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1078, allocations: 52.53 MB / 451.1 MB, free: 5.285 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1193/0.2272, allocations: 83.17 MB / 0.5217 GB, free: 2.004 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.2275, allocations: 63.97 kB / 0.5218 GB, free: 1.941 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2604/0.4879, allocations: 13.17 MB / 0.5346 GB, free: 79.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.488, allocations: 4.188 kB / 0.5347 GB, free: 79.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.54e-05/0.488, allocations: 15.61 kB / 0.5347 GB, free: 79.83 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.00257/0.4906, allocations: 0.8262 MB / 0.5355 GB, free: 79.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.362e-05/0.4907, allocations: 13.58 kB / 0.5355 GB, free: 79.24 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001767/0.4908, allocations: 42 kB / 0.5355 GB, free: 79.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006751/0.4915, allocations: 342.5 kB / 0.5359 GB, free: 78.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.178e-05/0.4916, allocations: 38.17 kB / 0.5359 GB, free: 78.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.432e-05/0.4917, allocations: 14.88 kB / 0.5359 GB, free: 78.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001043/0.4928, allocations: 371.6 kB / 0.5363 GB, free: 78.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007951/0.4936, allocations: 395.8 kB / 0.5366 GB, free: 78.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.4936, allocations: 3.953 kB / 0.5366 GB, free: 78.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.722e-05/0.4937, allocations: 1.156 kB / 0.5366 GB, free: 78.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.4937, allocations: 6.406 kB / 0.5366 GB, free: 78.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002363/0.496, allocations: 1.806 MB / 0.5384 GB, free: 77.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008206/0.4969, allocations: 471 kB / 0.5389 GB, free: 76.97 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002637/0.4972, allocations: 237.7 kB / 0.5391 GB, free: 76.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001443/0.4973, allocations: 92.73 kB / 0.5392 GB, free: 76.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004035/0.4977, allocations: 305.1 kB / 0.5395 GB, free: 76.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.555e-06/0.4977, allocations: 0 / 0.5395 GB, free: 76.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.002028/0.4998, allocations: 0.7924 MB / 0.5402 GB, free: 76.1 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.4998, allocations: 114.2 kB / 0.5403 GB, free: 75.97 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002337/0.5001, allocations: 245.7 kB / 0.5406 GB, free: 75.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.928e-05/0.5001, allocations: 25.7 kB / 0.5406 GB, free: 75.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.536e-05/0.5002, allocations: 175.4 kB / 0.5408 GB, free: 75.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.711e-05/0.5003, allocations: 133.4 kB / 0.5409 GB, free: 75.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.697e-05/0.5003, allocations: 3.875 kB / 0.5409 GB, free: 75.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.404e-05/0.5004, allocations: 346.4 kB / 0.5412 GB, free: 75.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000238/0.5006, allocations: 201.3 kB / 0.5414 GB, free: 75.06 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002525/0.5009, allocations: 243.2 kB / 0.5417 GB, free: 74.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005033/0.5014, allocations: 246.6 kB / 0.5419 GB, free: 74.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.5014, allocations: 3.938 kB / 0.5419 GB, free: 74.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002493/0.5039, allocations: 0.9408 MB / 0.5428 GB, free: 74.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.504, allocations: 8.625 kB / 0.5428 GB, free: 74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.504, allocations: 4 kB / 0.5428 GB, free: 74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002297/0.5063, allocations: 0.5414 MB / 0.5434 GB, free: 73.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002153/0.5065, allocations: 51.91 kB / 0.5434 GB, free: 73.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001596/0.5081, allocations: 1.13 MB / 0.5445 GB, free: 72.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000402/0.5085, allocations: 23.69 kB / 0.5445 GB, free: 72.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.003e-05/0.5086, allocations: 19.94 kB / 0.5446 GB, free: 72.2 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: varLoad.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real 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.0001863/0.5088, allocations: 105 kB / 0.5447 GB, free: 72.09 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001831/0.5106, allocations: 0.7945 MB / 0.5454 GB, free: 71.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.989e-05/0.5107, allocations: 31.62 kB / 0.5455 GB, free: 71.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002254/0.5129, allocations: 0.9335 MB / 0.5464 GB, free: 70.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.513, allocations: 8 kB / 0.5464 GB, free: 70.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.513, allocations: 0 / 0.5464 GB, free: 70.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.513, allocations: 3.984 kB / 0.5464 GB, free: 70.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005983/0.5136, allocations: 0.5642 MB / 0.5469 GB, free: 69.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.5136, allocations: 0 / 0.5469 GB, free: 69.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.5138, allocations: 55.91 kB / 0.547 GB, free: 69.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/0.5159, allocations: 0.5408 MB / 0.5475 GB, free: 69.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.516, allocations: 0 / 0.5475 GB, free: 69.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.5175, allocations: 1.147 MB / 0.5486 GB, free: 67.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.5175, allocations: 3.938 kB / 0.5486 GB, free: 67.94 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002077/0.5196, allocations: 0.8846 MB / 0.5495 GB, free: 67.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.5197, allocations: 120.6 kB / 0.5496 GB, free: 66.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.825e-05/0.5198, allocations: 7.984 kB / 0.5496 GB, free: 66.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003136/0.5201, allocations: 11.98 kB / 0.5496 GB, free: 66.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.753e-05/0.5202, allocations: 40.28 kB / 0.5497 GB, free: 66.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/0.5203, allocations: 12 kB / 0.5497 GB, free: 66.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001806/0.5205, allocations: 198 kB / 0.5499 GB, free: 66.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5205, allocations: 0 / 0.5499 GB, free: 66.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004567/0.5209, allocations: 119.8 kB / 0.55 GB, free: 66.52 MB / 362.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 (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 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.003061/0.524, allocations: 1.682 MB / 0.5516 GB, free: 64.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001773/0.5258, allocations: 0.6319 MB / 0.5523 GB, free: 64.26 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.5258, allocations: 0 / 0.5523 GB, free: 64.26 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0013/0.5271, allocations: 429.2 kB / 0.5527 GB, free: 63.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004022/0.5275, allocations: 32.83 kB / 0.5527 GB, free: 63.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.5288, allocations: 0.5365 MB / 0.5532 GB, free: 63.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002005/0.529, allocations: 0.7928 MB / 0.554 GB, free: 62.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001966/0.5292, allocations: 59.22 kB / 0.554 GB, free: 62.35 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.5293, allocations: 115.4 kB / 0.5542 GB, free: 62.23 MB / 362.7 MB Notification: Performance of SimCode: time 1.243e-06/0.5293, allocations: 3.938 kB / 0.5542 GB, free: 62.23 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.132/0.6613, allocations: 9.597 MB / 0.5635 GB, free: 52.66 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001664/0.6616, allocations: 141.2 kB / 0.5637 GB, free: 52.47 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.223/2.884, allocations: 3.938 kB / 0.5637 GB, free: 52.46 MB / 362.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)