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.0006876/0.0006876, allocations: 91.67 kB / 16.65 MB, free: 6.348 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.0007803/0.0007803, allocations: 177 kB / 17.56 MB, free: 5.949 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.537/1.537, allocations: 205.4 MB / 223.7 MB, free: 13.06 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1723/0.1723, allocations: 38.06 MB / 310.1 MB, free: 5.91 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.0005435/0.0005435, allocations: 16 kB / 377.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2427, allocations: 56.33 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.006068/0.2488, allocations: 6.407 MB / 440 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003306/0.2521, allocations: 2.307 MB / 442.3 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004254/0.2526, allocations: 27.81 kB / 442.3 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003857/0.253, allocations: 103.2 kB / 442.4 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008966/0.2539, allocations: 458.1 kB / 442.9 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006025/0.2545, allocations: 327.4 kB / 443.2 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008708/0.2554, allocations: 1.45 MB / 444.7 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009041/0.2563, allocations: 0.773 MB / 445.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003748/0.2567, allocations: 362.3 kB / 445.8 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005375/0.2572, allocations: 0.5411 MB / 446.3 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.427e-05/0.2573, allocations: 36 kB / 446.4 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000614/0.2579, allocations: 499.1 kB / 446.8 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.2582, allocations: 351 kB / 447.2 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002846/0.2585, allocations: 443.4 kB / 447.6 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007197/0.2592, allocations: 1.148 MB / 448.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2592, allocations: 4 kB / 448.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2592, allocations: 0 / 448.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.2592, allocations: 0 / 448.8 MB, free: 3.371 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.001776/0.261, allocations: 1.105 MB / 449.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.261, allocations: 8.031 kB / 449.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/0.2612, allocations: 127.1 kB / 450 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006016/0.2618, allocations: 135.8 kB / 450.1 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006585/0.2624, allocations: 0.554 MB / 450.7 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.555e-05/0.2625, allocations: 62.38 kB / 450.8 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.2627, allocations: 83.91 kB / 450.8 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.2639, allocations: 1.084 MB / 451.9 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.2639, allocations: 3.938 kB / 451.9 MB, free: 48 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.025e-05/0.264, allocations: 31.98 kB / 452 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001435/0.2642, allocations: 50.03 kB / 452 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.2656, allocations: 0.9367 MB / 452.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004723/0.2703, allocations: 4.227 MB / 457.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.2715, allocations: 0.9415 MB / 458.1 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005842/0.2721, allocations: 440 kB / 458.5 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.117e-05/0.2722, allocations: 8.562 kB / 458.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008988/0.2731, allocations: 0.6397 MB / 459.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of pre-optimization done (n=92): time 2.785e-06/0.2731, allocations: 0 / 459.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=93): time 0.004347/0.2774, allocations: 2.908 MB / 462.1 MB, free: 5.453 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.312e-05/0.2775, allocations: 153.5 kB / 462.3 MB, free: 5.273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005097/0.2781, allocations: 477.7 kB / 462.7 MB, free: 4.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.108e-05/0.2781, allocations: 45.7 kB / 462.8 MB, free: 4.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000278/0.2784, allocations: 387.7 kB / 463.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002143/0.2786, allocations: 280.1 kB / 463.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.2788, allocations: 93.66 kB / 463.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.2789, allocations: 378.8 kB / 463.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005723/0.2795, allocations: 398.4 kB / 464.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007204/0.2802, allocations: 0.6207 MB / 464.9 MB, free: 2.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001313/0.2816, allocations: 1.071 MB / 466 MB, free: 1.328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.2816, allocations: 4 kB / 466 MB, free: 1.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002793/0.2844, allocations: 1.533 MB / 467.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.712e-05/0.2844, allocations: 33.7 kB / 467.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002173/0.2866, allocations: 1.164 MB / 468.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0013/0.2879, allocations: 428.5 kB / 469.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004489/0.2884, allocations: 135.6 kB / 469.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007084/0.2955, allocations: 4.738 MB / 474 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006363/0.2961, allocations: 67.95 kB / 474 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.837e-05/0.2962, allocations: 39.98 kB / 474.1 MB, free: 9.035 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.0005346/0.2968, allocations: 363.1 kB / 474.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.2969, allocations: 67.16 kB / 474.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001769/0.2987, allocations: 1.119 MB / 475.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.363e-05/0.2987, allocations: 15.94 kB / 475.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2987, allocations: 4 kB / 475.6 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.2987, allocations: 7.984 kB / 475.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003062/0.3018, allocations: 2.144 MB / 477.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.3018, allocations: 0 / 477.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005601/0.3024, allocations: 123.8 kB / 477.9 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001695/0.3026, allocations: 94.52 kB / 478 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.684e-05/0.3026, allocations: 23.94 kB / 478 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002643/0.3053, allocations: 3.914 MB / 481.9 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.3053, allocations: 3.938 kB / 481.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002466/0.3078, allocations: 1.761 MB / 483.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000183/0.308, allocations: 148.2 kB / 483.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.522e-05/0.3081, allocations: 24 kB / 483.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004686/0.3086, allocations: 59.94 kB / 483.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000207/0.3088, allocations: 92.75 kB / 484 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-05/0.3088, allocations: 20 kB / 484 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003917/0.3092, allocations: 327.1 kB / 484.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3092, allocations: 0 / 484.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009312/0.3102, allocations: 248 kB / 484.6 MB, free: 13.92 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.002914/0.3131, allocations: 2.374 MB / 487 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002279/0.3154, allocations: 1.354 MB / 488.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3154, allocations: 0 / 488.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.3165, allocations: 0.9472 MB / 489.3 MB, free: 9.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007189/0.3173, allocations: 117.9 kB / 489.4 MB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01181/0.3291, allocations: 8.271 MB / 497.7 MB, free: 448 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007359/0.3299, allocations: 1.029 MB / 498.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000572/0.3305, allocations: 201.8 kB / 498.9 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004295/0.3309, allocations: 283.3 kB / 499.2 MB, free: 14.9 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3309, allocations: 0 / 499.2 MB, free: 14.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03614/0.3671, allocations: 17.24 MB / 0.5043 GB, free: 13.69 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002922/0.3674, allocations: 225.3 kB / 0.5045 GB, free: 13.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.143/2.51, allocations: 0 / 0.5045 GB, free: 13.43 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)