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/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: "" <> 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/Complex 3.2.3+maint.om/package.mo): time 0.00105/0.00105, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.738/1.738, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009572/0.0009575, allocations: 88.31 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1979/0.1979, allocations: 37.99 MB / 348.1 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.604e-05/1.605e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1315, allocations: 56.33 MB / 467 MB, free: 6.461 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4379/0.5695, allocations: 95.63 MB / 0.5494 GB, free: 15.14 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/0.5698, allocations: 87.94 kB / 0.5495 GB, free: 15.06 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03552/0.6054, allocations: 12.41 MB / 0.5617 GB, free: 2.504 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6054, allocations: 0 / 0.5617 GB, free: 2.504 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.694e-05/0.6055, allocations: 12 kB / 0.5617 GB, free: 2.492 MB / 395.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.001022/0.6065, allocations: 0.6171 MB / 0.5623 GB, free: 1.828 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.6066, allocations: 12.03 kB / 0.5623 GB, free: 1.816 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006179/0.6072, allocations: 87.38 kB / 0.5624 GB, free: 1.73 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002204/0.6094, allocations: 0.8526 MB / 0.5632 GB, free: 0.8359 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.6095, allocations: 12 kB / 0.5632 GB, free: 0.8242 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.095e-05/0.6095, allocations: 24 kB / 0.5632 GB, free: 0.8008 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005076/0.61, allocations: 281.4 kB / 0.5635 GB, free: 0.5234 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006213/0.6107, allocations: 409 kB / 0.5639 GB, free: 104 kB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.6107, allocations: 3.953 kB / 0.5639 GB, free: 100 kB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.157e-05/0.6107, allocations: 0 / 0.5639 GB, free: 100 kB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.898e-05/0.6108, allocations: 28.77 kB / 0.5639 GB, free: 68 kB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002182/0.613, allocations: 1.638 MB / 0.5655 GB, free: 14.32 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000302/0.6133, allocations: 145.1 kB / 0.5657 GB, free: 14.16 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.6135, allocations: 105.7 kB / 0.5658 GB, free: 14.05 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.6135, allocations: 4 kB / 0.5658 GB, free: 14.05 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/0.6135, allocations: 38.56 kB / 0.5658 GB, free: 14 MB / 411.1 MB Notification: Performance of pre-optimization done (n=16): time 2.996e-06/0.6136, allocations: 0.5625 kB / 0.5658 GB, free: 14 MB / 411.1 MB Notification: Performance of matching and sorting (n=17): time 0.001161/0.6147, allocations: 0.6794 MB / 0.5665 GB, free: 13.27 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.6148, allocations: 81.05 kB / 0.5665 GB, free: 13.17 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/0.6151, allocations: 238.2 kB / 0.5668 GB, free: 12.93 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.6151, allocations: 29.7 kB / 0.5668 GB, free: 12.9 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/0.6153, allocations: 255.7 kB / 0.567 GB, free: 12.64 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.69e-05/0.6154, allocations: 63.05 kB / 0.5671 GB, free: 12.58 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.245e-05/0.6154, allocations: 4.031 kB / 0.5671 GB, free: 12.58 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.6156, allocations: 346.8 kB / 0.5674 GB, free: 12.23 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.6157, allocations: 88.25 kB / 0.5675 GB, free: 12.14 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.6159, allocations: 189 kB / 0.5677 GB, free: 11.91 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000193/0.6161, allocations: 124.9 kB / 0.5678 GB, free: 11.79 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.6161, allocations: 4 kB / 0.5678 GB, free: 11.79 MB / 411.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008185/0.617, allocations: 436.3 kB / 0.5682 GB, free: 11.35 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.617, allocations: 4 kB / 0.5682 GB, free: 11.35 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005691/0.6176, allocations: 282.2 kB / 0.5685 GB, free: 11.07 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004823/0.6181, allocations: 136.9 kB / 0.5686 GB, free: 10.93 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.6183, allocations: 55.91 kB / 0.5687 GB, free: 10.88 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002604/0.6209, allocations: 2.079 MB / 0.5707 GB, free: 8.68 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002029/0.6211, allocations: 11.94 kB / 0.5707 GB, free: 8.668 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.202e-05/0.6211, allocations: 12 kB / 0.5707 GB, free: 8.656 MB / 411.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 () * 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.0001765/0.6213, allocations: 120.9 kB / 0.5709 GB, free: 8.531 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004131/0.6217, allocations: 234 kB / 0.5711 GB, free: 8.293 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.23e-05/0.6218, allocations: 27.62 kB / 0.5711 GB, free: 8.266 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004527/0.6223, allocations: 244 kB / 0.5713 GB, free: 8.02 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.6223, allocations: 4 kB / 0.5713 GB, free: 8.016 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.6223, allocations: 0 / 0.5713 GB, free: 8.016 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.6223, allocations: 8.031 kB / 0.5714 GB, free: 8.008 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.6235, allocations: 0.6691 MB / 0.572 GB, free: 7.285 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.331e-06/0.6236, allocations: 4 kB / 0.572 GB, free: 7.281 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002064/0.6238, allocations: 43.97 kB / 0.5721 GB, free: 7.238 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001067/0.6239, allocations: 36.83 kB / 0.5721 GB, free: 7.199 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.6239, allocations: 8.062 kB / 0.5721 GB, free: 7.191 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.6239, allocations: 0 / 0.5721 GB, free: 7.191 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.6239, allocations: 0 / 0.5721 GB, free: 7.191 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005916/0.6245, allocations: 459.6 kB / 0.5725 GB, free: 6.695 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.692e-05/0.6246, allocations: 108.7 kB / 0.5726 GB, free: 6.57 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/0.6247, allocations: 0 / 0.5726 GB, free: 6.57 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.6248, allocations: 7.984 kB / 0.5726 GB, free: 6.562 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.609e-05/0.6249, allocations: 11.98 kB / 0.5727 GB, free: 6.551 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.6249, allocations: 4 kB / 0.5727 GB, free: 6.547 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002158/0.6251, allocations: 196.6 kB / 0.5728 GB, free: 6.355 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6251, allocations: 4 kB / 0.5729 GB, free: 6.352 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0005238/0.6256, allocations: 80 kB / 0.5729 GB, free: 6.273 MB / 411.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 () * 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.001134/0.6268, allocations: 1.221 MB / 0.5741 GB, free: 5.004 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0007025/0.6275, allocations: 369.4 kB / 0.5745 GB, free: 4.633 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.6275, allocations: 0 / 0.5745 GB, free: 4.633 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002129/0.6277, allocations: 178.9 kB / 0.5746 GB, free: 4.438 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.6282, allocations: 64.66 kB / 0.5747 GB, free: 4.371 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.6297, allocations: 0.7503 MB / 0.5754 GB, free: 3.574 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.6301, allocations: 0.8536 MB / 0.5763 GB, free: 2.695 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001951/0.6303, allocations: 63.23 kB / 0.5763 GB, free: 2.633 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.6305, allocations: 123.4 kB / 0.5765 GB, free: 2.512 MB / 411.1 MB Notification: Performance of SimCode: time 4.01e-07/0.6305, allocations: 0 / 0.5765 GB, free: 2.512 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02881/0.6593, allocations: 6.273 MB / 0.5826 GB, free: 12.25 MB / 427.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002117/0.6596, allocations: 148.5 kB / 0.5827 GB, free: 12.05 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.132/2.792, allocations: 0 / 0.5827 GB, free: 12.05 MB / 427.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) 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