Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001234/0.001234, allocations: 109.6 kB / 16.51 MB, free: 6.707 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.001211/0.001211, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.344/1.344, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1689/0.1689, allocations: 37.99 MB / 308.6 MB, free: 6.23 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.001347/0.001347, allocations: 71.19 kB / 374.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2319, allocations: 55.24 MB / 430 MB, free: 19.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.006522/0.2384, allocations: 6.847 MB / 436.8 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003479/0.2419, allocations: 2.326 MB / 439.1 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008328/0.2428, allocations: 27.81 kB / 439.2 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.2443, allocations: 0.4942 MB / 439.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001085/0.2454, allocations: 450.1 kB / 440.1 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007005/0.2461, allocations: 327.5 kB / 440.4 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009777/0.2471, allocations: 1.442 MB / 441.9 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000546/0.2476, allocations: 471.6 kB / 442.3 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003976/0.248, allocations: 390.3 kB / 442.7 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005477/0.2486, allocations: 0.5645 MB / 443.3 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.319e-05/0.2487, allocations: 48 kB / 443.3 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007712/0.2495, allocations: 0.5031 MB / 443.8 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003369/0.2498, allocations: 359 kB / 444.2 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003495/0.2502, allocations: 433.8 kB / 444.6 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007332/0.2509, allocations: 1.184 MB / 445.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2509, allocations: 0 / 445.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.251, allocations: 0 / 445.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.251, allocations: 0 / 445.8 MB, free: 3.875 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002055/0.253, allocations: 1.237 MB / 447 MB, free: 2.578 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.2531, allocations: 12.03 kB / 447 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001228/0.2532, allocations: 123.1 kB / 447.1 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006526/0.2539, allocations: 139.8 kB / 447.3 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000717/0.2546, allocations: 0.554 MB / 447.8 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.551e-05/0.2547, allocations: 58.38 kB / 447.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.2548, allocations: 87.84 kB / 448 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.2561, allocations: 1.076 MB / 449.1 MB, free: 436 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.2561, allocations: 7.938 kB / 449.1 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.891e-05/0.2562, allocations: 35.98 kB / 449.1 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001137/0.2563, allocations: 49.97 kB / 449.1 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.2577, allocations: 0.9328 MB / 450.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005192/0.2629, allocations: 4.227 MB / 454.3 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.2641, allocations: 0.9338 MB / 455.2 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006054/0.2648, allocations: 452 kB / 455.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.521e-05/0.2648, allocations: 4.562 kB / 455.7 MB, free: 9.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009325/0.2658, allocations: 0.6397 MB / 456.3 MB, free: 8.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=92): time 4.208e-06/0.2658, allocations: 0 / 456.3 MB, free: 8.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=93): time 0.004684/0.2705, allocations: 2.904 MB / 459.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.026e-05/0.2706, allocations: 149.5 kB / 459.4 MB, free: 5.656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006068/0.2712, allocations: 477.9 kB / 459.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.893e-05/0.2713, allocations: 49.69 kB / 459.9 MB, free: 5.121 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003032/0.2716, allocations: 387.6 kB / 460.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003018/0.2719, allocations: 284.1 kB / 460.5 MB, free: 4.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002575/0.2722, allocations: 178.9 kB / 460.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.2724, allocations: 382.8 kB / 461.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005896/0.273, allocations: 390.4 kB / 461.5 MB, free: 3.508 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007627/0.2737, allocations: 0.6207 MB / 462.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.2751, allocations: 1.079 MB / 463.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.2751, allocations: 4 kB / 463.2 MB, free: 1.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003057/0.2782, allocations: 1.521 MB / 464.7 MB, free: 76 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.083e-05/0.2783, allocations: 34.23 kB / 464.7 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002348/0.2806, allocations: 1.168 MB / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.2821, allocations: 428.5 kB / 466.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004832/0.2826, allocations: 135.7 kB / 466.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007529/0.2902, allocations: 4.739 MB / 471.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008034/0.291, allocations: 59.94 kB / 471.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.085e-05/0.2911, allocations: 40 kB / 471.3 MB, free: 9.34 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 46 (system.initime,relay.cnt,$PRE.relay.cnt,$whenCondition1,relay.y[3],$PRE.relay.y[3],relay.y[2],$PRE.relay.y[2],relay.y[1],$PRE.relay.y[1],breaker.breaker_c.opening,breaker.breaker_c.t0,$PRE.breaker.breaker_c.t0,breaker.breaker_c.closed,breaker.breaker_c.open,$PRE.breaker.breaker_c.open,breaker.breaker_c.arc,$PRE.breaker.breaker_c.arc,breaker.breaker_b.opening,breaker.breaker_b.t0,$PRE.breaker.breaker_b.t0,breaker.breaker_b.closed,breaker.breaker_b.open,$PRE.breaker.breaker_b.open,breaker.breaker_b.arc,$PRE.breaker.breaker_b.arc,breaker.breaker_a.opening,breaker.breaker_a.t0,$PRE.breaker.breaker_a.t0,breaker.breaker_a.closed,breaker.breaker_a.open,$PRE.breaker.breaker_a.open,breaker.breaker_a.arc,$PRE.breaker.breaker_a.arc,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 102 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0006183/0.2917, allocations: 351.2 kB / 471.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001745/0.2919, allocations: 79.08 kB / 471.7 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001953/0.2939, allocations: 1.115 MB / 472.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-05/0.2939, allocations: 27.92 kB / 472.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.2939, allocations: 0 / 472.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.2939, allocations: 3.984 kB / 472.9 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003326/0.2973, allocations: 2.148 MB / 475 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.2973, allocations: 4 kB / 475 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005938/0.2979, allocations: 119.8 kB / 475.1 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001771/0.2981, allocations: 94.53 kB / 475.2 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.924e-05/0.2981, allocations: 23.92 kB / 475.2 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002768/0.3009, allocations: 3.914 MB / 479.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3009, allocations: 7.875 kB / 479.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002587/0.3035, allocations: 1.761 MB / 480.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.3037, allocations: 136.3 kB / 481.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.3038, allocations: 27.98 kB / 481.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000444/0.3043, allocations: 47.95 kB / 481.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/0.3045, allocations: 84.81 kB / 481.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.188e-05/0.3045, allocations: 31.98 kB / 481.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003948/0.3049, allocations: 315.1 kB / 481.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3049, allocations: 4 kB / 481.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008851/0.3058, allocations: 256 kB / 481.8 MB, free: 14.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 33 (breaker.breaker_c.closed,breaker.breaker_a.closed,breaker.breaker_b.closed,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,breaker.breaker_a.arc,breaker.breaker_a.open,breaker.breaker_a.t0,breaker.breaker_a.opening,breaker.breaker_b.arc,breaker.breaker_b.open,breaker.breaker_b.t0,breaker.breaker_b.opening,breaker.breaker_c.arc,breaker.breaker_c.open,breaker.breaker_c.t0,breaker.breaker_c.opening,relay.y[1],relay.y[2],relay.y[3],relay.cnt,system.initime) * Number of discrete states: 11 (breaker.breaker_a.arc,breaker.breaker_b.arc,breaker.breaker_c.arc,relay.y[3],relay.y[2],relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_b.open,breaker.breaker_a.open,breaker.breaker_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 72 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (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.002931/0.3088, allocations: 2.37 MB / 484.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002336/0.3111, allocations: 1.354 MB / 485.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3111, allocations: 0 / 485.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.3123, allocations: 0.9394 MB / 486.5 MB, free: 9.449 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006994/0.313, allocations: 125 kB / 486.6 MB, free: 9.332 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/0.3256, allocations: 8.2 MB / 494.8 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007244/0.3263, allocations: 1.029 MB / 495.8 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005862/0.3269, allocations: 193.8 kB / 496 MB, free: 15.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004297/0.3274, allocations: 287.3 kB / 496.3 MB, free: 15.29 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3274, allocations: 0 / 496.3 MB, free: 15.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03667/0.3641, allocations: 17.52 MB / 0.5018 GB, free: 13.77 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002412/0.3644, allocations: 237.7 kB / 0.502 GB, free: 13.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.313/2.678, allocations: 0 / 0.502 GB, free: 13.5 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)