Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.001045/0.001046, allocations: 180.4 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.211/1.211, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.000761/0.000761, allocations: 96.17 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1565/0.1565, allocations: 38.06 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003132/0.0003132, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2275, allocations: 56.32 MB / 480.4 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1147/0.3423, allocations: 97.95 MB / 0.5648 GB, free: 4.453 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.3425, allocations: 83.95 kB / 0.5649 GB, free: 4.371 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05588/0.3984, allocations: 24.11 MB / 0.5884 GB, free: 12 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3985, allocations: 0 / 0.5884 GB, free: 12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.88e-05/0.3985, allocations: 12 kB / 0.5884 GB, free: 11.98 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.00125/0.3998, allocations: 0.7025 MB / 0.5891 GB, free: 11.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.3998, allocations: 15.91 kB / 0.5891 GB, free: 11.22 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001378/0.3999, allocations: 90.5 kB / 0.5892 GB, free: 11.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001699/0.4017, allocations: 207.2 kB / 0.5894 GB, free: 10.92 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006725/0.4023, allocations: 378.1 kB / 0.5898 GB, free: 10.51 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.337e-05/0.4024, allocations: 32.98 kB / 0.5898 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.4025, allocations: 40 kB / 0.5899 GB, free: 10.44 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009491/0.4034, allocations: 0.6069 MB / 0.5904 GB, free: 9.805 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/0.4035, allocations: 3.938 kB / 0.5905 GB, free: 9.801 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.103e-05/0.4035, allocations: 27.95 kB / 0.5905 GB, free: 9.773 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001297/0.4037, allocations: 40.95 kB / 0.5905 GB, free: 9.734 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008917/0.4046, allocations: 0.5855 MB / 0.5911 GB, free: 9.148 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003309/0.4079, allocations: 2.28 MB / 0.5933 GB, free: 6.742 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006482/0.4086, allocations: 474.9 kB / 0.5938 GB, free: 6.238 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.4086, allocations: 12 kB / 0.5938 GB, free: 6.227 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.4087, allocations: 38.56 kB / 0.5938 GB, free: 6.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=42): time 2.475e-06/0.4087, allocations: 7.875 kB / 0.5938 GB, free: 6.172 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.00316/0.4118, allocations: 1.667 MB / 0.5955 GB, free: 4.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.4119, allocations: 84.89 kB / 0.5955 GB, free: 4.328 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002426/0.4121, allocations: 246.2 kB / 0.5958 GB, free: 4.082 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.4122, allocations: 29.7 kB / 0.5958 GB, free: 4.047 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.4123, allocations: 228 kB / 0.596 GB, free: 3.816 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.4124, allocations: 145.8 kB / 0.5962 GB, free: 3.672 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.262e-05/0.4125, allocations: 12 kB / 0.5962 GB, free: 3.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.4126, allocations: 354.8 kB / 0.5965 GB, free: 3.305 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.4128, allocations: 173 kB / 0.5967 GB, free: 3.137 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003046/0.4131, allocations: 286.3 kB / 0.5969 GB, free: 2.812 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.4135, allocations: 203.9 kB / 0.5971 GB, free: 2.613 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4135, allocations: 0 / 0.5971 GB, free: 2.613 MB / 426.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001077/0.4145, allocations: 0.6615 MB / 0.5978 GB, free: 1.941 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.4146, allocations: 14.91 kB / 0.5978 GB, free: 1.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.4146, allocations: 4 kB / 0.5978 GB, free: 1.926 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005308/0.4151, allocations: 156.7 kB / 0.5979 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003955/0.4155, allocations: 108 kB / 0.5981 GB, free: 1.664 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003689/0.4192, allocations: 2.565 MB / 0.6006 GB, free: 14.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003684/0.4196, allocations: 27.98 kB / 0.6006 GB, free: 14.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.884e-05/0.4197, allocations: 20 kB / 0.6006 GB, free: 14.93 MB / 442.7 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 (47): * Single equations (assignments): 46 * 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 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003124/0.42, allocations: 201.6 kB / 0.6008 GB, free: 14.72 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.592e-05/0.4201, allocations: 35.62 kB / 0.6008 GB, free: 14.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001356/0.4215, allocations: 0.6216 MB / 0.6014 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.4215, allocations: 4 kB / 0.6014 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.4215, allocations: 0 / 0.6014 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.4215, allocations: 3.984 kB / 0.6014 GB, free: 14.04 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.4242, allocations: 1.332 MB / 0.6027 GB, free: 12.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.4242, allocations: 0 / 0.6027 GB, free: 12.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003865/0.4246, allocations: 88.06 kB / 0.6028 GB, free: 12.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004492/0.425, allocations: 140.5 kB / 0.603 GB, free: 12.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.696e-05/0.4251, allocations: 12 kB / 0.603 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002648/0.4277, allocations: 2.369 MB / 0.6053 GB, free: 9.887 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.4278, allocations: 4 kB / 0.6053 GB, free: 9.883 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.4291, allocations: 0.9698 MB / 0.6062 GB, free: 8.867 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.4292, allocations: 108.7 kB / 0.6063 GB, free: 8.742 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.004e-05/0.4293, allocations: 8 kB / 0.6063 GB, free: 8.734 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.4295, allocations: 16.03 kB / 0.6064 GB, free: 8.719 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.602e-05/0.4296, allocations: 35.91 kB / 0.6064 GB, free: 8.684 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.4296, allocations: 15.98 kB / 0.6064 GB, free: 8.668 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001811/0.4298, allocations: 194 kB / 0.6066 GB, free: 8.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4298, allocations: 0 / 0.6066 GB, free: 8.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006084/0.4304, allocations: 144 kB / 0.6067 GB, free: 8.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * 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 (38): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001658/0.4321, allocations: 1.735 MB / 0.6084 GB, free: 6.551 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.4333, allocations: 0.6657 MB / 0.6091 GB, free: 5.871 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4333, allocations: 0 / 0.6091 GB, free: 5.871 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006529/0.4339, allocations: 419 kB / 0.6095 GB, free: 5.449 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.4343, allocations: 52.53 kB / 0.6095 GB, free: 5.398 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004778/0.4391, allocations: 5.079 MB / 0.6145 GB, free: 204 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004558/0.4396, allocations: 0.8871 MB / 0.6154 GB, free: 15.29 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0002153/0.4398, allocations: 71.22 kB / 0.6154 GB, free: 15.21 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.44, allocations: 147.3 kB / 0.6156 GB, free: 15.07 MB / 458.7 MB Notification: Performance of SimCode: time 2.064e-06/0.44, allocations: 0 / 0.6156 GB, free: 15.07 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02253/0.4626, allocations: 8.864 MB / 0.6242 GB, free: 6.262 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000184/0.4628, allocations: 226 kB / 0.6244 GB, free: 6.008 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.923/2.386, allocations: 0 / 0.6244 GB, free: 6.008 MB / 458.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat does not exist to compare? outputFormat=mat