Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|busbar.alpha_v|busbar1.alpha_v|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|busbar.alpha_v|busbar1.alpha_v|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine") [: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.3+maint.om/package.mo): time 0.0015/0.0015, allocations: 183.5 kB / 8.134 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.149/1.149, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008452/0.0008452, allocations: 79.02 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1601/0.1601, allocations: 37.97 MB / 347.7 MB, free: 7.453 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.685e-06/7.725e-06, allocations: 4 kB / 410 MB, free: 46.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0829/0.08292, allocations: 56.32 MB / 466.3 MB, free: 6.453 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3135/0.3965, allocations: 116.2 MB / 0.5689 GB, free: 10.33 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000301/0.3968, allocations: 91.95 kB / 0.5689 GB, free: 10.24 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1039/0.5008, allocations: 37.51 MB / 0.6056 GB, free: 4.273 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.178e-05/0.5009, allocations: 32 kB / 0.6056 GB, free: 4.242 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.002528/0.5034, allocations: 1.277 MB / 0.6069 GB, free: 2.914 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.5035, allocations: 8.031 kB / 0.6069 GB, free: 2.906 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/0.5051, allocations: 270 kB / 0.6071 GB, free: 2.641 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004266/0.5094, allocations: 1.553 MB / 0.6086 GB, free: 1.039 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.5095, allocations: 32 kB / 0.6087 GB, free: 1.008 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002282/0.5097, allocations: 71.91 kB / 0.6087 GB, free: 0.9375 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001824/0.5115, allocations: 1.043 MB / 0.6097 GB, free: 15.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/0.5136, allocations: 1.326 MB / 0.611 GB, free: 14.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.023e-05/0.5136, allocations: 11.84 kB / 0.6111 GB, free: 14.48 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.001e-05/0.5137, allocations: 0 / 0.6111 GB, free: 14.48 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001339/0.5139, allocations: 90.17 kB / 0.6111 GB, free: 14.39 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007646/0.5215, allocations: 5.329 MB / 0.6163 GB, free: 8.758 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008325/0.5224, allocations: 0.5733 MB / 0.6169 GB, free: 8.164 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005002/0.5229, allocations: 388.5 kB / 0.6173 GB, free: 7.781 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.807e-05/0.523, allocations: 8.656 kB / 0.6173 GB, free: 7.773 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.523, allocations: 43.22 kB / 0.6173 GB, free: 7.723 MB / 458.7 MB Notification: Performance of pre-optimization done (n=69): time 3.647e-06/0.523, allocations: 0 / 0.6173 GB, free: 7.723 MB / 458.7 MB Notification: Performance of matching and sorting (n=78): time 0.005431/0.5285, allocations: 2.687 MB / 0.6199 GB, free: 4.965 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.5285, allocations: 85.77 kB / 0.62 GB, free: 4.863 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006988/0.5292, allocations: 0.5506 MB / 0.6206 GB, free: 4.305 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.073e-05/0.5293, allocations: 25.7 kB / 0.6206 GB, free: 4.273 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002791/0.5296, allocations: 0.4941 MB / 0.6211 GB, free: 3.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002192/0.5298, allocations: 272 kB / 0.6213 GB, free: 3.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.492e-05/0.5299, allocations: 0 / 0.6213 GB, free: 3.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.5301, allocations: 398.7 kB / 0.6217 GB, free: 3.102 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005378/0.5306, allocations: 386.5 kB / 0.6221 GB, free: 2.727 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006994/0.5313, allocations: 0.6746 MB / 0.6227 GB, free: 1.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007062/0.532, allocations: 0.5119 MB / 0.6232 GB, free: 1.418 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.532, allocations: 3.938 kB / 0.6232 GB, free: 1.414 MB / 458.7 MB Notification: Performance of matching and sorting (n=131) (initialization): time 0.00339/0.5354, allocations: 1.66 MB / 0.6249 GB, free: 15.73 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.5355, allocations: 7.906 kB / 0.6249 GB, free: 15.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002742/0.5382, allocations: 1.299 MB / 0.6261 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002121/0.5404, allocations: 0.6212 MB / 0.6268 GB, free: 13.78 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00066/0.541, allocations: 175.7 kB / 0.6269 GB, free: 13.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/0.5519, allocations: 8.812 MB / 0.6355 GB, free: 4.32 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009624/0.5529, allocations: 19.92 kB / 0.6355 GB, free: 4.301 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002118/0.5531, allocations: 47.98 kB / 0.6356 GB, free: 4.254 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (96): * Single equations (assignments): 92 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {3 20} Notification: Performance of prepare postOptimizeDAE: time 0.0003405/0.5535, allocations: 128.7 kB / 0.6357 GB, free: 4.121 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002691/0.5538, allocations: 86.88 kB / 0.6358 GB, free: 4.035 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002576/0.5564, allocations: 1.22 MB / 0.637 GB, free: 2.785 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/0.5564, allocations: 8 kB / 0.637 GB, free: 2.777 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.54e-05/0.5564, allocations: 4 kB / 0.637 GB, free: 2.773 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.5564, allocations: 11.86 kB / 0.637 GB, free: 2.762 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005503/0.5619, allocations: 2.362 MB / 0.6393 GB, free: 308 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.562, allocations: 4.031 kB / 0.6393 GB, free: 304 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006421/0.5626, allocations: 119.7 kB / 0.6394 GB, free: 184 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1748/0.7374, allocations: 386.1 kB / 0.6398 GB, free: 182.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001665/0.7376, allocations: 16.83 kB / 0.6398 GB, free: 182.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006204/0.7438, allocations: 8.149 MB / 0.6478 GB, free: 176.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.7439, allocations: 10.39 kB / 0.6478 GB, free: 176.8 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002637/0.7465, allocations: 1.904 MB / 0.6496 GB, free: 176.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004714/0.747, allocations: 232.8 kB / 0.6499 GB, free: 176.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002387/0.7473, allocations: 15.53 kB / 0.6499 GB, free: 176.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005939/0.7479, allocations: 16.83 kB / 0.6499 GB, free: 176.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.541e-05/0.748, allocations: 47.03 kB / 0.6499 GB, free: 176.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.685e-05/0.748, allocations: 31.61 kB / 0.65 GB, free: 176.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0005989/0.7486, allocations: 424.8 kB / 0.6504 GB, free: 176.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001619/0.7503, allocations: 313.6 kB / 0.6507 GB, free: 176.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 8 (turboGrp.w,generator.phi_el,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 53 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 10,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003135/0.7506, allocations: 184.8 kB / 0.6509 GB, free: 176 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002143/0.7527, allocations: 1.462 MB / 0.6523 GB, free: 175.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.7528, allocations: 0 / 0.6523 GB, free: 175.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001354/0.7541, allocations: 1.012 MB / 0.6533 GB, free: 175.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009297/0.7551, allocations: 153.2 kB / 0.6534 GB, free: 175.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004083/0.7592, allocations: 2.277 MB / 0.6556 GB, free: 174.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009969/0.7602, allocations: 1.315 MB / 0.6569 GB, free: 173.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.252e-06/0.7602, allocations: 0 / 0.6569 GB, free: 173.8 MB / 474.7 MB Notification: Performance of Templates: time 0.02278/0.783, allocations: 14.15 MB / 0.6707 GB, free: 173 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches