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.002469/0.002468, allocations: 182.3 kB / 15.76 MB, free: 6.344 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.021/2.021, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001133/0.001133, allocations: 98.83 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2863/0.2863, allocations: 38.05 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000655/0.0006553, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1124, allocations: 56.33 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4848/0.5973, allocations: 97.94 MB / 0.5636 GB, free: 2.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.5976, allocations: 86.58 kB / 0.5636 GB, free: 2.273 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09932/0.697, allocations: 24.11 MB / 0.5872 GB, free: 14.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.6971, allocations: 4 kB / 0.5872 GB, free: 14.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.496e-05/0.6971, allocations: 8 kB / 0.5872 GB, free: 14.44 MB / 394.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.00201/0.6991, allocations: 0.7084 MB / 0.5879 GB, free: 13.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.6992, allocations: 8.031 kB / 0.5879 GB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002491/0.6995, allocations: 90.69 kB / 0.588 GB, free: 13.63 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002907/0.7024, allocations: 210.3 kB / 0.5882 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.7035, allocations: 374.5 kB / 0.5885 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.754e-05/0.7037, allocations: 35.92 kB / 0.5886 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.7038, allocations: 38.94 kB / 0.5886 GB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.7054, allocations: 0.608 MB / 0.5892 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.667e-05/0.7055, allocations: 8 kB / 0.5892 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.625e-05/0.7056, allocations: 22.52 kB / 0.5892 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002645/0.7059, allocations: 52.64 kB / 0.5893 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001778/0.7077, allocations: 0.5802 MB / 0.5898 GB, free: 12.08 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00588/0.7136, allocations: 2.275 MB / 0.5921 GB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.7149, allocations: 488.7 kB / 0.5925 GB, free: 9.715 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.113e-05/0.715, allocations: 12.06 kB / 0.5925 GB, free: 9.703 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.715, allocations: 33.75 kB / 0.5926 GB, free: 9.664 MB / 394.7 MB Notification: Performance of pre-optimization done (n=42): time 3.236e-06/0.715, allocations: 0 / 0.5926 GB, free: 9.664 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.005846/0.7209, allocations: 1.669 MB / 0.5942 GB, free: 8.273 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.932e-05/0.721, allocations: 88.83 kB / 0.5943 GB, free: 8.168 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004319/0.7215, allocations: 248 kB / 0.5945 GB, free: 7.961 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.497e-05/0.7215, allocations: 29.58 kB / 0.5946 GB, free: 7.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001942/0.7217, allocations: 280.9 kB / 0.5948 GB, free: 7.688 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/0.7219, allocations: 148.4 kB / 0.595 GB, free: 7.559 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.103e-05/0.722, allocations: 11.69 kB / 0.595 GB, free: 7.555 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.7222, allocations: 338.5 kB / 0.5953 GB, free: 7.223 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004391/0.7226, allocations: 166.7 kB / 0.5955 GB, free: 7.117 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000541/0.7232, allocations: 279.8 kB / 0.5957 GB, free: 6.867 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005612/0.7237, allocations: 220.2 kB / 0.5959 GB, free: 6.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.7238, allocations: 0 / 0.5959 GB, free: 6.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002026/0.7258, allocations: 0.6428 MB / 0.5966 GB, free: 6.246 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.795e-05/0.7259, allocations: 7.953 kB / 0.5966 GB, free: 6.238 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.7259, allocations: 4 kB / 0.5966 GB, free: 6.234 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009589/0.7268, allocations: 167.3 kB / 0.5967 GB, free: 6.098 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007609/0.7276, allocations: 95.64 kB / 0.5968 GB, free: 6.008 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005518/0.7332, allocations: 2.561 MB / 0.5993 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005613/0.7338, allocations: 33.19 kB / 0.5994 GB, free: 3.734 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.239e-05/0.7338, allocations: 22.06 kB / 0.5994 GB, free: 3.719 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 () * 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.0003874/0.7342, allocations: 200.8 kB / 0.5996 GB, free: 3.547 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.96e-05/0.7343, allocations: 35.62 kB / 0.5996 GB, free: 3.512 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/0.7363, allocations: 0.6165 MB / 0.6002 GB, free: 3.062 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.297e-05/0.7364, allocations: 4 kB / 0.6002 GB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.7364, allocations: 0 / 0.6002 GB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.088e-06/0.7364, allocations: 0 / 0.6002 GB, free: 3.059 MB / 394.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.003779/0.7402, allocations: 1.339 MB / 0.6015 GB, free: 1.941 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/0.7402, allocations: 4.109 kB / 0.6015 GB, free: 1.938 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007368/0.741, allocations: 81.58 kB / 0.6016 GB, free: 1.859 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008149/0.7418, allocations: 148.6 kB / 0.6017 GB, free: 1.734 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.026e-05/0.7419, allocations: 10.62 kB / 0.6017 GB, free: 1.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004784/0.7467, allocations: 2.362 MB / 0.6041 GB, free: 15.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.7467, allocations: 0 / 0.6041 GB, free: 15.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002616/0.7494, allocations: 0.9689 MB / 0.605 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000191/0.7496, allocations: 120.6 kB / 0.6051 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.172e-05/0.7497, allocations: 8 kB / 0.6051 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003854/0.7501, allocations: 19.98 kB / 0.6051 GB, free: 14.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.7502, allocations: 39.89 kB / 0.6052 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-05/0.7503, allocations: 12 kB / 0.6052 GB, free: 14.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003177/0.7506, allocations: 194 kB / 0.6054 GB, free: 14.22 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7506, allocations: 0 / 0.6054 GB, free: 14.22 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008725/0.7515, allocations: 148 kB / 0.6055 GB, free: 14.07 MB / 410.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.002994/0.7545, allocations: 1.724 MB / 0.6072 GB, free: 12.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002097/0.7567, allocations: 0.6657 MB / 0.6079 GB, free: 11.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.7567, allocations: 4 kB / 0.6079 GB, free: 11.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.7579, allocations: 411 kB / 0.6082 GB, free: 11.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005991/0.7586, allocations: 61.08 kB / 0.6083 GB, free: 11.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00832/0.7669, allocations: 5.12 MB / 0.6133 GB, free: 5.895 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000658/0.7676, allocations: 0.891 MB / 0.6142 GB, free: 4.977 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003734/0.768, allocations: 151.3 kB / 0.6143 GB, free: 4.832 MB / 410.7 MB Notification: Performance of SimCode: time 3.116e-06/0.768, allocations: 0 / 0.6143 GB, free: 4.832 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.818/3.586, allocations: 8.689 MB / 0.6228 GB, free: 12.13 MB / 426.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)