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.001573/0.001574, 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.726/1.726, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.0008646/0.0008646, allocations: 88.12 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.1962/0.1962, allocations: 37.99 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.036e-05/2.048e-05, allocations: 4 kB / 410.7 MB, free: 46.87 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1255, allocations: 56.33 MB / 467 MB, free: 6.477 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4698/0.5954, allocations: 97.19 MB / 0.551 GB, free: 13.69 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/0.5957, allocations: 84.7 kB / 0.551 GB, free: 13.61 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05944/0.6552, allocations: 23.85 MB / 0.5743 GB, free: 5.508 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.6552, allocations: 0 / 0.5743 GB, free: 5.508 MB / 411.1 MB Notification: Performance of Transformations before backend: time 2.86e-05/0.6553, allocations: 12 kB / 0.5743 GB, free: 5.496 MB / 411.1 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.0012/0.6565, allocations: 0.6675 MB / 0.575 GB, free: 4.785 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.6566, allocations: 11.97 kB / 0.575 GB, free: 4.773 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001708/0.6583, allocations: 215.1 kB / 0.5752 GB, free: 4.562 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000617/0.6589, allocations: 370.5 kB / 0.5756 GB, free: 4.16 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.6589, allocations: 16 kB / 0.5756 GB, free: 4.145 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.045e-05/0.659, allocations: 27.98 kB / 0.5756 GB, free: 4.117 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000699/0.6597, allocations: 430.4 kB / 0.576 GB, free: 3.699 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008259/0.6606, allocations: 0.5425 MB / 0.5765 GB, free: 3.133 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.436e-05/0.6606, allocations: 15.86 kB / 0.5766 GB, free: 3.117 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.107e-05/0.6607, allocations: 0 / 0.5766 GB, free: 3.117 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000136/0.6608, allocations: 49.27 kB / 0.5766 GB, free: 3.07 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003171/0.664, allocations: 2.202 MB / 0.5788 GB, free: 0.7539 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006528/0.6647, allocations: 475.2 kB / 0.5792 GB, free: 256 kB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000299/0.665, allocations: 233.7 kB / 0.5794 GB, free: 16 kB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.571e-05/0.665, allocations: 12 kB / 0.5794 GB, free: 4 kB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.678e-05/0.6651, allocations: 34.56 kB / 0.5795 GB, free: 15.96 MB / 427.1 MB Notification: Performance of pre-optimization done (n=44): time 3.005e-06/0.6651, allocations: 4 kB / 0.5795 GB, free: 15.96 MB / 427.1 MB Notification: Performance of matching and sorting (n=45): time 0.002156/0.6672, allocations: 1.22 MB / 0.5807 GB, free: 14.68 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/0.6673, allocations: 89.11 kB / 0.5808 GB, free: 14.57 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.6675, allocations: 206 kB / 0.581 GB, free: 14.37 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.6676, allocations: 25.7 kB / 0.581 GB, free: 14.34 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.6677, allocations: 220 kB / 0.5812 GB, free: 14.11 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.6678, allocations: 157.6 kB / 0.5813 GB, free: 13.96 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.053e-05/0.6679, allocations: 0 / 0.5813 GB, free: 13.96 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.668, allocations: 346.8 kB / 0.5817 GB, free: 13.61 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.6683, allocations: 173.1 kB / 0.5818 GB, free: 13.44 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003039/0.6686, allocations: 277.6 kB / 0.5821 GB, free: 13.12 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/0.6689, allocations: 217.4 kB / 0.5823 GB, free: 12.91 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.6689, allocations: 4 kB / 0.5823 GB, free: 12.91 MB / 427.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001049/0.6699, allocations: 0.6229 MB / 0.5829 GB, free: 12.28 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.67, allocations: 8 kB / 0.5829 GB, free: 12.27 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.67, allocations: 4 kB / 0.5829 GB, free: 12.27 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005515/0.6705, allocations: 153.5 kB / 0.5831 GB, free: 12.11 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003958/0.6709, allocations: 107.8 kB / 0.5832 GB, free: 12.01 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003176/0.6741, allocations: 2.371 MB / 0.5855 GB, free: 9.527 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002642/0.6744, allocations: 32.02 kB / 0.5855 GB, free: 9.496 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.225e-05/0.6745, allocations: 16 kB / 0.5855 GB, free: 9.48 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedLoad.terminal.i[2]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] 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 (48): * Single equations (assignments): 47 * 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.0002028/0.6747, allocations: 120.3 kB / 0.5857 GB, free: 9.359 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001005/0.6757, allocations: 0.5523 MB / 0.5862 GB, free: 8.797 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.167e-05/0.6758, allocations: 35.61 kB / 0.5862 GB, free: 8.762 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00108/0.6768, allocations: 0.5978 MB / 0.5868 GB, free: 8.152 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.6769, allocations: 8.109 kB / 0.5868 GB, free: 8.145 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.6769, allocations: 11.95 kB / 0.5868 GB, free: 8.133 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.6769, allocations: 0 / 0.5868 GB, free: 8.133 MB / 427.1 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.002161/0.6791, allocations: 1.285 MB / 0.5881 GB, free: 6.781 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.6791, allocations: 4 kB / 0.5881 GB, free: 6.777 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003797/0.6795, allocations: 79.89 kB / 0.5882 GB, free: 6.699 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004272/0.6799, allocations: 136.7 kB / 0.5883 GB, free: 6.562 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.6799, allocations: 3.953 kB / 0.5883 GB, free: 6.559 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002551/0.6825, allocations: 2.212 MB / 0.5905 GB, free: 4.227 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.6825, allocations: 0 / 0.5905 GB, free: 4.227 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.6839, allocations: 0.9585 MB / 0.5914 GB, free: 3.223 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.684, allocations: 112.8 kB / 0.5915 GB, free: 3.094 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.874e-05/0.6841, allocations: 7.953 kB / 0.5915 GB, free: 3.086 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.6843, allocations: 7.984 kB / 0.5915 GB, free: 3.078 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.014e-05/0.6843, allocations: 39.89 kB / 0.5916 GB, free: 3.039 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.656e-05/0.6844, allocations: 12 kB / 0.5916 GB, free: 3.027 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0001508/0.6845, allocations: 162 kB / 0.5917 GB, free: 2.871 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6845, allocations: 0 / 0.5917 GB, free: 2.871 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0006241/0.6852, allocations: 128 kB / 0.5919 GB, free: 2.746 MB / 427.1 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 (40): * Single equations (assignments): 38 * 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.001723/0.6869, allocations: 1.724 MB / 0.5935 GB, free: 0.9727 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.6881, allocations: 0.6532 MB / 0.5942 GB, free: 320 kB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.6881, allocations: 4.062 kB / 0.5942 GB, free: 316 kB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006589/0.6888, allocations: 413.2 kB / 0.5946 GB, free: 15.89 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.6892, allocations: 44.81 kB / 0.5946 GB, free: 15.85 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.691, allocations: 1.01 MB / 0.5956 GB, free: 14.8 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004611/0.6915, allocations: 0.879 MB / 0.5965 GB, free: 13.89 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.000207/0.6917, allocations: 71.23 kB / 0.5965 GB, free: 13.82 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001952/0.6919, allocations: 143.4 kB / 0.5967 GB, free: 13.68 MB / 443.1 MB Notification: Performance of SimCode: time 2.61e-07/0.6919, allocations: 0 / 0.5967 GB, free: 13.68 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02954/0.7215, allocations: 8.3 MB / 0.6048 GB, free: 5.375 MB / 443.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002011/0.7218, allocations: 138.9 kB / 0.6049 GB, free: 5.188 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.193/2.915, allocations: 7.875 kB / 0.6049 GB, free: 5.18 MB / 443.1 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