Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_cpp_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.001128/0.001128, allocations: 171.9 kB / 16.07 MB, free: 5.727 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.33/1.33, allocations: 205.4 MB / 222.2 MB, free: 9.027 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.0007171/0.0007171, allocations: 88.8 kB / 270.6 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1664/0.1664, allocations: 38.07 MB / 356.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003687/0.0003689, allocations: 16 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.278, allocations: 56.32 MB / 479.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.005381/0.2835, allocations: 5.292 MB / 485 MB, free: 5.723 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.2854, allocations: 1.32 MB / 486.3 MB, free: 4.777 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000257/0.2857, allocations: 27.38 kB / 486.4 MB, free: 4.766 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003345/0.286, allocations: 99.66 kB / 486.5 MB, free: 4.715 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006908/0.2867, allocations: 323.2 kB / 486.8 MB, free: 4.547 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003593/0.2871, allocations: 152.8 kB / 486.9 MB, free: 4.473 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008624/0.288, allocations: 0.8627 MB / 487.8 MB, free: 4.152 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002898/0.2883, allocations: 158.5 kB / 488 MB, free: 4.086 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003959/0.2887, allocations: 261.2 kB / 488.2 MB, free: 3.98 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005654/0.2893, allocations: 346.8 kB / 488.5 MB, free: 3.871 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.731e-05/0.2893, allocations: 20.06 kB / 488.6 MB, free: 3.871 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.981e-05/0.2894, allocations: 20.5 kB / 488.6 MB, free: 3.871 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002506/0.2897, allocations: 187.3 kB / 488.8 MB, free: 3.816 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002479/0.2899, allocations: 246.5 kB / 489 MB, free: 3.668 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004929/0.2904, allocations: 412 kB / 489.4 MB, free: 3.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2904, allocations: 2.125 kB / 489.4 MB, free: 3.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.2904, allocations: 4 kB / 489.4 MB, free: 3.566 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.2905, allocations: 0 / 489.4 MB, free: 3.566 MB / 314.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.001301/0.2918, allocations: 0.7503 MB / 490.2 MB, free: 2.988 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.2918, allocations: 10.06 kB / 490.2 MB, free: 2.988 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.72e-05/0.2919, allocations: 81.06 kB / 490.3 MB, free: 2.922 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.262e-05/0.292, allocations: 58.47 kB / 490.3 MB, free: 2.891 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005618/0.2926, allocations: 430.6 kB / 490.7 MB, free: 2.578 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.2926, allocations: 29.17 kB / 490.8 MB, free: 2.566 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.398e-05/0.2927, allocations: 37.12 kB / 490.8 MB, free: 2.555 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000755/0.2934, allocations: 485.3 kB / 491.3 MB, free: 2.312 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.2935, allocations: 0 / 491.3 MB, free: 2.312 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.872e-05/0.2935, allocations: 20.84 kB / 491.3 MB, free: 2.297 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001104/0.2936, allocations: 33.58 kB / 491.3 MB, free: 2.289 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000605/0.2942, allocations: 364.3 kB / 491.7 MB, free: 2.172 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.2963, allocations: 1.71 MB / 493.4 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005976/0.297, allocations: 402.9 kB / 493.8 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004797/0.2974, allocations: 223.5 kB / 494 MB, free: 0.668 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.2975, allocations: 6.297 kB / 494 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004506/0.2979, allocations: 286.4 kB / 494.3 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of pre-optimization done (n=35): time 1.673e-06/0.298, allocations: 4 kB / 494.3 MB, free: 0.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002443/0.3004, allocations: 1.391 MB / 495.7 MB, free: 15.57 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.3005, allocations: 140.9 kB / 495.8 MB, free: 15.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00048/0.301, allocations: 376.2 kB / 496.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.3011, allocations: 33.22 kB / 496.2 MB, free: 15.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.3013, allocations: 256.3 kB / 496.5 MB, free: 14.97 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.3014, allocations: 115.6 kB / 496.6 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.381e-05/0.3015, allocations: 10.56 kB / 496.6 MB, free: 14.88 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3016, allocations: 351.4 kB / 496.9 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002431/0.3019, allocations: 133.2 kB / 497.1 MB, free: 14.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003426/0.3022, allocations: 253.3 kB / 497.3 MB, free: 14.31 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005907/0.3028, allocations: 452.4 kB / 497.8 MB, free: 13.97 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3028, allocations: 1 kB / 497.8 MB, free: 13.97 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009374/0.3038, allocations: 0.5379 MB / 498.3 MB, free: 13.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.066e-05/0.3038, allocations: 33.67 kB / 498.3 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.3039, allocations: 3.969 kB / 498.3 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002911/0.3042, allocations: 83.47 kB / 498.4 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003042/0.3045, allocations: 76.47 kB / 498.5 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002437/0.3069, allocations: 2.798 MB / 0.4895 GB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003315/0.3073, allocations: 33.08 kB / 0.4896 GB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-05/0.3073, allocations: 18.89 kB / 0.4896 GB, free: 10.93 MB / 330.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,$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,$whenCondition1,$PRE.relay.cnt,relay.cnt) * 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.0003442/0.3077, allocations: 236.6 kB / 0.4898 GB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.396e-05/0.3077, allocations: 44.98 kB / 0.4899 GB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.3087, allocations: 0.4986 MB / 0.4903 GB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3088, allocations: 3.594 kB / 0.4904 GB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3088, allocations: 2.094 kB / 0.4904 GB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.3088, allocations: 2.859 kB / 0.4904 GB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.3106, allocations: 1.059 MB / 0.4914 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3106, allocations: 1.344 kB / 0.4914 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001993/0.3108, allocations: 41 kB / 0.4914 GB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002797/0.3111, allocations: 92.09 kB / 0.4915 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.162e-05/0.3111, allocations: 19.2 kB / 0.4915 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002225/0.3134, allocations: 2.787 MB / 0.4943 GB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3134, allocations: 5.031 kB / 0.4943 GB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.3146, allocations: 0.7744 MB / 0.495 GB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.3148, allocations: 108.7 kB / 0.4951 GB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.563e-05/0.3148, allocations: 21.11 kB / 0.4951 GB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.3151, allocations: 24.98 kB / 0.4952 GB, free: 6.434 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.3152, allocations: 34.61 kB / 0.4952 GB, free: 6.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.76e-05/0.3153, allocations: 20.88 kB / 0.4952 GB, free: 6.402 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003367/0.3156, allocations: 257.7 kB / 0.4955 GB, free: 6.242 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3156, allocations: 0 / 0.4955 GB, free: 6.242 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005864/0.3162, allocations: 113.8 kB / 0.4956 GB, free: 6.23 MB / 330.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.001553/0.3178, allocations: 1.333 MB / 0.4969 GB, free: 5.195 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.3189, allocations: 0.6531 MB / 0.4975 GB, free: 4.73 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3189, allocations: 0 / 0.4975 GB, free: 4.73 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006623/0.3195, allocations: 0.4896 MB / 0.498 GB, free: 4.336 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006313/0.3202, allocations: 96.02 kB / 0.4981 GB, free: 4.285 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004332/0.3245, allocations: 2.901 MB / 0.5009 GB, free: 2.344 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.325, allocations: 0.8601 MB / 0.5018 GB, free: 1.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002458/0.3253, allocations: 160.5 kB / 0.5019 GB, free: 1.438 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3253, allocations: 5.281 kB / 0.5019 GB, free: 1.434 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.834/4.16, allocations: 10.46 MB / 0.5121 GB, free: 8.137 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)