Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",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.0009321/0.0009321, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.19/1.19, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.000779/0.0007786, allocations: 96.09 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1619/0.1619, allocations: 38.07 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002858/0.0002858, allocations: 12 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2221, allocations: 56.32 MB / 480.4 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1087/0.3309, allocations: 95.3 MB / 0.5622 GB, free: 7.129 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/0.3311, allocations: 95.94 kB / 0.5623 GB, free: 7.035 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0194/0.3506, allocations: 7.385 MB / 0.5695 GB, free: 15.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3506, allocations: 3.938 kB / 0.5695 GB, free: 15.56 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.058e-05/0.3506, allocations: 12 kB / 0.5695 GB, free: 15.55 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0009061/0.3515, allocations: 0.6413 MB / 0.5702 GB, free: 14.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.3516, allocations: 12.03 kB / 0.5702 GB, free: 14.85 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.558e-05/0.3516, allocations: 62.53 kB / 0.5702 GB, free: 14.78 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.065e-05/0.3517, allocations: 39.83 kB / 0.5703 GB, free: 14.74 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/0.3535, allocations: 0.8181 MB / 0.5711 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.3536, allocations: 16.56 kB / 0.5711 GB, free: 13.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.75e-05/0.3536, allocations: 35.91 kB / 0.5711 GB, free: 13.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004471/0.3541, allocations: 348.7 kB / 0.5715 GB, free: 13.45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.3541, allocations: 0 / 0.5715 GB, free: 13.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.599e-05/0.3541, allocations: 12 kB / 0.5715 GB, free: 13.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.3541, allocations: 8 kB / 0.5715 GB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003393/0.3545, allocations: 234 kB / 0.5717 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.3559, allocations: 1.363 MB / 0.573 GB, free: 11.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002952/0.3562, allocations: 157 kB / 0.5732 GB, free: 11.58 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.3563, allocations: 7.984 kB / 0.5732 GB, free: 11.57 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.3563, allocations: 42.86 kB / 0.5732 GB, free: 11.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.343e-06/0.3563, allocations: 0 / 0.5732 GB, free: 11.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.001149/0.3575, allocations: 0.7555 MB / 0.574 GB, free: 10.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.3575, allocations: 85.23 kB / 0.574 GB, free: 10.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/0.3577, allocations: 255.7 kB / 0.5743 GB, free: 10.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.3578, allocations: 25.7 kB / 0.5743 GB, free: 10.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.3579, allocations: 219.5 kB / 0.5745 GB, free: 10.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.357e-05/0.3579, allocations: 63.17 kB / 0.5746 GB, free: 10.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.345e-06/0.3579, allocations: 0 / 0.5746 GB, free: 10.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.299e-05/0.358, allocations: 338.8 kB / 0.5749 GB, free: 9.676 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.724e-05/0.3581, allocations: 67.95 kB / 0.575 GB, free: 9.609 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.3583, allocations: 165.3 kB / 0.5751 GB, free: 9.402 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.3584, allocations: 87.97 kB / 0.5752 GB, free: 9.316 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.3584, allocations: 0 / 0.5752 GB, free: 9.316 MB / 410.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004416/0.3589, allocations: 317.7 kB / 0.5755 GB, free: 8.996 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.3589, allocations: 8 kB / 0.5755 GB, free: 8.988 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3589, allocations: 4 kB / 0.5755 GB, free: 8.984 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001675/0.3591, allocations: 53.27 kB / 0.5756 GB, free: 8.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.3593, allocations: 47.91 kB / 0.5756 GB, free: 8.883 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/0.3603, allocations: 1.486 MB / 0.5771 GB, free: 7.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.3605, allocations: 8 kB / 0.5771 GB, free: 7.262 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.3605, allocations: 8 kB / 0.5771 GB, free: 7.254 MB / 410.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 (28): * Single equations (assignments): 27 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001501/0.3607, allocations: 174 kB / 0.5773 GB, free: 7.074 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.729e-05/0.3607, allocations: 31.58 kB / 0.5773 GB, free: 7.043 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003766/0.3611, allocations: 237.4 kB / 0.5775 GB, free: 6.801 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.3611, allocations: 8.188 kB / 0.5775 GB, free: 6.793 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3611, allocations: 4 kB / 0.5775 GB, free: 6.789 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3611, allocations: 0 / 0.5775 GB, free: 6.789 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007722/0.3619, allocations: 0.6281 MB / 0.5781 GB, free: 6.102 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3619, allocations: 0 / 0.5781 GB, free: 6.102 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.362, allocations: 23.98 kB / 0.5782 GB, free: 6.078 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000162/0.3622, allocations: 52.73 kB / 0.5782 GB, free: 6.023 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.3622, allocations: 12.03 kB / 0.5782 GB, free: 6.012 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.3633, allocations: 1.479 MB / 0.5797 GB, free: 4.398 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3633, allocations: 7.891 kB / 0.5797 GB, free: 4.391 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004512/0.3637, allocations: 419.2 kB / 0.5801 GB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.634e-05/0.3638, allocations: 105.1 kB / 0.5802 GB, free: 3.824 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.1e-05/0.3639, allocations: 4 kB / 0.5802 GB, free: 3.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.364, allocations: 4 kB / 0.5802 GB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.706e-05/0.364, allocations: 15.92 kB / 0.5802 GB, free: 3.801 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.364, allocations: 11.98 kB / 0.5802 GB, free: 3.789 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001701/0.3642, allocations: 203.1 kB / 0.5804 GB, free: 3.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3642, allocations: 0 / 0.5804 GB, free: 3.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000352/0.3646, allocations: 72 kB / 0.5805 GB, free: 3.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (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): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007097/0.3653, allocations: 1.097 MB / 0.5815 GB, free: 2.379 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004029/0.3657, allocations: 290.5 kB / 0.5818 GB, free: 2.082 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3657, allocations: 0 / 0.5818 GB, free: 2.082 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003007/0.366, allocations: 211.4 kB / 0.582 GB, free: 1.863 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.3664, allocations: 64.52 kB / 0.5821 GB, free: 1.801 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00289/0.3693, allocations: 4.076 MB / 0.5861 GB, free: 13.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.3696, allocations: 0.8145 MB / 0.5869 GB, free: 12.76 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001617/0.3698, allocations: 46.94 kB / 0.5869 GB, free: 12.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.3699, allocations: 99.41 kB / 0.587 GB, free: 12.62 MB / 426.7 MB Notification: Performance of SimCode: time 3e-07/0.3699, allocations: 0 / 0.587 GB, free: 12.62 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01713/0.3871, allocations: 5.679 MB / 0.5925 GB, free: 7.004 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002135/0.3873, allocations: 208.2 kB / 0.5927 GB, free: 6.762 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.709/2.096, allocations: 4 kB / 0.5927 GB, free: 6.758 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat does not exist to compare? outputFormat=mat