Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009279/0.0009279, allocations: 92.02 kB / 16.65 MB, free: 6.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008866/0.0008866, allocations: 181.7 kB / 17.56 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.242/1.242, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1683/0.1683, allocations: 38.06 MB / 310.1 MB, free: 5.902 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005269/0.0005269, allocations: 15.5 kB / 377.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2338, allocations: 56.32 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.004245/0.2381, allocations: 5.543 MB / 439.1 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.2397, allocations: 1.38 MB / 440.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002154/0.24, allocations: 27.81 kB / 440.5 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002762/0.2403, allocations: 71.52 kB / 440.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004934/0.2408, allocations: 286.7 kB / 440.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.241, allocations: 135.8 kB / 441 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006325/0.2417, allocations: 1.083 MB / 442.1 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002271/0.2419, allocations: 156.3 kB / 442.3 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000279/0.2422, allocations: 258.7 kB / 442.5 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004115/0.2426, allocations: 358.7 kB / 442.9 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.443e-05/0.2427, allocations: 20 kB / 442.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.609e-05/0.2427, allocations: 20 kB / 442.9 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.2429, allocations: 187.5 kB / 443.1 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.2431, allocations: 256.4 kB / 443.3 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003248/0.2434, allocations: 0.5136 MB / 443.9 MB, free: 8.336 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2434, allocations: 7.938 kB / 443.9 MB, free: 8.328 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2434, allocations: 0 / 443.9 MB, free: 8.328 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.2434, allocations: 4 kB / 443.9 MB, free: 8.324 MB / 318.1 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.001125/0.2446, allocations: 0.7492 MB / 444.6 MB, free: 7.523 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2446, allocations: 12.03 kB / 444.6 MB, free: 7.512 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.566e-05/0.2447, allocations: 70.72 kB / 444.7 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.817e-05/0.2448, allocations: 52.28 kB / 444.7 MB, free: 7.383 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004618/0.2452, allocations: 428.5 kB / 445.2 MB, free: 6.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.2453, allocations: 32.94 kB / 445.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.563e-05/0.2453, allocations: 39.98 kB / 445.2 MB, free: 6.859 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005687/0.2459, allocations: 490.5 kB / 445.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.2459, allocations: 0 / 445.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.541e-05/0.246, allocations: 12 kB / 445.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.383e-05/0.2461, allocations: 32.62 kB / 445.8 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004726/0.2466, allocations: 366.6 kB / 446.1 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.2482, allocations: 1.726 MB / 447.8 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004913/0.2487, allocations: 398.3 kB / 448.2 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003775/0.2491, allocations: 225.1 kB / 448.4 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.2492, allocations: 4 kB / 448.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003243/0.2495, allocations: 287.5 kB / 448.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.443e-06/0.2495, allocations: 0 / 448.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.001796/0.2513, allocations: 1.404 MB / 450.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/0.2514, allocations: 136.5 kB / 450.3 MB, free: 1.488 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.2516, allocations: 381.5 kB / 450.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.2517, allocations: 37.83 kB / 450.7 MB, free: 1.062 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.2518, allocations: 256 kB / 450.9 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.066e-05/0.2519, allocations: 110.5 kB / 451 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.765e-05/0.2519, allocations: 49.69 kB / 451.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.859e-05/0.252, allocations: 346.8 kB / 451.4 MB, free: 304 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.2522, allocations: 137 kB / 451.6 MB, free: 168 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.2524, allocations: 260.1 kB / 451.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000504/0.253, allocations: 449.2 kB / 452.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.253, allocations: 4 kB / 452.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007943/0.2538, allocations: 0.5504 MB / 452.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.2538, allocations: 33.7 kB / 452.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.2538, allocations: 4 kB / 452.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002494/0.2541, allocations: 78.14 kB / 452.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002692/0.2544, allocations: 71.89 kB / 453 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001943/0.2563, allocations: 2.794 MB / 455.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.2566, allocations: 32.23 kB / 455.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.982e-05/0.2566, allocations: 20 kB / 455.8 MB, free: 11.47 MB / 334.1 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,breaker.breaker_1.opening,breaker.breaker_1.t0,$PRE.breaker.breaker_1.t0,breaker.breaker_1.closed,breaker.breaker_1.open,$PRE.breaker.breaker_1.open,breaker.breaker_1.arc,$PRE.breaker.breaker_1.arc,relay.y[1],$PRE.relay.y[1],$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,relay.cnt,$PRE.relay.cnt,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002321/0.2569, allocations: 239.3 kB / 456.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.452e-05/0.2569, allocations: 39.53 kB / 456.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000795/0.2577, allocations: 0.5086 MB / 456.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.2578, allocations: 4 kB / 456.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.2578, allocations: 0 / 456.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2578, allocations: 0 / 456.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001347/0.2591, allocations: 1.06 MB / 457.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2591, allocations: 4.031 kB / 457.7 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001894/0.2593, allocations: 39.97 kB / 457.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002375/0.2596, allocations: 93.48 kB / 457.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.186e-05/0.2596, allocations: 19.92 kB / 457.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001804/0.2614, allocations: 2.792 MB / 460.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.2614, allocations: 4.031 kB / 460.6 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.2625, allocations: 0.7798 MB / 461.4 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.223e-05/0.2626, allocations: 108.6 kB / 461.5 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.867e-05/0.2626, allocations: 19.92 kB / 461.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.2629, allocations: 19.98 kB / 461.6 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.734e-05/0.263, allocations: 35.89 kB / 461.6 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.263, allocations: 20.05 kB / 461.6 MB, free: 5.262 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002345/0.2632, allocations: 263.2 kB / 461.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2632, allocations: 0 / 461.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004335/0.2637, allocations: 112 kB / 462 MB, free: 4.898 MB / 334.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001298/0.265, allocations: 1.337 MB / 463.3 MB, free: 3.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000837/0.2658, allocations: 0.6345 MB / 463.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2658, allocations: 0 / 463.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005937/0.2664, allocations: 0.4969 MB / 464.4 MB, free: 2.309 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005712/0.267, allocations: 78.22 kB / 464.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004725/0.2718, allocations: 4.383 MB / 468.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.2722, allocations: 0.8626 MB / 469.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002474/0.2724, allocations: 71.36 kB / 469.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.2726, allocations: 155.4 kB / 470 MB, free: 12.53 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2726, allocations: 0 / 470 MB, free: 12.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02108/0.2937, allocations: 8.78 MB / 478.8 MB, free: 3.801 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002187/0.294, allocations: 216.7 kB / 479 MB, free: 3.547 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.9/2.194, allocations: 0 / 479 MB, free: 3.547 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)