Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_cpp_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.002256/0.002256, allocations: 184.6 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.131/2.131, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.001097/0.001097, allocations: 97.27 kB / 267.1 MB, free: 9.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2877/0.2877, allocations: 37.96 MB / 353.1 MB, free: 3.082 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.479e-05/3.509e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1071, allocations: 56.31 MB / 473.2 MB, free: 0.832 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4724/0.5796, allocations: 97.86 MB / 0.5577 GB, free: 5.816 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003343/0.58, allocations: 83.95 kB / 0.5578 GB, free: 5.734 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1031/0.683, allocations: 23.97 MB / 0.5812 GB, free: 13.52 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.6831, allocations: 0 / 0.5812 GB, free: 13.52 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.352e-05/0.6831, allocations: 8 kB / 0.5812 GB, free: 13.51 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.001698/0.6848, allocations: 0.6708 MB / 0.5818 GB, free: 12.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.075e-05/0.685, allocations: 8.031 kB / 0.5818 GB, free: 12.79 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002012/0.6852, allocations: 86.47 kB / 0.5819 GB, free: 12.69 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002791/0.688, allocations: 219.1 kB / 0.5821 GB, free: 12.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/0.6892, allocations: 370.2 kB / 0.5825 GB, free: 12.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.438e-05/0.6893, allocations: 37 kB / 0.5825 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001483/0.6895, allocations: 40 kB / 0.5826 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.6911, allocations: 0.6069 MB / 0.5832 GB, free: 11.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.796e-05/0.6912, allocations: 3.906 kB / 0.5832 GB, free: 11.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.686e-05/0.6913, allocations: 19.95 kB / 0.5832 GB, free: 11.34 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002518/0.6916, allocations: 48.95 kB / 0.5832 GB, free: 11.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00178/0.6934, allocations: 0.5777 MB / 0.5838 GB, free: 10.71 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005884/0.6993, allocations: 2.269 MB / 0.586 GB, free: 8.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.7005, allocations: 481.7 kB / 0.5865 GB, free: 7.812 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006055/0.7011, allocations: 230.6 kB / 0.5867 GB, free: 7.582 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.029e-05/0.7012, allocations: 11.94 kB / 0.5867 GB, free: 7.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.136e-05/0.7013, allocations: 38.56 kB / 0.5867 GB, free: 7.523 MB / 426.7 MB Notification: Performance of pre-optimization done (n=42): time 3.266e-06/0.7013, allocations: 0 / 0.5867 GB, free: 7.523 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.003682/0.705, allocations: 1.231 MB / 0.5879 GB, free: 6.234 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.308e-05/0.7051, allocations: 81.11 kB / 0.588 GB, free: 6.137 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004416/0.7056, allocations: 243.4 kB / 0.5882 GB, free: 5.895 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.221e-05/0.7057, allocations: 33.7 kB / 0.5883 GB, free: 5.855 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002019/0.7059, allocations: 282.4 kB / 0.5885 GB, free: 5.578 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/0.7061, allocations: 161.7 kB / 0.5887 GB, free: 5.418 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.7061, allocations: 4 kB / 0.5887 GB, free: 5.414 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.7063, allocations: 326.8 kB / 0.589 GB, free: 5.086 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004736/0.7068, allocations: 177.1 kB / 0.5892 GB, free: 4.914 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000556/0.7074, allocations: 271.3 kB / 0.5894 GB, free: 4.602 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005764/0.7079, allocations: 211.8 kB / 0.5896 GB, free: 4.395 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.708, allocations: 4 kB / 0.5896 GB, free: 4.391 MB / 426.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002043/0.71, allocations: 0.6343 MB / 0.5903 GB, free: 3.746 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.7101, allocations: 7.906 kB / 0.5903 GB, free: 3.738 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.7101, allocations: 4 kB / 0.5903 GB, free: 3.734 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009569/0.7111, allocations: 164.9 kB / 0.5904 GB, free: 3.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007871/0.7119, allocations: 95.88 kB / 0.5905 GB, free: 3.477 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005698/0.7176, allocations: 2.506 MB / 0.593 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005778/0.7183, allocations: 23.98 kB / 0.593 GB, free: 0.8125 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.057e-05/0.7183, allocations: 19.98 kB / 0.593 GB, free: 0.793 MB / 426.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.0001953/0.7185, allocations: 138.7 kB / 0.5931 GB, free: 0.6523 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.7187, allocations: 35.72 kB / 0.5932 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002052/0.7207, allocations: 0.6176 MB / 0.5938 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/0.7208, allocations: 8 kB / 0.5938 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.7208, allocations: 0 / 0.5938 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.7208, allocations: 3.984 kB / 0.5938 GB, free: 15.97 MB / 442.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.003957/0.7248, allocations: 1.331 MB / 0.5951 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/0.7248, allocations: 0 / 0.5951 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008247/0.7257, allocations: 83.95 kB / 0.5952 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008133/0.7265, allocations: 132.7 kB / 0.5953 GB, free: 14.35 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.521e-05/0.7266, allocations: 12 kB / 0.5953 GB, free: 14.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004626/0.7313, allocations: 2.308 MB / 0.5976 GB, free: 11.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.7313, allocations: 3.938 kB / 0.5976 GB, free: 11.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/0.7339, allocations: 0.9536 MB / 0.5985 GB, free: 10.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/0.7342, allocations: 116.6 kB / 0.5986 GB, free: 10.76 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.993e-05/0.7343, allocations: 12 kB / 0.5986 GB, free: 10.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.7347, allocations: 11.98 kB / 0.5986 GB, free: 10.74 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.7348, allocations: 35.91 kB / 0.5987 GB, free: 10.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.7349, allocations: 12 kB / 0.5987 GB, free: 10.69 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000328/0.7352, allocations: 195.1 kB / 0.5989 GB, free: 10.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7353, allocations: 0 / 0.5989 GB, free: 10.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009369/0.7362, allocations: 144 kB / 0.599 GB, free: 10.36 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 () * 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.00301/0.7392, allocations: 1.717 MB / 0.6007 GB, free: 8.598 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002163/0.7415, allocations: 0.6501 MB / 0.6013 GB, free: 7.93 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.7415, allocations: 0 / 0.6013 GB, free: 7.93 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.7428, allocations: 414.8 kB / 0.6017 GB, free: 7.512 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006357/0.7434, allocations: 52.98 kB / 0.6018 GB, free: 7.461 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003286/0.7468, allocations: 1.081 MB / 0.6028 GB, free: 6.324 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006679/0.7475, allocations: 0.8871 MB / 0.6037 GB, free: 5.406 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003875/0.7479, allocations: 143.4 kB / 0.6038 GB, free: 5.27 MB / 442.7 MB Notification: Performance of SimCode: time 1.443e-06/0.7479, allocations: 0 / 0.6038 GB, free: 5.27 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.872/3.62, allocations: 8.784 MB / 0.6124 GB, free: 12.48 MB / 458.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)