Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.conf.json 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/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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008719/0.0008719, allocations: 91.84 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008479/0.000848, allocations: 186.7 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2938/0.2938, allocations: 38.07 MB / 330.3 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003005/0.0003006, allocations: 12 kB / 400.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2757, allocations: 59.16 MB / 459.2 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.008814/0.2846, allocations: 8.973 MB / 468.2 MB, free: 23.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005907/0.2905, allocations: 3.433 MB / 471.6 MB, free: 21.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001425/0.292, allocations: 64.34 kB / 471.7 MB, free: 21.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008468/0.2929, allocations: 282.5 kB / 472 MB, free: 21.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002411/0.2953, allocations: 0.685 MB / 472.7 MB, free: 20.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00146/0.2968, allocations: 416.4 kB / 473.1 MB, free: 20.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00199/0.2988, allocations: 1.013 MB / 474.1 MB, free: 20.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001227/0.3, allocations: 0.869 MB / 474.9 MB, free: 19.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008598/0.3009, allocations: 0.5378 MB / 475.5 MB, free: 19.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00118/0.3021, allocations: 0.5434 MB / 476 MB, free: 19.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001824/0.3023, allocations: 55.16 kB / 476.1 MB, free: 19.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008407/0.3031, allocations: 266.6 kB / 476.3 MB, free: 19.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005364/0.3037, allocations: 376.1 kB / 476.7 MB, free: 18.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003441/0.304, allocations: 270.3 kB / 477 MB, free: 18.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00183/0.3059, allocations: 1.518 MB / 478.5 MB, free: 18.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3059, allocations: 0 / 478.5 MB, free: 18.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3059, allocations: 0 / 478.5 MB, free: 18.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.056e-05/0.3059, allocations: 0 / 478.5 MB, free: 18.01 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.003137/0.3091, allocations: 1.416 MB / 479.9 MB, free: 16.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3091, allocations: 8.938 kB / 479.9 MB, free: 16.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002648/0.3094, allocations: 168.9 kB / 480.1 MB, free: 16.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001113/0.3105, allocations: 193.5 kB / 480.3 MB, free: 16.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002272/0.3128, allocations: 0.8848 MB / 481.1 MB, free: 16.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.693e-05/0.3129, allocations: 82.03 kB / 481.2 MB, free: 16.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003838/0.3133, allocations: 125.3 kB / 481.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003115/0.3164, allocations: 1.325 MB / 482.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.783e-05/0.3165, allocations: 5.375 kB / 482.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001558/0.3167, allocations: 46.61 kB / 482.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001893/0.3169, allocations: 70.88 kB / 482.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002758/0.3197, allocations: 1.072 MB / 483.9 MB, free: 14.52 MB / 350.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.000124777475384046 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009078/0.3288, allocations: 5.156 MB / 489 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/0.3303, allocations: 0.7656 MB / 489.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.369e-05/0.3304, allocations: 16.62 kB / 489.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.3304, allocations: 35.12 kB / 489.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 3.607e-06/0.3304, allocations: 4 kB / 489.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=71): time 0.005337/0.3358, allocations: 2.699 MB / 492.5 MB, free: 5.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.3358, allocations: 137.1 kB / 492.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006939/0.3366, allocations: 0.7393 MB / 493.4 MB, free: 5.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.204e-05/0.3366, allocations: 37.7 kB / 493.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002365/0.3368, allocations: 0.5727 MB / 494 MB, free: 4.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.337, allocations: 252.4 kB / 494.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.51e-05/0.337, allocations: 16 kB / 494.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.197e-05/0.3371, allocations: 349.9 kB / 494.6 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003925/0.3375, allocations: 285.8 kB / 494.9 MB, free: 3.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004687/0.338, allocations: 0.5412 MB / 495.4 MB, free: 2.836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004836/0.3384, allocations: 395 kB / 495.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3385, allocations: 4 kB / 495.8 MB, free: 2.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002291/0.3408, allocations: 1.356 MB / 497.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008274/0.3416, allocations: 3.135 MB / 0.4886 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.3416, allocations: 8 kB / 0.4886 GB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001354/0.343, allocations: 444.4 kB / 0.489 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006224/0.3436, allocations: 171.7 kB / 0.4892 GB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007435/0.3511, allocations: 5.094 MB / 0.4942 GB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006677/0.3517, allocations: 43.97 kB / 0.4942 GB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.943e-05/0.3518, allocations: 36 kB / 0.4942 GB, free: 7.781 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.707e-06/0.3518, allocations: 8 kB / 0.4943 GB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002121/0.354, allocations: 1.144 MB / 0.4954 GB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.354, allocations: 11.95 kB / 0.4954 GB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.3551, allocations: 396.8 kB / 0.4958 GB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005862/0.3557, allocations: 167.7 kB / 0.4959 GB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007754/0.3635, allocations: 4.79 MB / 0.5006 GB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009145/0.3645, allocations: 39.98 kB / 0.5006 GB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.023e-05/0.3646, allocations: 36 kB / 0.5007 GB, free: 1.055 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0009147/0.3655, allocations: 440.7 kB / 0.5011 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002186/0.3657, allocations: 90.88 kB / 0.5012 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001898/0.3676, allocations: 0.8794 MB / 0.502 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.3676, allocations: 8 kB / 0.502 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3677, allocations: 0 / 0.502 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.3677, allocations: 7.984 kB / 0.5021 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003917/0.3716, allocations: 1.861 MB / 0.5039 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.3716, allocations: 0 / 0.5039 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.3727, allocations: 167.8 kB / 0.504 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.468e-05/0.3728, allocations: 4 kB / 0.504 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.118e-05/0.3729, allocations: 23.94 kB / 0.5041 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.895e-06/0.3729, allocations: 4 kB / 0.5041 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.3729, allocations: 4 kB / 0.5041 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002442/0.3753, allocations: 1.318 MB / 0.5054 GB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004533/0.3758, allocations: 223.8 kB / 0.5056 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001709/0.376, allocations: 20 kB / 0.5056 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006634/0.3767, allocations: 27.97 kB / 0.5056 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.972e-05/0.3768, allocations: 40.59 kB / 0.5057 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-05/0.3768, allocations: 24 kB / 0.5057 GB, free: 11.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008202/0.3777, allocations: 0.499 MB / 0.5062 GB, free: 11.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3777, allocations: 4 kB / 0.5062 GB, free: 11.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00226/0.3799, allocations: 464 kB / 0.5066 GB, free: 10.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003132/0.3831, allocations: 2.103 MB / 0.5087 GB, free: 8.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004518/0.3876, allocations: 1.916 MB / 0.5105 GB, free: 6.727 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.3876, allocations: 4 kB / 0.5105 GB, free: 6.723 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007182/0.3884, allocations: 351.5 kB / 0.5109 GB, free: 6.379 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/0.3897, allocations: 229.2 kB / 0.5111 GB, free: 6.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0183/0.408, allocations: 12.31 MB / 0.5231 GB, free: 9.516 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008904/0.409, allocations: 1.232 MB / 0.5243 GB, free: 8.246 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008738/0.4099, allocations: 248 kB / 0.5245 GB, free: 8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005538/0.4104, allocations: 431.3 kB / 0.525 GB, free: 7.582 MB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4104, allocations: 4 kB / 0.525 GB, free: 7.578 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2056/0.616, allocations: 25.73 MB / 0.5501 GB, free: 14.15 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/0.6163, allocations: 222 kB / 0.5503 GB, free: 13.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.046/2.662, allocations: 0 / 0.5503 GB, free: 13.91 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.mat does not exist to compare? outputFormat=mat