Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",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 3.2.2+maint.om/package.mo): time 0.001103/0.001103, allocations: 186.6 kB / 8.136 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9994/0.9994, allocations: 194.2 MB / 202.8 MB, free: 8.688 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001609/0.001609, allocations: 111.5 kB / 247.7 MB, free: 6.375 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1507/0.1507, allocations: 37.91 MB / 330.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.178/0.3287, allocations: 59.34 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06773/0.3965, allocations: 53.22 MB / 443.1 MB, free: 24.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2354/0.6319, allocations: 92.12 MB / 0.5227 GB, free: 9.926 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.6322, allocations: 81.52 kB / 0.5228 GB, free: 9.914 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.05247/0.6847, allocations: 24.15 MB / 0.5463 GB, free: 11.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.6847, allocations: 8 kB / 0.5464 GB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001902/0.6866, allocations: 211.1 kB / 0.5466 GB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005851/0.6872, allocations: 368.1 kB / 0.5469 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.6873, allocations: 16 kB / 0.5469 GB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.819e-05/0.6874, allocations: 31.84 kB / 0.5469 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006843/0.6881, allocations: 446.5 kB / 0.5474 GB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007931/0.6889, allocations: 0.5536 MB / 0.5479 GB, free: 9.797 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.6889, allocations: 8 kB / 0.5479 GB, free: 9.789 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.202e-05/0.6889, allocations: 0 / 0.5479 GB, free: 9.789 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001213/0.6891, allocations: 48.22 kB / 0.548 GB, free: 9.746 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0031/0.6922, allocations: 2.231 MB / 0.5501 GB, free: 7.844 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000538/0.6927, allocations: 462.8 kB / 0.5506 GB, free: 7.461 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002692/0.693, allocations: 237.3 kB / 0.5508 GB, free: 7.305 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.743e-05/0.6931, allocations: 7.281 kB / 0.5508 GB, free: 7.301 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.6931, allocations: 48.98 kB / 0.5509 GB, free: 7.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 1.783e-06/0.6931, allocations: 0 / 0.5509 GB, free: 7.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.002017/0.6951, allocations: 1.243 MB / 0.5521 GB, free: 6.203 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.6952, allocations: 85.05 kB / 0.5522 GB, free: 6.102 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.6954, allocations: 207.2 kB / 0.5524 GB, free: 5.922 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.6954, allocations: 29.64 kB / 0.5524 GB, free: 5.887 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.337e-05/0.6955, allocations: 203.6 kB / 0.5526 GB, free: 5.699 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.6956, allocations: 154.7 kB / 0.5527 GB, free: 5.566 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.97e-05/0.6957, allocations: 0 / 0.5527 GB, free: 5.566 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.6958, allocations: 344 kB / 0.5531 GB, free: 5.234 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002302/0.696, allocations: 171.6 kB / 0.5532 GB, free: 5.129 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002759/0.6963, allocations: 289.5 kB / 0.5535 GB, free: 4.871 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.6966, allocations: 222.3 kB / 0.5537 GB, free: 4.723 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.6966, allocations: 0 / 0.5537 GB, free: 4.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001055/0.6977, allocations: 0.6386 MB / 0.5543 GB, free: 4.223 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.6977, allocations: 4 kB / 0.5543 GB, free: 4.219 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.6977, allocations: 4 kB / 0.5543 GB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006267/0.6983, allocations: 157.6 kB / 0.5545 GB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004058/0.6987, allocations: 103.5 kB / 0.5546 GB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002913/0.7017, allocations: 2.291 MB / 0.5568 GB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003128/0.702, allocations: 15.92 kB / 0.5568 GB, free: 1.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.702, allocations: 22.44 kB / 0.5569 GB, free: 1.875 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedLoad.terminal.i[2]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * 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 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001571/0.7022, allocations: 112.9 kB / 0.557 GB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.442e-05/0.7023, allocations: 35.53 kB / 0.557 GB, free: 1.723 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/0.7034, allocations: 0.6156 MB / 0.5576 GB, free: 1.266 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.7034, allocations: 4 kB / 0.5576 GB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.7034, allocations: 0 / 0.5576 GB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.647e-06/0.7034, allocations: 3.984 kB / 0.5576 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00222/0.7057, allocations: 1.326 MB / 0.5589 GB, free: 156 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.7057, allocations: 0 / 0.5589 GB, free: 156 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000414/0.7061, allocations: 83.2 kB / 0.559 GB, free: 76 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004701/0.7066, allocations: 132.8 kB / 0.5591 GB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/0.7066, allocations: 0 / 0.5591 GB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002458/0.7091, allocations: 2.155 MB / 0.5612 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.7091, allocations: 3.906 kB / 0.5612 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00131/0.7104, allocations: 0.9993 MB / 0.5622 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001761/0.7122, allocations: 1.644 MB / 0.5638 GB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.955e-05/0.7123, allocations: 108.7 kB / 0.5639 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.799e-05/0.7124, allocations: 3.906 kB / 0.5639 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.7126, allocations: 4 kB / 0.5639 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.774e-05/0.7127, allocations: 35.89 kB / 0.564 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.7127, allocations: 12 kB / 0.564 GB, free: 11.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000133/0.7128, allocations: 161.2 kB / 0.5641 GB, free: 11.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001172/0.714, allocations: 131.9 kB / 0.5642 GB, free: 11.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001397/0.7142, allocations: 115.2 kB / 0.5644 GB, free: 11.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.7153, allocations: 0.6296 MB / 0.565 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.7153, allocations: 0 / 0.565 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006201/0.7159, allocations: 393.4 kB / 0.5653 GB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.7163, allocations: 44.38 kB / 0.5654 GB, free: 10.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.7179, allocations: 0.9132 MB / 0.5663 GB, free: 9.066 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005277/0.7185, allocations: 0.9212 MB / 0.5672 GB, free: 8.117 MB / 378.7 MB Notification: Performance of SimCode: time 1.523e-06/0.7185, allocations: 0 / 0.5672 GB, free: 8.117 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)