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.001387/0.001386, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.732/1.732, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008621/0.0008621, allocations: 86.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1927/0.1927, allocations: 37.98 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.582e-05/4.593e-05, allocations: 4 kB / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1344, allocations: 56.32 MB / 474.1 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4998/0.6343, allocations: 97.86 MB / 0.5586 GB, free: 5.316 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003458/0.6347, allocations: 86.06 kB / 0.5587 GB, free: 5.273 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05692/0.6916, allocations: 23.97 MB / 0.5821 GB, free: 1.578 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6917, allocations: 0 / 0.5821 GB, free: 1.578 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.035e-05/0.6917, allocations: 8 kB / 0.5821 GB, free: 1.57 MB / 378.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.001213/0.693, allocations: 0.6713 MB / 0.5828 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/0.693, allocations: 19.91 kB / 0.5828 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.6932, allocations: 92.06 kB / 0.5829 GB, free: 0.793 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001709/0.6949, allocations: 211.1 kB / 0.5831 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007814/0.6957, allocations: 364.3 kB / 0.5834 GB, free: 240 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.189e-05/0.6957, allocations: 34.44 kB / 0.5834 GB, free: 212 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.537e-05/0.6958, allocations: 48.41 kB / 0.5835 GB, free: 176 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.6969, allocations: 0.5999 MB / 0.5841 GB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.096e-05/0.6969, allocations: 7.891 kB / 0.5841 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.94e-05/0.697, allocations: 22.77 kB / 0.5841 GB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001388/0.6971, allocations: 48.59 kB / 0.5841 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009345/0.6981, allocations: 0.5739 MB / 0.5847 GB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003465/0.7015, allocations: 2.272 MB / 0.5869 GB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000698/0.7023, allocations: 475.2 kB / 0.5874 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003198/0.7026, allocations: 230.5 kB / 0.5876 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.525e-05/0.7027, allocations: 8 kB / 0.5876 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.218e-05/0.7027, allocations: 42.31 kB / 0.5876 GB, free: 12.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=42): time 2.625e-06/0.7027, allocations: 0 / 0.5876 GB, free: 12.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.002343/0.7051, allocations: 1.23 MB / 0.5888 GB, free: 11.67 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.328e-05/0.7051, allocations: 84.8 kB / 0.5889 GB, free: 11.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003074/0.7055, allocations: 242 kB / 0.5892 GB, free: 11.37 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.7055, allocations: 33.27 kB / 0.5892 GB, free: 11.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.7057, allocations: 232 kB / 0.5894 GB, free: 11.15 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.7058, allocations: 154.3 kB / 0.5896 GB, free: 11.02 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.248e-05/0.7059, allocations: 10.69 kB / 0.5896 GB, free: 11.01 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001818/0.7061, allocations: 346.1 kB / 0.5899 GB, free: 10.68 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.7063, allocations: 171.4 kB / 0.5901 GB, free: 10.57 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003406/0.7067, allocations: 270.7 kB / 0.5903 GB, free: 10.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00033/0.707, allocations: 215.2 kB / 0.5905 GB, free: 10.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.707, allocations: 0 / 0.5905 GB, free: 10.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001109/0.7081, allocations: 0.6544 MB / 0.5912 GB, free: 9.668 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.7082, allocations: 8 kB / 0.5912 GB, free: 9.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.7082, allocations: 0 / 0.5912 GB, free: 9.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005526/0.7087, allocations: 166.3 kB / 0.5913 GB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003905/0.7091, allocations: 100 kB / 0.5914 GB, free: 9.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003505/0.7126, allocations: 2.499 MB / 0.5939 GB, free: 7.207 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002998/0.713, allocations: 26.86 kB / 0.5939 GB, free: 7.188 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.144e-05/0.713, allocations: 27.78 kB / 0.5939 GB, free: 7.164 MB / 394.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 () * 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.0001492/0.7132, allocations: 134.9 kB / 0.594 GB, free: 7.039 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.077e-05/0.7133, allocations: 39.53 kB / 0.5941 GB, free: 7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001221/0.7145, allocations: 0.6084 MB / 0.5947 GB, free: 6.555 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.7145, allocations: 7.984 kB / 0.5947 GB, free: 6.547 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.7145, allocations: 0 / 0.5947 GB, free: 6.547 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.7145, allocations: 7.984 kB / 0.5947 GB, free: 6.539 MB / 394.7 MB Warning: The model contains alias variables with conflicting start and/or 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.002186/0.7167, allocations: 1.333 MB / 0.596 GB, free: 5.414 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.7167, allocations: 0 / 0.596 GB, free: 5.414 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003891/0.7171, allocations: 83.7 kB / 0.5961 GB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004322/0.7176, allocations: 136 kB / 0.5962 GB, free: 5.223 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.044e-05/0.7176, allocations: 11 kB / 0.5962 GB, free: 5.219 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002706/0.7203, allocations: 2.292 MB / 0.5985 GB, free: 3.156 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.7204, allocations: 48 / 0.5985 GB, free: 3.156 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.7217, allocations: 0.9614 MB / 0.5994 GB, free: 2.238 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.7219, allocations: 116.7 kB / 0.5995 GB, free: 2.105 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.7219, allocations: 12 kB / 0.5995 GB, free: 2.094 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.7221, allocations: 15.98 kB / 0.5995 GB, free: 2.078 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.319e-05/0.7222, allocations: 35.84 kB / 0.5996 GB, free: 2.043 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.7222, allocations: 16.19 kB / 0.5996 GB, free: 2.027 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002117/0.7225, allocations: 191.1 kB / 0.5998 GB, free: 1.844 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7225, allocations: 3.938 kB / 0.5998 GB, free: 1.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006431/0.7231, allocations: 148 kB / 0.5999 GB, free: 1.695 MB / 394.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 () * 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.001734/0.7249, allocations: 1.705 MB / 0.6016 GB, free: 15.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.7261, allocations: 0.65 MB / 0.6022 GB, free: 15.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7261, allocations: 0 / 0.6022 GB, free: 15.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006699/0.7268, allocations: 418.7 kB / 0.6026 GB, free: 14.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003711/0.7272, allocations: 58.95 kB / 0.6027 GB, free: 14.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.729, allocations: 1.032 MB / 0.6037 GB, free: 13.72 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004792/0.7295, allocations: 0.8793 MB / 0.6045 GB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002071/0.7297, allocations: 71.23 kB / 0.6046 GB, free: 12.74 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002006/0.7299, allocations: 147.4 kB / 0.6047 GB, free: 12.6 MB / 410.7 MB Notification: Performance of SimCode: time 3.4e-07/0.7299, allocations: 0 / 0.6047 GB, free: 12.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02312/0.7531, allocations: 8.885 MB / 0.6134 GB, free: 3.746 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000215/0.7533, allocations: 183.8 kB / 0.6136 GB, free: 3.523 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.244/2.997, allocations: 0 / 0.6136 GB, free: 3.523 MB / 410.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