Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.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.TwoSourcesOneLineThreeSensors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors") translateModel(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors") [: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.001028/0.001028, allocations: 192.9 kB / 7.845 MB, free: 2.5 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.248/1.248, allocations: 221.4 MB / 229.7 MB, free: 3.004 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.0009263/0.0009263, allocations: 91.11 kB / 280.5 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.0421/0.0421, allocations: 8.091 MB / 339.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.195e-06/8.215e-06, allocations: 7.938 kB / 397.9 MB, free: 68.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08634/0.08636, allocations: 52.5 MB / 450.4 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2872/0.3736, allocations: 78.98 MB / 0.517 GB, free: 15.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002187/0.3739, allocations: 58.36 kB / 0.517 GB, free: 15.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02046/0.3944, allocations: 7.657 MB / 0.5245 GB, free: 9.355 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.772e-05/0.3945, allocations: 4 kB / 0.5245 GB, free: 9.352 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001531/0.396, allocations: 0.5918 MB / 0.5251 GB, free: 8.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.396, allocations: 15.97 kB / 0.5251 GB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.698e-05/0.3961, allocations: 23.72 kB / 0.5251 GB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002745/0.3964, allocations: 250.8 kB / 0.5254 GB, free: 8.453 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.3965, allocations: 8 kB / 0.5254 GB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.942e-05/0.3965, allocations: 12 kB / 0.5254 GB, free: 8.434 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000467/0.397, allocations: 271.9 kB / 0.5257 GB, free: 8.277 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003986/0.3974, allocations: 258.5 kB / 0.5259 GB, free: 8.098 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.3974, allocations: 0 / 0.5259 GB, free: 8.098 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/0.3974, allocations: 0 / 0.5259 GB, free: 8.098 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.3975, allocations: 8 kB / 0.5259 GB, free: 8.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/0.3989, allocations: 0.8827 MB / 0.5268 GB, free: 7.395 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003282/0.3993, allocations: 231.7 kB / 0.527 GB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.3994, allocations: 113.7 kB / 0.5271 GB, free: 7.172 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001768/0.3996, allocations: 92.84 kB / 0.5272 GB, free: 7.066 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.3997, allocations: 30.75 kB / 0.5272 GB, free: 7.027 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.543e-06/0.3997, allocations: 0 / 0.5272 GB, free: 7.027 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008486/0.4005, allocations: 279 kB / 0.5275 GB, free: 6.832 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/0.4006, allocations: 59.28 kB / 0.5275 GB, free: 6.762 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.4008, allocations: 170.2 kB / 0.5277 GB, free: 6.617 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.4008, allocations: 25.7 kB / 0.5277 GB, free: 6.586 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.401, allocations: 166.3 kB / 0.5279 GB, free: 6.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.219e-05/0.4011, allocations: 61.83 kB / 0.5279 GB, free: 6.375 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.588e-05/0.4011, allocations: 0 / 0.5279 GB, free: 6.375 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.4013, allocations: 333 kB / 0.5283 GB, free: 6.047 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.4014, allocations: 112.2 kB / 0.5284 GB, free: 5.988 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001615/0.4016, allocations: 106 kB / 0.5285 GB, free: 5.934 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004116/0.402, allocations: 138.1 kB / 0.5286 GB, free: 5.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.402, allocations: 4 kB / 0.5286 GB, free: 5.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009452/0.403, allocations: 375.1 kB / 0.529 GB, free: 5.578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.403, allocations: 4 kB / 0.529 GB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.403, allocations: 0 / 0.529 GB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002963/0.4033, allocations: 55.31 kB / 0.529 GB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.4036, allocations: 55.53 kB / 0.5291 GB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0016/0.4052, allocations: 1.392 MB / 0.5304 GB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002018/0.4055, allocations: 19.88 kB / 0.5305 GB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.4055, allocations: 12 kB / 0.5305 GB, free: 4.059 MB / 346.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000101/0.4056, allocations: 105 kB / 0.5306 GB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.026e-05/0.4057, allocations: 15.81 kB / 0.5306 GB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007057/0.4064, allocations: 302 kB / 0.5309 GB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.4064, allocations: 7.906 kB / 0.5309 GB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4064, allocations: 0 / 0.5309 GB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.4064, allocations: 3.984 kB / 0.5309 GB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.4075, allocations: 0.6908 MB / 0.5316 GB, free: 3.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.4076, allocations: 7.984 kB / 0.5316 GB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001628/0.4077, allocations: 31.48 kB / 0.5316 GB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002516/0.408, allocations: 50.36 kB / 0.5316 GB, free: 3.074 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.408, allocations: 3.984 kB / 0.5316 GB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001376/0.4094, allocations: 1.388 MB / 0.533 GB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.4094, allocations: 0 / 0.533 GB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006498/0.4101, allocations: 371.9 kB / 0.5334 GB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.904e-05/0.4102, allocations: 104 kB / 0.5335 GB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/0.4102, allocations: 0 / 0.5335 GB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.4104, allocations: 8.094 kB / 0.5335 GB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.32e-05/0.4104, allocations: 7.984 kB / 0.5335 GB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.4104, allocations: 7.984 kB / 0.5335 GB, free: 1.238 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.000102/0.4105, allocations: 129.8 kB / 0.5336 GB, free: 1.133 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003923/0.4109, allocations: 71.78 kB / 0.5337 GB, free: 1.062 MB / 346.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002036/0.4111, allocations: 119.1 kB / 0.5338 GB, free: 0.9375 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007408/0.4119, allocations: 361.8 kB / 0.5341 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4119, allocations: 0 / 0.5341 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004059/0.4123, allocations: 234.6 kB / 0.5343 GB, free: 488 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001748/0.4125, allocations: 7.875 kB / 0.5344 GB, free: 484 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006451/0.4132, allocations: 252.9 kB / 0.5346 GB, free: 256 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004044/0.4136, allocations: 0.7743 MB / 0.5354 GB, free: 15.45 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4136, allocations: 0 / 0.5354 GB, free: 15.45 MB / 362.7 MB Notification: Performance of Templates: time 0.005984/0.4196, allocations: 2.9 MB / 0.5382 GB, free: 12.57 MB / 362.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.makefile (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.sim & ./PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe 2>&1)