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.0009884/0.0009884, allocations: 89.64 kB / 16.31 MB, free: 5.551 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.00118/0.00118, allocations: 182.3 kB / 17.21 MB, free: 5.469 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.511/1.511, allocations: 223.2 MB / 241.2 MB, free: 14.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2274/0.2274, allocations: 38.09 MB / 330.4 MB, free: 8.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004785/0.0004789, allocations: 12 kB / 400.2 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.164, allocations: 59.17 MB / 459.3 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01137/0.1754, allocations: 9.371 MB / 468.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00764/0.1831, allocations: 3.434 MB / 472.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001914/0.1851, allocations: 63.62 kB / 472.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00157/0.1867, allocations: 286 kB / 472.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003763/0.1905, allocations: 0.7696 MB / 473.3 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002308/0.1928, allocations: 418.6 kB / 473.7 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004084/0.1969, allocations: 2.014 MB / 475.7 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002188/0.1991, allocations: 0.884 MB / 476.6 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001727/0.2009, allocations: 0.5755 MB / 477.1 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001636/0.2025, allocations: 0.7316 MB / 477.9 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003396/0.2029, allocations: 56 kB / 477.9 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009992/0.2039, allocations: 283.5 kB / 478.2 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006959/0.2046, allocations: 406.8 kB / 478.6 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005543/0.2052, allocations: 261.1 kB / 478.9 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001754/0.2069, allocations: 1.523 MB / 480.4 MB, free: 2.129 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.207, allocations: 0 / 480.4 MB, free: 2.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.207, allocations: 0 / 480.4 MB, free: 2.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.797e-05/0.207, allocations: 4 kB / 480.4 MB, free: 2.125 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.002872/0.2099, allocations: 1.414 MB / 481.8 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.21, allocations: 8.031 kB / 481.8 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000242/0.2102, allocations: 164.8 kB / 482 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007217/0.2109, allocations: 186.2 kB / 482.1 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001617/0.2126, allocations: 0.8907 MB / 483 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.289e-05/0.2127, allocations: 85.97 kB / 483.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002505/0.2129, allocations: 116 kB / 483.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00213/0.2151, allocations: 1.345 MB / 484.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.222e-05/0.2151, allocations: 0 / 484.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-05/0.2152, allocations: 44 kB / 484.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/0.2153, allocations: 69.91 kB / 484.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00187/0.2172, allocations: 1.073 MB / 485.8 MB, free: 12.55 MB / 366.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.007564/0.2248, allocations: 5.158 MB / 490.9 MB, free: 7.152 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.226, allocations: 0.7609 MB / 491.7 MB, free: 6.344 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005307/0.2265, allocations: 340.2 kB / 492 MB, free: 6.004 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.786e-05/0.2266, allocations: 12.55 kB / 492 MB, free: 5.992 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.2267, allocations: 51.02 kB / 492.1 MB, free: 5.934 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.665e-06/0.2267, allocations: 0 / 492.1 MB, free: 5.934 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.00562/0.2323, allocations: 2.698 MB / 494.8 MB, free: 3.141 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.482e-05/0.2324, allocations: 137.1 kB / 494.9 MB, free: 2.977 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.2335, allocations: 0.7431 MB / 495.6 MB, free: 2.223 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.835e-05/0.2335, allocations: 37.7 kB / 495.7 MB, free: 2.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004011/0.2339, allocations: 0.5573 MB / 496.2 MB, free: 1.613 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/0.2342, allocations: 252.4 kB / 496.5 MB, free: 1.363 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.133e-05/0.2342, allocations: 20 kB / 496.5 MB, free: 1.344 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.2344, allocations: 349.9 kB / 496.9 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004735/0.2348, allocations: 289.8 kB / 497.1 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006524/0.2355, allocations: 0.5451 MB / 497.7 MB, free: 56 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006698/0.2362, allocations: 391.1 kB / 498.1 MB, free: 15.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.2362, allocations: 4 kB / 498.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002799/0.239, allocations: 1.36 MB / 499.4 MB, free: 14.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003502/0.2394, allocations: 333.7 kB / 499.8 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/0.2394, allocations: 8 kB / 499.8 MB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001498/0.2409, allocations: 432.5 kB / 0.4885 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000695/0.2416, allocations: 175.7 kB / 0.4886 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008018/0.2497, allocations: 4.929 MB / 0.4934 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008725/0.2506, allocations: 51.88 kB / 0.4935 GB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.104e-05/0.2506, allocations: 32 kB / 0.4935 GB, free: 8.113 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.2507, allocations: 7.938 kB / 0.4935 GB, free: 8.105 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002327/0.253, allocations: 1.148 MB / 0.4946 GB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.253, allocations: 8 kB / 0.4947 GB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001173/0.2542, allocations: 400.8 kB / 0.495 GB, free: 6.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006197/0.2548, allocations: 163.7 kB / 0.4952 GB, free: 6.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006831/0.2617, allocations: 4.627 MB / 0.4997 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007711/0.2625, allocations: 35.98 kB / 0.4997 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.025e-05/0.2625, allocations: 36 kB / 0.4998 GB, free: 1.551 MB / 382.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.0007566/0.2633, allocations: 432.7 kB / 0.5002 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.2635, allocations: 98.86 kB / 0.5003 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001434/0.2649, allocations: 0.8793 MB / 0.5011 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.265, allocations: 12 kB / 0.5012 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.265, allocations: 0 / 0.5012 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.265, allocations: 11.94 kB / 0.5012 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2468/0.5118, allocations: 1.844 MB / 0.503 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.5118, allocations: 6.062 kB / 0.503 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008604/0.5127, allocations: 164.3 kB / 0.5031 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.198e-05/0.5127, allocations: 6.062 kB / 0.5031 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.274e-05/0.5128, allocations: 20.66 kB / 0.5032 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.515e-06/0.5128, allocations: 7.984 kB / 0.5032 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.5128, allocations: 5.469 kB / 0.5032 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001915/0.5147, allocations: 1.274 MB / 0.5044 GB, free: 53.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003424/0.5151, allocations: 229.5 kB / 0.5046 GB, free: 53.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.5152, allocations: 18.53 kB / 0.5047 GB, free: 53.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004321/0.5156, allocations: 29.36 kB / 0.5047 GB, free: 53.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.912e-05/0.5157, allocations: 46.91 kB / 0.5047 GB, free: 53.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.632e-05/0.5158, allocations: 18.27 kB / 0.5047 GB, free: 53.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007212/0.5165, allocations: 0.5031 MB / 0.5052 GB, free: 52.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5165, allocations: 1.875 kB / 0.5052 GB, free: 52.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001759/0.5183, allocations: 465.5 kB / 0.5057 GB, free: 52.93 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.002418/0.5207, allocations: 1.866 MB / 0.5075 GB, free: 51.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003795/0.5246, allocations: 1.906 MB / 0.5094 GB, free: 51.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.5246, allocations: 1.188 kB / 0.5094 GB, free: 51.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005776/0.5252, allocations: 356.6 kB / 0.5097 GB, free: 50.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/0.5266, allocations: 233.7 kB / 0.5099 GB, free: 50.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/0.5391, allocations: 7.08 MB / 0.5168 GB, free: 47.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008975/0.5401, allocations: 1.21 MB / 0.518 GB, free: 46.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001027/0.5411, allocations: 247.5 kB / 0.5183 GB, free: 46.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005485/0.5417, allocations: 434.1 kB / 0.5187 GB, free: 46.1 MB / 382.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5417, allocations: 2.406 kB / 0.5187 GB, free: 46.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0451/0.5868, allocations: 25.75 MB / 0.5438 GB, free: 26.46 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000139/0.587, allocations: 234.3 kB / 0.544 GB, free: 26.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.397/2.984, allocations: 3.938 kB / 0.544 GB, free: 26.22 MB / 382.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