Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.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.Breaker,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",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.0009524/0.0009523, allocations: 180.2 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.3+maint.om/package.mo): time 1.197/1.197, 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.0007875/0.0007874, allocations: 92.08 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.1556/0.1556, allocations: 38.06 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002836, allocations: 12 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2242, allocations: 56.33 MB / 480.4 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1165/0.3407, allocations: 98.68 MB / 0.5655 GB, free: 3.715 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/0.341, allocations: 91.95 kB / 0.5656 GB, free: 3.625 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02643/0.3674, allocations: 10.1 MB / 0.5755 GB, free: 9.402 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.3675, allocations: 3.938 kB / 0.5755 GB, free: 9.398 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.904e-05/0.3675, allocations: 12 kB / 0.5755 GB, free: 9.387 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001364/0.3689, allocations: 0.7926 MB / 0.5763 GB, free: 8.539 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.3689, allocations: 12.03 kB / 0.5763 GB, free: 8.527 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.154e-05/0.369, allocations: 74.53 kB / 0.5764 GB, free: 8.445 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.629e-05/0.3691, allocations: 59.3 kB / 0.5764 GB, free: 8.387 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002003/0.3711, allocations: 0.9008 MB / 0.5773 GB, free: 7.445 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.284e-05/0.3712, allocations: 29 kB / 0.5773 GB, free: 7.414 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.218e-05/0.3712, allocations: 36 kB / 0.5774 GB, free: 7.379 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006791/0.3719, allocations: 474.5 kB / 0.5778 GB, free: 6.883 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.372, allocations: 0 / 0.5778 GB, free: 6.883 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.828e-05/0.372, allocations: 16 kB / 0.5778 GB, free: 6.867 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.372, allocations: 12 kB / 0.5778 GB, free: 6.855 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005508/0.3726, allocations: 358.6 kB / 0.5782 GB, free: 6.504 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002122/0.3747, allocations: 1.71 MB / 0.5798 GB, free: 4.707 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000545/0.3753, allocations: 317.6 kB / 0.5801 GB, free: 4.379 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.3753, allocations: 12.28 kB / 0.5802 GB, free: 4.367 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003995/0.3757, allocations: 279.7 kB / 0.5804 GB, free: 4.066 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 1.583e-06/0.3757, allocations: 0 / 0.5804 GB, free: 4.066 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.002102/0.3778, allocations: 1.425 MB / 0.5818 GB, free: 2.508 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.007e-05/0.3779, allocations: 144.5 kB / 0.582 GB, free: 2.336 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003272/0.3783, allocations: 328.9 kB / 0.5823 GB, free: 2.008 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.342e-05/0.3783, allocations: 37.7 kB / 0.5823 GB, free: 1.965 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.3785, allocations: 252 kB / 0.5825 GB, free: 1.715 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.965e-05/0.3786, allocations: 114.4 kB / 0.5827 GB, free: 1.602 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.877e-05/0.3786, allocations: 8 kB / 0.5827 GB, free: 1.594 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3787, allocations: 358.8 kB / 0.583 GB, free: 1.234 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.3789, allocations: 125.1 kB / 0.5831 GB, free: 1.113 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002722/0.3792, allocations: 256.1 kB / 0.5834 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002643/0.3795, allocations: 181.6 kB / 0.5835 GB, free: 0.625 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3795, allocations: 0 / 0.5835 GB, free: 0.625 MB / 410.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007811/0.3803, allocations: 0.5384 MB / 0.5841 GB, free: 68 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.3803, allocations: 29.7 kB / 0.5841 GB, free: 32 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.3803, allocations: 12.41 kB / 0.5841 GB, free: 20 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002459/0.3806, allocations: 77.67 kB / 0.5842 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.3809, allocations: 75.83 kB / 0.5843 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001979/0.3829, allocations: 2.783 MB / 0.587 GB, free: 12.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002658/0.3831, allocations: 23.98 kB / 0.587 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.965e-05/0.3832, allocations: 16 kB / 0.587 GB, free: 12.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 18 (system.initime,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.relay.y[1],relay.y[1],$PRE.breaker.breaker_1.arc,breaker.breaker_1.arc,$PRE.breaker.breaker_1.open,breaker.breaker_1.open,breaker.breaker_1.closed,$PRE.breaker.breaker_1.t0,breaker.breaker_1.t0,breaker.breaker_1.opening) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002563/0.3834, allocations: 247.5 kB / 0.5872 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.587e-05/0.3835, allocations: 47.44 kB / 0.5873 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007259/0.3842, allocations: 464.8 kB / 0.5877 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3843, allocations: 4 kB / 0.5877 GB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3843, allocations: 4 kB / 0.5877 GB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.3843, allocations: 0 / 0.5877 GB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.3856, allocations: 1.037 MB / 0.5888 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.3856, allocations: 7.891 kB / 0.5888 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001806/0.3858, allocations: 43.91 kB / 0.5888 GB, free: 10.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000211/0.386, allocations: 73.66 kB / 0.5889 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.124e-05/0.3861, allocations: 16.02 kB / 0.5889 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/0.388, allocations: 2.779 MB / 0.5916 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.388, allocations: 0 / 0.5916 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.3891, allocations: 0.765 MB / 0.5923 GB, free: 6.875 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.3892, allocations: 116.7 kB / 0.5925 GB, free: 6.742 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.516e-05/0.3892, allocations: 11.95 kB / 0.5925 GB, free: 6.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.3895, allocations: 24.05 kB / 0.5925 GB, free: 6.707 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.965e-05/0.3896, allocations: 35.94 kB / 0.5925 GB, free: 6.672 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-05/0.3896, allocations: 15.98 kB / 0.5925 GB, free: 6.656 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002458/0.3899, allocations: 259.2 kB / 0.5928 GB, free: 6.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3899, allocations: 0 / 0.5928 GB, free: 6.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004624/0.3903, allocations: 116 kB / 0.5929 GB, free: 6.297 MB / 426.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: 13 (breaker.breaker_1.closed,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,relay.y[1],relay.cnt,breaker.breaker_1.arc,breaker.breaker_1.open,breaker.breaker_1.t0,breaker.breaker_1.opening,system.initime) * Number of discrete states: 5 (breaker.breaker_1.arc,relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00136/0.3917, allocations: 1.466 MB / 0.5943 GB, free: 4.777 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008582/0.3926, allocations: 0.6306 MB / 0.595 GB, free: 4.109 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3926, allocations: 8.062 kB / 0.595 GB, free: 4.102 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005873/0.3932, allocations: 492.9 kB / 0.5954 GB, free: 3.582 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.3936, allocations: 84.03 kB / 0.5955 GB, free: 3.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004329/0.3979, allocations: 5.227 MB / 0.6006 GB, free: 14.14 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/0.3984, allocations: 0.8782 MB / 0.6015 GB, free: 13.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002448/0.3986, allocations: 71.34 kB / 0.6015 GB, free: 13.16 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.3988, allocations: 151.4 kB / 0.6017 GB, free: 13.02 MB / 442.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3988, allocations: 0 / 0.6017 GB, free: 13.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.022/0.4208, allocations: 8.991 MB / 0.6105 GB, free: 4.094 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002352/0.4211, allocations: 205.8 kB / 0.6107 GB, free: 3.852 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.918/2.339, allocations: 0 / 0.6107 GB, free: 3.852 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker_res.mat does not exist to compare? outputFormat=mat