Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.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/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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(PhotoVoltaics.Examples.SimpleModulePolyphase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase") translateModel(PhotoVoltaics.Examples.SimpleModulePolyphase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase") [: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.002395/0.002395, allocations: 180.8 kB / 7.455 MB, free: 2.508 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.067/1.067, allocations: 221.4 MB / 229.3 MB, free: 3.082 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.001004/0.001004, allocations: 95.77 kB / 280.1 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02254/0.02254, allocations: 5.3 MB / 336.2 MB, free: 9.223 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.468e-06/4.488e-06, allocations: 0 / 393.8 MB, free: 71.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06745/0.06746, allocations: 51.61 MB / 445.4 MB, free: 19.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2162/0.2837, allocations: 93.82 MB / 0.5266 GB, free: 7.953 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001661/0.2839, allocations: 70.53 kB / 0.5267 GB, free: 7.922 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.09725/0.3812, allocations: 38.84 MB / 0.5646 GB, free: 7.797 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002284/0.3814, allocations: 55.06 kB / 0.5646 GB, free: 7.746 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 529 * Number of variables: 529 Notification: Performance of Generate backend data structure: time 0.005545/0.387, allocations: 2.152 MB / 0.5667 GB, free: 5.664 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.387, allocations: 8.031 kB / 0.5667 GB, free: 5.656 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009263/0.388, allocations: 261 kB / 0.567 GB, free: 5.398 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00282/0.3908, allocations: 1.382 MB / 0.5683 GB, free: 4.305 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.093e-05/0.3909, allocations: 67.5 kB / 0.5684 GB, free: 4.242 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000418/0.3913, allocations: 124 kB / 0.5685 GB, free: 4.121 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003566/0.3949, allocations: 1.902 MB / 0.5704 GB, free: 2.297 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00413/0.3991, allocations: 2.301 MB / 0.5726 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.784e-05/0.3991, allocations: 0 / 0.5726 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001677/0.3993, allocations: 4 kB / 0.5726 GB, free: 15.85 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.467e-05/0.3994, allocations: 83.98 kB / 0.5727 GB, free: 15.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01214/0.4115, allocations: 7.713 MB / 0.5802 GB, free: 7.816 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/0.4129, allocations: 0.8219 MB / 0.581 GB, free: 6.973 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007439/0.4136, allocations: 0.4909 MB / 0.5815 GB, free: 6.48 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.561e-05/0.4137, allocations: 16.64 kB / 0.5815 GB, free: 6.465 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007325/0.4144, allocations: 0.5459 MB / 0.5821 GB, free: 5.895 MB / 394.7 MB Notification: Performance of pre-optimization done (n=75): time 4.038e-06/0.4145, allocations: 0 / 0.5821 GB, free: 5.895 MB / 394.7 MB Notification: Performance of matching and sorting (n=75): time 0.001728/0.4162, allocations: 0.9991 MB / 0.5831 GB, free: 4.883 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.43e-05/0.4163, allocations: 166.9 kB / 0.5832 GB, free: 4.684 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001368/0.4177, allocations: 0.9045 MB / 0.5841 GB, free: 3.762 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.883e-05/0.4177, allocations: 29.7 kB / 0.5841 GB, free: 3.727 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005536/0.4183, allocations: 0.801 MB / 0.5849 GB, free: 2.91 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/0.4185, allocations: 244.4 kB / 0.5851 GB, free: 2.668 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.622e-05/0.4186, allocations: 4 kB / 0.5851 GB, free: 2.664 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.4187, allocations: 341.9 kB / 0.5855 GB, free: 2.324 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006217/0.4193, allocations: 437.8 kB / 0.5859 GB, free: 1.895 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007707/0.4201, allocations: 0.6952 MB / 0.5866 GB, free: 1.074 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007716/0.4209, allocations: 0.5314 MB / 0.5871 GB, free: 0.543 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.4209, allocations: 4 kB / 0.5871 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002279/0.4232, allocations: 1.302 MB / 0.5884 GB, free: 15.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001065/0.4243, allocations: 3.397 MB / 0.5917 GB, free: 11.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.4243, allocations: 8 kB / 0.5917 GB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000532/0.4248, allocations: 100.8 kB / 0.5918 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.426, allocations: 275.5 kB / 0.592 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.4275, allocations: 1.513 MB / 0.5935 GB, free: 9.547 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009766/0.4285, allocations: 127.1 kB / 0.5936 GB, free: 9.422 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.4286, allocations: 48.02 kB / 0.5937 GB, free: 9.375 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.271e-06/0.4286, allocations: 4 kB / 0.5937 GB, free: 9.371 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001976/0.4306, allocations: 1.166 MB / 0.5948 GB, free: 8.195 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.4307, allocations: 8 kB / 0.5948 GB, free: 8.188 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004814/0.4311, allocations: 96.77 kB / 0.5949 GB, free: 8.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.4322, allocations: 267.8 kB / 0.5952 GB, free: 7.828 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.4336, allocations: 1.494 MB / 0.5966 GB, free: 6.215 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008889/0.4345, allocations: 103.3 kB / 0.5967 GB, free: 6.113 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.4347, allocations: 47.97 kB / 0.5968 GB, free: 6.066 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$PRE.mpTracker.vRef,mpTracker.vRef,converter.integratorOmega.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002394/0.4349, allocations: 170.4 kB / 0.5969 GB, free: 5.887 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001978/0.4351, allocations: 110.6 kB / 0.5971 GB, free: 5.777 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00181/0.4369, allocations: 1.121 MB / 0.5981 GB, free: 4.641 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.4369, allocations: 8 kB / 0.5982 GB, free: 4.633 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.4369, allocations: 0 / 0.5982 GB, free: 4.633 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.437, allocations: 3.984 kB / 0.5982 GB, free: 4.629 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004459/0.4414, allocations: 2.774 MB / 0.6009 GB, free: 1.793 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.4414, allocations: 4 kB / 0.6009 GB, free: 1.789 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000763/0.4422, allocations: 159.8 kB / 0.601 GB, free: 1.633 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002518/0.4447, allocations: 0.5527 MB / 0.6016 GB, free: 1.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-05/0.4448, allocations: 19.97 kB / 0.6016 GB, free: 1.051 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008347/0.4457, allocations: 0.8294 MB / 0.6024 GB, free: 200 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.4457, allocations: 0 / 0.6024 GB, free: 200 kB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002358/0.4481, allocations: 1.755 MB / 0.6041 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005557/0.4486, allocations: 307.4 kB / 0.6044 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002574/0.4489, allocations: 8 kB / 0.6044 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000833/0.4497, allocations: 75.98 kB / 0.6045 GB, free: 14.01 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.4499, allocations: 36.59 kB / 0.6045 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.081e-05/0.4499, allocations: 39.89 kB / 0.6046 GB, free: 13.94 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0009937/0.4509, allocations: 0.6818 MB / 0.6052 GB, free: 13.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002093/0.453, allocations: 0.8349 MB / 0.606 GB, free: 12.41 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (converter.integrator.y,converter.integratorOmega.y,converter.firstOrder[1].y,converter.firstOrder[2].y,converter.firstOrder[3].y) * Number of discrete variables: 6 ($whenCondition1,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef) * Number of discrete states: 7 (mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 66 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002783/0.4533, allocations: 163.1 kB / 0.6062 GB, free: 12.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002934/0.4563, allocations: 1.968 MB / 0.6081 GB, free: 10.24 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.4563, allocations: 0 / 0.6081 GB, free: 10.24 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000793/0.4571, allocations: 0.539 MB / 0.6086 GB, free: 9.695 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.4582, allocations: 213.6 kB / 0.6088 GB, free: 9.488 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005508/0.4637, allocations: 2.674 MB / 0.6115 GB, free: 6.762 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001886/0.4656, allocations: 1.844 MB / 0.6133 GB, free: 4.883 MB / 426.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4656, allocations: 0 / 0.6133 GB, free: 4.883 MB / 426.7 MB Notification: Performance of Templates: time 0.03316/0.4988, allocations: 20.63 MB / 0.6334 GB, free: 388 kB / 442.7 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.makefile (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.sim & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.pipe 2>&1)