Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.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.PQsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource",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.0009746/0.0009746, allocations: 87.52 kB / 16.32 MB, free: 6.457 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.001214/0.001214, allocations: 186.7 kB / 17.21 MB, free: 6.324 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.401/1.401, allocations: 223.3 MB / 241.2 MB, free: 348 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2336/0.2336, allocations: 38.09 MB / 330.4 MB, free: 8.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000346/0.000346, allocations: 8 kB / 400.2 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.139, allocations: 59.17 MB / 459.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.005159/0.1442, allocations: 4.587 MB / 463.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002367/0.1466, allocations: 1.411 MB / 465.3 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002727/0.1469, allocations: 23.88 kB / 465.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003291/0.1472, allocations: 95.28 kB / 465.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007134/0.1479, allocations: 274.7 kB / 465.7 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.1484, allocations: 167.7 kB / 465.9 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007224/0.1492, allocations: 0.666 MB / 466.6 MB, free: 92 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008764/0.1501, allocations: 0.5231 MB / 467.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003349/0.1504, allocations: 219 kB / 467.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004486/0.1509, allocations: 271.2 kB / 467.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.744e-05/0.1509, allocations: 16 kB / 467.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.1511, allocations: 83.81 kB / 467.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000182/0.1513, allocations: 183.5 kB / 467.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.1515, allocations: 101.5 kB / 467.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004024/0.1519, allocations: 395 kB / 468.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1519, allocations: 0 / 468.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1519, allocations: 0 / 468.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.1519, allocations: 4 kB / 468.3 MB, free: 14.29 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.0009832/0.1529, allocations: 0.6249 MB / 468.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.1529, allocations: 12.03 kB / 469 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.333e-05/0.153, allocations: 78.53 kB / 469 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005259/0.1536, allocations: 83.38 kB / 469.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005835/0.1542, allocations: 386.1 kB / 469.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.1542, allocations: 24.95 kB / 469.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.1543, allocations: 40 kB / 469.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000699/0.155, allocations: 480.8 kB / 470 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.1551, allocations: 4 kB / 470 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.1551, allocations: 12 kB / 470 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.454e-05/0.1552, allocations: 28.97 kB / 470.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000556/0.1558, allocations: 351.7 kB / 470.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002108/0.1579, allocations: 1.729 MB / 472.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.1582, allocations: 153.1 kB / 472.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.1583, allocations: 113.7 kB / 472.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.1584, allocations: 7.938 kB / 472.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.1584, allocations: 34.5 kB / 472.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.823e-06/0.1584, allocations: 0 / 472.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001487/0.1599, allocations: 0.8877 MB / 473.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.876e-05/0.16, allocations: 77.11 kB / 473.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003376/0.1603, allocations: 316.4 kB / 473.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1604, allocations: 29.7 kB / 473.7 MB, free: 8.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.1605, allocations: 255.4 kB / 474 MB, free: 8.211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.092e-05/0.1606, allocations: 59.11 kB / 474.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.44e-05/0.1606, allocations: 8 kB / 474.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.1608, allocations: 342.9 kB / 474.4 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.161, allocations: 96.22 kB / 474.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.1612, allocations: 201.2 kB / 474.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002032/0.1614, allocations: 138.9 kB / 474.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.1615, allocations: 4 kB / 474.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008616/0.1623, allocations: 472 kB / 475.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.1624, allocations: 8 kB / 475.3 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006039/0.163, allocations: 307.5 kB / 475.6 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00046/0.1634, allocations: 140.7 kB / 475.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/0.1637, allocations: 51.91 kB / 475.8 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002671/0.1663, allocations: 2.209 MB / 478 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.1666, allocations: 8 kB / 478 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.1666, allocations: 15.98 kB / 478 MB, free: 3.988 MB / 350.1 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002615/0.1669, allocations: 197.7 kB / 478.2 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.284e-05/0.1669, allocations: 27.62 kB / 478.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004546/0.1674, allocations: 261.4 kB / 478.5 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.1674, allocations: 4 kB / 478.5 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.1674, allocations: 0 / 478.5 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1674, allocations: 0 / 478.5 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.1685, allocations: 0.7382 MB / 479.2 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.1685, allocations: 4 kB / 479.2 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.1688, allocations: 43.91 kB / 479.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.829e-05/0.1689, allocations: 32.83 kB / 479.3 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.1689, allocations: 8 kB / 479.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1689, allocations: 3.938 kB / 479.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.1689, allocations: 12.02 kB / 479.3 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006068/0.1695, allocations: 440.7 kB / 479.8 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.094e-05/0.1696, allocations: 104.7 kB / 479.9 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.997e-05/0.1697, allocations: 15.98 kB / 479.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.1698, allocations: 8 kB / 479.9 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.336e-05/0.1699, allocations: 11.98 kB / 479.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.1699, allocations: 8 kB / 479.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001995/0.1701, allocations: 219 kB / 480.1 MB, free: 1.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1701, allocations: 0 / 480.1 MB, free: 1.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005437/0.1706, allocations: 84 kB / 480.2 MB, free: 1.664 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007694/0.1714, allocations: 0.9769 MB / 481.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006549/0.1721, allocations: 406.7 kB / 481.6 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.1721, allocations: 0 / 481.6 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.1723, allocations: 181.8 kB / 481.8 MB, free: 40 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004574/0.1728, allocations: 69.67 kB / 481.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003189/0.176, allocations: 2.389 MB / 484.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/0.1764, allocations: 0.8457 MB / 485.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002015/0.1767, allocations: 58.92 kB / 485.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.1768, allocations: 123.4 kB / 485.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1768, allocations: 0 / 485.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02061/0.1975, allocations: 6.895 MB / 492.1 MB, free: 5.734 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/0.1977, allocations: 214.9 kB / 492.3 MB, free: 5.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.981/2.178, allocations: 0 / 492.3 MB, free: 5.5 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource_res.mat does not exist to compare? outputFormat=mat