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"}) [: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.00136/0.00136, allocations: 186.4 kB / 7.844 MB, free: 2.512 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.188/1.188, allocations: 221.4 MB / 229.6 MB, free: 3.039 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.0009391/0.000939, allocations: 90.27 kB / 280.5 MB, free: 1.332 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03625/0.03625, allocations: 8.087 MB / 339.4 MB, free: 6.434 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.185/0.2213, allocations: 58.62 MB / 398 MB, free: 67.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08218/0.3035, allocations: 52.52 MB / 450.5 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2571/0.5607, allocations: 83.49 MB / 0.5215 GB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001726/0.5609, allocations: 61.31 kB / 0.5215 GB, free: 10.68 MB / 346.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.0411/0.602, allocations: 15.34 MB / 0.5365 GB, free: 14.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.6021, allocations: 15.94 kB / 0.5365 GB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001886/0.6023, allocations: 47.44 kB / 0.5366 GB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006221/0.6029, allocations: 325 kB / 0.5369 GB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.499e-05/0.603, allocations: 38.36 kB / 0.5369 GB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.963e-05/0.603, allocations: 16 kB / 0.537 GB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006245/0.6037, allocations: 365.1 kB / 0.5373 GB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006415/0.6043, allocations: 398.9 kB / 0.5377 GB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.6044, allocations: 0 / 0.5377 GB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.43e-05/0.6044, allocations: 4 kB / 0.5377 GB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.6044, allocations: 8 kB / 0.5377 GB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002689/0.6071, allocations: 1.801 MB / 0.5395 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006611/0.6078, allocations: 441.3 kB / 0.5399 GB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003245/0.6081, allocations: 231.7 kB / 0.5401 GB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001773/0.6083, allocations: 93.08 kB / 0.5402 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000441/0.6088, allocations: 302.7 kB / 0.5405 GB, free: 11.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.294e-06/0.6088, allocations: 0 / 0.5405 GB, free: 11.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.002309/0.6111, allocations: 0.7913 MB / 0.5412 GB, free: 10.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/0.6112, allocations: 110.8 kB / 0.5413 GB, free: 10.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.6114, allocations: 232.6 kB / 0.5416 GB, free: 10.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.363e-05/0.6115, allocations: 29.7 kB / 0.5416 GB, free: 10.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.908e-05/0.6116, allocations: 141.5 kB / 0.5417 GB, free: 10.42 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.6117, allocations: 133.6 kB / 0.5419 GB, free: 10.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.749e-05/0.6117, allocations: 0 / 0.5419 GB, free: 10.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.6119, allocations: 344.5 kB / 0.5422 GB, free: 9.973 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003044/0.6122, allocations: 204.7 kB / 0.5424 GB, free: 9.871 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003228/0.6125, allocations: 243 kB / 0.5426 GB, free: 9.723 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006055/0.6131, allocations: 248.8 kB / 0.5429 GB, free: 9.582 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.6131, allocations: 0 / 0.5429 GB, free: 9.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002997/0.6161, allocations: 0.9481 MB / 0.5438 GB, free: 8.883 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.6162, allocations: 11.12 kB / 0.5438 GB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.6162, allocations: 0 / 0.5438 GB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002611/0.6188, allocations: 0.5378 MB / 0.5443 GB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/0.619, allocations: 51.59 kB / 0.5444 GB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00248/0.6215, allocations: 1.215 MB / 0.5456 GB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003749/0.6219, allocations: 23.83 kB / 0.5456 GB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.002e-05/0.622, allocations: 15.67 kB / 0.5456 GB, free: 7.363 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.0002032/0.6222, allocations: 115.5 kB / 0.5457 GB, free: 7.246 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.736e-05/0.6223, allocations: 43.47 kB / 0.5457 GB, free: 7.203 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002683/0.625, allocations: 0.9408 MB / 0.5467 GB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.625, allocations: 15.91 kB / 0.5467 GB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.625, allocations: 0 / 0.5467 GB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.625, allocations: 0 / 0.5467 GB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005883/0.6256, allocations: 0.5479 MB / 0.5472 GB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.6256, allocations: 0 / 0.5472 GB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001923/0.6258, allocations: 55.09 kB / 0.5473 GB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002585/0.6284, allocations: 0.5492 MB / 0.5478 GB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.153e-05/0.6285, allocations: 7.234 kB / 0.5478 GB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002152/0.6306, allocations: 1.207 MB / 0.549 GB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.6306, allocations: 0 / 0.549 GB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002536/0.6332, allocations: 0.8961 MB / 0.5499 GB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002682/0.6359, allocations: 1.292 MB / 0.5511 GB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.636, allocations: 124 kB / 0.5512 GB, free: 2.781 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.394e-05/0.6361, allocations: 0 / 0.5512 GB, free: 2.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/0.6365, allocations: 15.98 kB / 0.5513 GB, free: 2.766 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.704e-05/0.6366, allocations: 32.27 kB / 0.5513 GB, free: 2.738 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.403e-05/0.6366, allocations: 18.12 kB / 0.5513 GB, free: 2.727 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001767/0.6368, allocations: 188.5 kB / 0.5515 GB, free: 2.574 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001133/0.6379, allocations: 176.3 kB / 0.5517 GB, free: 2.426 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.001071/0.639, allocations: 478.1 kB / 0.5521 GB, free: 2.031 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001989/0.641, allocations: 0.6431 MB / 0.5527 GB, free: 1.602 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.641, allocations: 0 / 0.5527 GB, free: 1.602 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001593/0.6426, allocations: 435.6 kB / 0.5531 GB, free: 1.223 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.643, allocations: 29.98 kB / 0.5532 GB, free: 1.191 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.6442, allocations: 479.1 kB / 0.5536 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005023/0.6448, allocations: 0.8392 MB / 0.5545 GB, free: 15.82 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.6448, allocations: 0 / 0.5545 GB, free: 15.82 MB / 378.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)