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.0008711/0.0008711, allocations: 85.12 kB / 16.31 MB, free: 5.676 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.001261/0.001261, allocations: 184.3 kB / 17.21 MB, free: 5.59 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.467/1.467, allocations: 205.4 MB / 223.4 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2891/0.2891, allocations: 38.06 MB / 309.7 MB, free: 8.59 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.0007435/0.0007437, allocations: 12 kB / 376.6 MB, free: 14.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1242, allocations: 56.33 MB / 433 MB, free: 6.398 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.00585/0.1301, allocations: 5.25 MB / 438.2 MB, free: 1.125 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002225/0.1323, allocations: 1.341 MB / 439.5 MB, free: 15.78 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004053/0.1328, allocations: 27.81 kB / 439.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003504/0.1331, allocations: 95.3 kB / 439.7 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008059/0.134, allocations: 314.4 kB / 440 MB, free: 15.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003778/0.1343, allocations: 143.8 kB / 440.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000887/0.1352, allocations: 0.8684 MB / 441 MB, free: 14.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002718/0.1355, allocations: 151.1 kB / 441.1 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004665/0.136, allocations: 258.8 kB / 441.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006142/0.1366, allocations: 346.9 kB / 441.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.379e-05/0.1367, allocations: 23.98 kB / 441.7 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.584e-05/0.1368, allocations: 20 kB / 441.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001974/0.137, allocations: 183.4 kB / 441.9 MB, free: 13.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.1372, allocations: 113.5 kB / 442.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000385/0.1376, allocations: 407 kB / 442.5 MB, free: 12.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.1376, allocations: 4 kB / 442.5 MB, free: 12.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1376, allocations: 4 kB / 442.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.1376, allocations: 3.938 kB / 442.5 MB, free: 12.84 MB / 382.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.001326/0.139, allocations: 0.7567 MB / 443.2 MB, free: 12.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.139, allocations: 12.03 kB / 443.2 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.682e-05/0.1391, allocations: 70.53 kB / 443.3 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.253e-05/0.1392, allocations: 55.34 kB / 443.4 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005854/0.1398, allocations: 411.5 kB / 443.8 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.302e-05/0.1398, allocations: 32.98 kB / 443.8 MB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.057e-05/0.1399, allocations: 36 kB / 443.8 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007004/0.1406, allocations: 486.5 kB / 444.3 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1406, allocations: 4 kB / 444.3 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.593e-05/0.1407, allocations: 15.98 kB / 444.3 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001056/0.1408, allocations: 40.56 kB / 444.4 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005755/0.1414, allocations: 366.7 kB / 444.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.1435, allocations: 1.719 MB / 446.4 MB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005863/0.1441, allocations: 402.3 kB / 446.8 MB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004617/0.1445, allocations: 225.6 kB / 447 MB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.1446, allocations: 4 kB / 447.1 MB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003954/0.145, allocations: 279.6 kB / 447.3 MB, free: 7.688 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 1.844e-06/0.145, allocations: 4 kB / 447.3 MB, free: 7.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.002176/0.1472, allocations: 1.411 MB / 448.7 MB, free: 6.156 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.703e-05/0.1473, allocations: 144.4 kB / 448.9 MB, free: 5.984 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003801/0.1477, allocations: 377.6 kB / 449.3 MB, free: 5.609 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.1477, allocations: 29.7 kB / 449.3 MB, free: 5.574 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.148, allocations: 256 kB / 449.5 MB, free: 5.316 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.1481, allocations: 110.5 kB / 449.6 MB, free: 5.207 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.284e-05/0.1481, allocations: 12 kB / 449.6 MB, free: 5.195 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.1483, allocations: 346.8 kB / 450 MB, free: 4.848 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003273/0.1487, allocations: 133 kB / 450.1 MB, free: 4.715 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002956/0.149, allocations: 256.1 kB / 450.4 MB, free: 4.418 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.1492, allocations: 185.6 kB / 450.5 MB, free: 4.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1492, allocations: 0 / 450.5 MB, free: 4.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008291/0.1501, allocations: 0.5383 MB / 451.1 MB, free: 3.672 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.1501, allocations: 33.7 kB / 451.1 MB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.1501, allocations: 4.469 kB / 451.1 MB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002465/0.1504, allocations: 89.66 kB / 451.2 MB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002851/0.1507, allocations: 75.88 kB / 451.3 MB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002297/0.153, allocations: 2.79 MB / 454.1 MB, free: 412 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002658/0.1533, allocations: 31.94 kB / 454.1 MB, free: 380 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.282e-05/0.1533, allocations: 23.98 kB / 454.1 MB, free: 356 kB / 382.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,$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.0002775/0.1536, allocations: 243.3 kB / 454.4 MB, free: 96 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.885e-05/0.1537, allocations: 43.47 kB / 454.4 MB, free: 52 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1933/0.347, allocations: 0.4987 MB / 454.9 MB, free: 51.13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.347, allocations: 6.375 kB / 454.9 MB, free: 51.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.347, allocations: 0 / 454.9 MB, free: 51.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.3471, allocations: 2.391 kB / 454.9 MB, free: 51.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001698/0.3488, allocations: 1.063 MB / 456 MB, free: 50.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3488, allocations: 0 / 456 MB, free: 50.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002027/0.349, allocations: 46.62 kB / 456 MB, free: 50.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002356/0.3492, allocations: 88.27 kB / 456.1 MB, free: 50.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/0.3493, allocations: 10.09 kB / 456.1 MB, free: 50.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/0.3508, allocations: 2.794 MB / 458.9 MB, free: 48.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3508, allocations: 6.875 kB / 458.9 MB, free: 48.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008993/0.3517, allocations: 0.7838 MB / 459.7 MB, free: 48.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.279e-05/0.3518, allocations: 116 kB / 459.8 MB, free: 48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.585e-05/0.3518, allocations: 13.36 kB / 459.8 MB, free: 48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.3521, allocations: 22.41 kB / 459.9 MB, free: 48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.737e-05/0.3522, allocations: 33.17 kB / 459.9 MB, free: 48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.887e-05/0.3522, allocations: 16 kB / 459.9 MB, free: 48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002194/0.3524, allocations: 254.1 kB / 460.2 MB, free: 47.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3525, allocations: 0 / 460.2 MB, free: 47.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004709/0.3529, allocations: 114.5 kB / 460.3 MB, free: 47.91 MB / 382.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 (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.001109/0.354, allocations: 1.343 MB / 461.6 MB, free: 47.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008167/0.3549, allocations: 0.6502 MB / 462.3 MB, free: 46.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3549, allocations: 0 / 462.3 MB, free: 46.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005096/0.3554, allocations: 0.4973 MB / 462.8 MB, free: 46.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005207/0.3559, allocations: 92.55 kB / 462.8 MB, free: 46.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003239/0.3592, allocations: 2.848 MB / 465.7 MB, free: 45.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.3595, allocations: 0.8645 MB / 466.6 MB, free: 44.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002314/0.3597, allocations: 75.72 kB / 466.6 MB, free: 44.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.3599, allocations: 152.9 kB / 466.8 MB, free: 44.85 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3599, allocations: 3.188 kB / 466.8 MB, free: 44.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02295/0.3829, allocations: 8.88 MB / 475.7 MB, free: 44.14 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000153/0.3831, allocations: 198.8 kB / 475.9 MB, free: 43.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.098/2.481, allocations: 0 / 475.9 MB, free: 43.91 MB / 382.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/linux/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) Environment - environmentSimulation: