Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.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.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PQsource",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.002187/0.002187, allocations: 185.7 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.067/2.067, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 90.31 kB / 261.8 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2701/0.2701, allocations: 38 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.615e-05/2.609e-05, allocations: 4 kB / 410 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1488, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4906/0.6394, allocations: 95.64 MB / 0.5487 GB, free: 10.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/0.6397, allocations: 84.52 kB / 0.5488 GB, free: 10.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06557/0.7053, allocations: 12.41 MB / 0.5609 GB, free: 4.109 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.7054, allocations: 0 / 0.5609 GB, free: 4.109 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.147e-05/0.7054, allocations: 8 kB / 0.561 GB, free: 4.102 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001694/0.7071, allocations: 0.6235 MB / 0.5616 GB, free: 3.461 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.679e-05/0.7072, allocations: 8.031 kB / 0.5616 GB, free: 3.453 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001226/0.7085, allocations: 87.38 kB / 0.5617 GB, free: 3.367 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004278/0.7128, allocations: 0.8572 MB / 0.5625 GB, free: 2.629 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.01e-05/0.7129, allocations: 16 kB / 0.5625 GB, free: 2.613 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.713, allocations: 20 kB / 0.5625 GB, free: 2.594 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001/0.714, allocations: 279.5 kB / 0.5628 GB, free: 2.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.7153, allocations: 413.9 kB / 0.5632 GB, free: 2.082 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.506e-05/0.7153, allocations: 3.953 kB / 0.5632 GB, free: 2.078 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.917e-05/0.7154, allocations: 0 / 0.5632 GB, free: 2.078 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.67e-05/0.7155, allocations: 27.72 kB / 0.5632 GB, free: 2.051 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003745/0.7192, allocations: 1.636 MB / 0.5648 GB, free: 0.5508 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004128/0.7197, allocations: 139 kB / 0.5649 GB, free: 444 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002521/0.72, allocations: 105.6 kB / 0.565 GB, free: 364 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.72, allocations: 4 kB / 0.5651 GB, free: 360 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.7201, allocations: 37.62 kB / 0.5651 GB, free: 316 kB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 5.751e-06/0.7201, allocations: 0 / 0.5651 GB, free: 316 kB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.002075/0.7222, allocations: 0.6714 MB / 0.5657 GB, free: 15.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/0.7223, allocations: 77.67 kB / 0.5658 GB, free: 15.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000493/0.7228, allocations: 244.1 kB / 0.5661 GB, free: 15.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.7228, allocations: 29.7 kB / 0.5661 GB, free: 15.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002715/0.7231, allocations: 307.4 kB / 0.5664 GB, free: 15.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.7233, allocations: 66.31 kB / 0.5664 GB, free: 15.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.438e-05/0.7233, allocations: 3.938 kB / 0.5664 GB, free: 15.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.7235, allocations: 333.7 kB / 0.5668 GB, free: 14.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002902/0.7238, allocations: 85.62 kB / 0.5668 GB, free: 14.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003996/0.7242, allocations: 188.9 kB / 0.567 GB, free: 14.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000392/0.7246, allocations: 132.4 kB / 0.5671 GB, free: 14.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.7247, allocations: 0 / 0.5671 GB, free: 14.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001792/0.7265, allocations: 420.9 kB / 0.5675 GB, free: 14.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.366e-05/0.7265, allocations: 4 kB / 0.5676 GB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001209/0.7278, allocations: 287.6 kB / 0.5678 GB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.7288, allocations: 136.3 kB / 0.568 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004887/0.7293, allocations: 55.09 kB / 0.568 GB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004902/0.7342, allocations: 2.077 MB / 0.57 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000557/0.7349, allocations: 12.06 kB / 0.57 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.635e-05/0.7349, allocations: 11.44 kB / 0.5701 GB, free: 11.71 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002201/0.7352, allocations: 116.8 kB / 0.5702 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009242/0.7361, allocations: 234.4 kB / 0.5704 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.7363, allocations: 27.62 kB / 0.5704 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009109/0.7372, allocations: 249.6 kB / 0.5707 GB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.7372, allocations: 4 kB / 0.5707 GB, free: 11.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.7373, allocations: 4.031 kB / 0.5707 GB, free: 11.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.7373, allocations: 4 kB / 0.5707 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002353/0.7396, allocations: 0.6659 MB / 0.5713 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.7397, allocations: 4 kB / 0.5713 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005223/0.7402, allocations: 39.55 kB / 0.5714 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002196/0.7405, allocations: 39.02 kB / 0.5714 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.289e-05/0.7405, allocations: 7.984 kB / 0.5714 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.7406, allocations: 0 / 0.5714 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.7406, allocations: 0 / 0.5714 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.7418, allocations: 456.4 kB / 0.5718 GB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002045/0.7421, allocations: 108.7 kB / 0.5719 GB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.38e-05/0.7422, allocations: 0 / 0.5719 GB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004043/0.7426, allocations: 7.984 kB / 0.572 GB, free: 9.938 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.36e-05/0.7427, allocations: 15.11 kB / 0.572 GB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.853e-05/0.7427, allocations: 4 kB / 0.572 GB, free: 9.922 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004127/0.7432, allocations: 199.6 kB / 0.5722 GB, free: 9.762 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.42e-07/0.7432, allocations: 0 / 0.5722 GB, free: 9.762 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001231/0.7444, allocations: 84 kB / 0.5722 GB, free: 9.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001929/0.7464, allocations: 1.211 MB / 0.5734 GB, free: 8.504 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.7478, allocations: 369.7 kB / 0.5738 GB, free: 8.207 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.7478, allocations: 3.938 kB / 0.5738 GB, free: 8.203 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004416/0.7483, allocations: 175.9 kB / 0.5739 GB, free: 8.035 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008946/0.7492, allocations: 57.83 kB / 0.574 GB, free: 7.988 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003476/0.7527, allocations: 0.7996 MB / 0.5748 GB, free: 7.203 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008721/0.7537, allocations: 0.8587 MB / 0.5756 GB, free: 6.336 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003646/0.7541, allocations: 129.9 kB / 0.5757 GB, free: 6.297 MB / 378.7 MB Notification: Performance of SimCode: time 1.573e-06/0.7541, allocations: 0 / 0.5757 GB, free: 6.297 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.82/3.574, allocations: 7.438 MB / 0.583 GB, free: 14.93 MB / 394.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PQsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PQsource.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1)