Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001109/0.001109, allocations: 178.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.329/1.329, allocations: 194.5 MB / 211.6 MB, free: 2.973 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001621/0.001622, allocations: 116.7 kB / 256.9 MB, free: 4.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1704/0.1704, allocations: 37.99 MB / 340.1 MB, free: 1.34 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003597, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09616/0.09653, allocations: 53.23 MB / 457.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3835/0.4801, allocations: 92.89 MB / 0.5371 GB, free: 2.867 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.4804, allocations: 90.38 kB / 0.5372 GB, free: 2.816 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0573/0.5377, allocations: 24.03 MB / 0.5607 GB, free: 15.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.5378, allocations: 0 / 0.5607 GB, free: 15.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.861e-05/0.5378, allocations: 12 kB / 0.5607 GB, free: 15.04 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.001268/0.5391, allocations: 0.7003 MB / 0.5614 GB, free: 14.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.5391, allocations: 12.02 kB / 0.5614 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001175/0.5393, allocations: 87.02 kB / 0.5615 GB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001596/0.5409, allocations: 219.2 kB / 0.5617 GB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000648/0.5415, allocations: 365.8 kB / 0.562 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.321e-05/0.5416, allocations: 30.31 kB / 0.562 GB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.434e-05/0.5417, allocations: 49.84 kB / 0.5621 GB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009409/0.5426, allocations: 0.6141 MB / 0.5627 GB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.5426, allocations: 4 kB / 0.5627 GB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.68e-05/0.5427, allocations: 15.06 kB / 0.5627 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001594/0.5429, allocations: 52.83 kB / 0.5628 GB, free: 13.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008679/0.5437, allocations: 0.5804 MB / 0.5633 GB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003218/0.547, allocations: 2.268 MB / 0.5655 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006696/0.5477, allocations: 495.2 kB / 0.566 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.958e-05/0.5477, allocations: 7.938 kB / 0.566 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.529e-05/0.5478, allocations: 34.5 kB / 0.566 GB, free: 10.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 3.436e-06/0.5478, allocations: 0 / 0.566 GB, free: 10.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.003223/0.551, allocations: 1.661 MB / 0.5677 GB, free: 8.906 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.5511, allocations: 81.11 kB / 0.5677 GB, free: 8.809 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002709/0.5513, allocations: 246.9 kB / 0.568 GB, free: 8.605 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.5514, allocations: 32.95 kB / 0.568 GB, free: 8.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.5516, allocations: 227.2 kB / 0.5682 GB, free: 8.383 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.5517, allocations: 160.4 kB / 0.5684 GB, free: 8.246 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.989e-05/0.5517, allocations: 6.688 kB / 0.5684 GB, free: 8.246 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.5519, allocations: 346.1 kB / 0.5687 GB, free: 7.914 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002429/0.5521, allocations: 172.5 kB / 0.5689 GB, free: 7.801 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003346/0.5525, allocations: 287.8 kB / 0.5692 GB, free: 7.539 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003284/0.5528, allocations: 208.1 kB / 0.5694 GB, free: 7.414 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.5528, allocations: 4 kB / 0.5694 GB, free: 7.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001081/0.5539, allocations: 0.6593 MB / 0.57 GB, free: 6.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.554, allocations: 8 kB / 0.57 GB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.554, allocations: 4 kB / 0.57 GB, free: 6.898 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005687/0.5545, allocations: 159.3 kB / 0.5702 GB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004662/0.555, allocations: 98.88 kB / 0.5703 GB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003469/0.5585, allocations: 2.585 MB / 0.5728 GB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002888/0.5588, allocations: 22.61 kB / 0.5728 GB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/0.5589, allocations: 22.62 kB / 0.5728 GB, free: 4.379 MB / 378.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.000254/0.5591, allocations: 196.5 kB / 0.573 GB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.34e-05/0.5592, allocations: 31.62 kB / 0.573 GB, free: 4.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.5603, allocations: 0.6227 MB / 0.5737 GB, free: 3.727 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.5603, allocations: 4 kB / 0.5737 GB, free: 3.723 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.5603, allocations: 0 / 0.5737 GB, free: 3.723 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.5603, allocations: 7.984 kB / 0.5737 GB, free: 3.715 MB / 378.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.002152/0.5625, allocations: 1.344 MB / 0.575 GB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.5625, allocations: 4 kB / 0.575 GB, free: 2.586 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003744/0.5629, allocations: 78.08 kB / 0.5751 GB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004373/0.5633, allocations: 128.1 kB / 0.5752 GB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.44e-05/0.5634, allocations: 10 kB / 0.5752 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002844/0.5662, allocations: 2.38 MB / 0.5775 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5662, allocations: 0 / 0.5775 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.5676, allocations: 0.9615 MB / 0.5785 GB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.5677, allocations: 116.7 kB / 0.5786 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.028e-05/0.5678, allocations: 19.98 kB / 0.5786 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.568, allocations: 8 kB / 0.5786 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.605e-05/0.5681, allocations: 36.06 kB / 0.5786 GB, free: 14.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.821e-05/0.5681, allocations: 15.92 kB / 0.5786 GB, free: 14.74 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001987/0.5683, allocations: 194 kB / 0.5788 GB, free: 14.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5683, allocations: 4 kB / 0.5788 GB, free: 14.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000637/0.569, allocations: 152 kB / 0.579 GB, free: 14.39 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 () * 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.001757/0.5707, allocations: 1.724 MB / 0.5807 GB, free: 12.62 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.572, allocations: 0.6577 MB / 0.5813 GB, free: 11.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.572, allocations: 0 / 0.5813 GB, free: 11.95 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006716/0.5727, allocations: 432.2 kB / 0.5817 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.5731, allocations: 56.52 kB / 0.5818 GB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005204/0.5783, allocations: 5.081 MB / 0.5867 GB, free: 6.258 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005596/0.5789, allocations: 0.8871 MB / 0.5876 GB, free: 5.348 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002136/0.5791, allocations: 71.17 kB / 0.5877 GB, free: 5.277 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002144/0.5793, allocations: 147.4 kB / 0.5878 GB, free: 5.133 MB / 394.7 MB Notification: Performance of SimCode: time 7.12e-07/0.5793, allocations: 0 / 0.5878 GB, free: 5.133 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.6038, allocations: 8.835 MB / 0.5964 GB, free: 12.3 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002729/0.6041, allocations: 225.7 kB / 0.5966 GB, free: 12.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.059/2.663, allocations: 0 / 0.5966 GB, free: 12.04 MB / 410.7 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)