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: translateModel(PowerSysPro.Examples.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableLoad") translateModel(PowerSysPro.Examples.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableLoad") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 188.2 kB / 7.842 MB, free: 2.473 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.224/1.224, allocations: 221.4 MB / 229.6 MB, free: 3.023 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.0009592/0.0009592, allocations: 98.09 kB / 280.5 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.0417/0.0417, allocations: 8.099 MB / 339.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.626e-06/8.656e-06, allocations: 4 kB / 397.9 MB, free: 68.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.111, allocations: 52.52 MB / 450.4 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3308/0.4418, allocations: 83.49 MB / 0.5214 GB, free: 10.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001895/0.442, allocations: 68.72 kB / 0.5215 GB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04046/0.4825, allocations: 14.45 MB / 0.5356 GB, free: 15.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.499e-05/0.4826, allocations: 8 kB / 0.5356 GB, free: 15.59 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.00298/0.4856, allocations: 0.8808 MB / 0.5364 GB, free: 14.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.4856, allocations: 15.91 kB / 0.5365 GB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.4858, allocations: 47.44 kB / 0.5365 GB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005738/0.4864, allocations: 325.9 kB / 0.5368 GB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.791e-05/0.4865, allocations: 38.36 kB / 0.5368 GB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.968e-05/0.4866, allocations: 15.98 kB / 0.5369 GB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006924/0.4873, allocations: 366.5 kB / 0.5372 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000689/0.488, allocations: 394.7 kB / 0.5376 GB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.488, allocations: 0 / 0.5376 GB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.656e-05/0.4881, allocations: 4 kB / 0.5376 GB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.4881, allocations: 4 kB / 0.5376 GB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002959/0.491, allocations: 1.803 MB / 0.5394 GB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007653/0.4918, allocations: 438.8 kB / 0.5398 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003528/0.4922, allocations: 233.7 kB / 0.54 GB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001874/0.4924, allocations: 92.84 kB / 0.5401 GB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00045/0.4929, allocations: 295.1 kB / 0.5404 GB, free: 11.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.324e-06/0.4929, allocations: 4 kB / 0.5404 GB, free: 11.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.002417/0.4953, allocations: 0.7944 MB / 0.5411 GB, free: 10.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.4954, allocations: 106.8 kB / 0.5412 GB, free: 10.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002705/0.4956, allocations: 233.6 kB / 0.5415 GB, free: 10.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.109e-05/0.4957, allocations: 33.58 kB / 0.5415 GB, free: 10.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.47e-05/0.4958, allocations: 140.3 kB / 0.5416 GB, free: 10.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.4959, allocations: 133.3 kB / 0.5418 GB, free: 10.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.873e-05/0.496, allocations: 0 / 0.5418 GB, free: 10.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.4961, allocations: 345.8 kB / 0.5421 GB, free: 10.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002994/0.4964, allocations: 204.7 kB / 0.5423 GB, free: 9.941 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003268/0.4967, allocations: 237.8 kB / 0.5425 GB, free: 9.801 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006303/0.4974, allocations: 251.1 kB / 0.5428 GB, free: 9.656 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4974, allocations: 0 / 0.5428 GB, free: 9.656 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003085/0.5005, allocations: 0.9559 MB / 0.5437 GB, free: 8.949 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.5005, allocations: 8 kB / 0.5437 GB, free: 8.941 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.5005, allocations: 0 / 0.5437 GB, free: 8.941 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00286/0.5034, allocations: 0.5389 MB / 0.5442 GB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002698/0.5037, allocations: 51.22 kB / 0.5443 GB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002385/0.5061, allocations: 1.209 MB / 0.5455 GB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005175/0.5066, allocations: 31.77 kB / 0.5455 GB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.07e-05/0.5067, allocations: 19.17 kB / 0.5455 GB, free: 7.438 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.0002806/0.507, allocations: 113.8 kB / 0.5456 GB, free: 7.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001771/0.5072, allocations: 38.91 kB / 0.5456 GB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003038/0.5102, allocations: 0.9411 MB / 0.5466 GB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.5103, allocations: 7.906 kB / 0.5466 GB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.5103, allocations: 0 / 0.5466 GB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.026e-06/0.5103, allocations: 8 kB / 0.5466 GB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007211/0.511, allocations: 0.5475 MB / 0.5471 GB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.511, allocations: 0 / 0.5471 GB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.5113, allocations: 55.59 kB / 0.5472 GB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002605/0.5139, allocations: 0.5409 MB / 0.5477 GB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.226e-05/0.514, allocations: 11.98 kB / 0.5477 GB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002241/0.5162, allocations: 1.204 MB / 0.5489 GB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.5163, allocations: 0 / 0.5489 GB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00263/0.5189, allocations: 0.9042 MB / 0.5498 GB, free: 4.047 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001632/0.5191, allocations: 123.6 kB / 0.5499 GB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.5192, allocations: 0 / 0.5499 GB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003542/0.5196, allocations: 19.98 kB / 0.5499 GB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.597e-05/0.5197, allocations: 27.64 kB / 0.5499 GB, free: 3.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-05/0.5197, allocations: 19.25 kB / 0.5499 GB, free: 3.852 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002034/0.5199, allocations: 188 kB / 0.5501 GB, free: 3.703 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006065/0.5206, allocations: 161.8 kB / 0.5503 GB, free: 3.555 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.001115/0.5217, allocations: 473.3 kB / 0.5507 GB, free: 3.164 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002013/0.5237, allocations: 0.6449 MB / 0.5514 GB, free: 2.734 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.5237, allocations: 0 / 0.5514 GB, free: 2.734 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.5252, allocations: 438.2 kB / 0.5518 GB, free: 2.414 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.5256, allocations: 33.95 kB / 0.5518 GB, free: 2.391 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.5268, allocations: 475.5 kB / 0.5523 GB, free: 1.984 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005076/0.5274, allocations: 0.8426 MB / 0.5531 GB, free: 1.117 MB / 362.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5274, allocations: 0 / 0.5531 GB, free: 1.117 MB / 362.7 MB Notification: Performance of Templates: time 0.01401/0.5414, allocations: 7.83 MB / 0.5607 GB, free: 9.316 MB / 378.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.VariableLoad.makefile (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 & ./PowerSysPro_PowerSysPro.Examples.VariableLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe 2>&1)