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.001203/0.001203, allocations: 95.61 kB / 16.3 MB, free: 5.996 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.001359/0.001359, allocations: 184.3 kB / 17.2 MB, free: 5.914 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.642/1.642, allocations: 205.4 MB / 223.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3058/0.3058, allocations: 38.05 MB / 309.7 MB, free: 8.852 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.0004931/0.0004932, allocations: 12 kB / 376.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1175, allocations: 56.34 MB / 432.9 MB, free: 6.641 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.00511/0.1227, allocations: 5.057 MB / 438 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.1245, allocations: 1.353 MB / 439.3 MB, free: 204 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002115/0.1247, allocations: 23.81 kB / 439.4 MB, free: 180 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002626/0.125, allocations: 91.41 kB / 439.4 MB, free: 88 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005285/0.1255, allocations: 259.1 kB / 439.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.1258, allocations: 151.7 kB / 439.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003937/0.1262, allocations: 379.2 kB / 440.2 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002299/0.1265, allocations: 143.2 kB / 440.4 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002824/0.1268, allocations: 227.2 kB / 440.6 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003544/0.1271, allocations: 243.1 kB / 440.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.928e-05/0.1272, allocations: 20 kB / 440.8 MB, free: 14.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.01e-05/0.1273, allocations: 23.94 kB / 440.9 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001679/0.1274, allocations: 167.5 kB / 441 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.986e-05/0.1275, allocations: 113.5 kB / 441.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003311/0.1279, allocations: 410.9 kB / 441.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.1279, allocations: 0 / 441.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1279, allocations: 0 / 441.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.1279, allocations: 0 / 441.5 MB, free: 13.98 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.001247/0.1292, allocations: 0.7607 MB / 442.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.1292, allocations: 12.03 kB / 442.3 MB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.473e-05/0.1293, allocations: 78.53 kB / 442.4 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.819e-05/0.1294, allocations: 51.34 kB / 442.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006686/0.1301, allocations: 415.4 kB / 442.8 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.1301, allocations: 29 kB / 442.9 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.548e-05/0.1302, allocations: 32 kB / 442.9 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006757/0.1309, allocations: 490.4 kB / 443.4 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.1309, allocations: 0 / 443.4 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.001e-05/0.131, allocations: 19.98 kB / 443.4 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001042/0.1311, allocations: 32.62 kB / 443.4 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000557/0.1316, allocations: 366.6 kB / 443.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002333/0.134, allocations: 1.715 MB / 445.5 MB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006466/0.1346, allocations: 406.2 kB / 445.9 MB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.1347, allocations: 4.062 kB / 445.9 MB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004661/0.1352, allocations: 287.5 kB / 446.2 MB, free: 9.047 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 1.874e-06/0.1352, allocations: 4 kB / 446.2 MB, free: 9.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.002352/0.1375, allocations: 1.487 MB / 447.7 MB, free: 7.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.62e-05/0.1376, allocations: 140.5 kB / 447.8 MB, free: 7.254 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003655/0.138, allocations: 373.6 kB / 448.2 MB, free: 6.883 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.138, allocations: 37.7 kB / 448.2 MB, free: 6.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.1382, allocations: 252 kB / 448.5 MB, free: 6.586 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.906e-05/0.1383, allocations: 110.5 kB / 448.6 MB, free: 6.477 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.884e-05/0.1383, allocations: 8 kB / 448.6 MB, free: 6.469 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1385, allocations: 350.8 kB / 448.9 MB, free: 6.117 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002268/0.1387, allocations: 133 kB / 449 MB, free: 5.984 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002782/0.139, allocations: 260.1 kB / 449.3 MB, free: 5.684 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002472/0.1392, allocations: 173.7 kB / 449.5 MB, free: 5.508 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1393, allocations: 0 / 449.5 MB, free: 5.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008122/0.1401, allocations: 0.55 MB / 450 MB, free: 4.938 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.1401, allocations: 33.7 kB / 450.1 MB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.1401, allocations: 4.469 kB / 450.1 MB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002806/0.1404, allocations: 89.64 kB / 450.1 MB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.1407, allocations: 71.89 kB / 450.2 MB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002208/0.1429, allocations: 2.818 MB / 453 MB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002816/0.1432, allocations: 27.98 kB / 453.1 MB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/0.1433, allocations: 19.95 kB / 453.1 MB, free: 1.598 MB / 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.0002567/0.1435, allocations: 239.5 kB / 453.3 MB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.754e-05/0.1436, allocations: 43.52 kB / 453.4 MB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008282/0.1444, allocations: 0.4928 MB / 453.9 MB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.1445, allocations: 7.953 kB / 453.9 MB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.1445, allocations: 4 kB / 453.9 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.1445, allocations: 7.922 kB / 453.9 MB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2013/0.3458, allocations: 1.057 MB / 454.9 MB, free: 51.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.809e-06/0.3459, allocations: 0 / 454.9 MB, free: 51.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002313/0.3461, allocations: 40.55 kB / 455 MB, free: 51.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002975/0.3464, allocations: 86.67 kB / 455.1 MB, free: 51.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.397e-05/0.3465, allocations: 14.31 kB / 455.1 MB, free: 51.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001659/0.3481, allocations: 2.824 MB / 457.9 MB, free: 48.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3481, allocations: 0 / 457.9 MB, free: 48.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.3492, allocations: 0.7989 MB / 458.7 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.3493, allocations: 113.4 kB / 458.8 MB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.314e-05/0.3494, allocations: 12.09 kB / 458.8 MB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.3497, allocations: 29.7 kB / 458.8 MB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.3498, allocations: 37.42 kB / 458.9 MB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.333e-05/0.3498, allocations: 11.47 kB / 458.9 MB, free: 48.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002946/0.3501, allocations: 261.5 kB / 459.1 MB, free: 48.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3501, allocations: 0 / 459.1 MB, free: 48.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005126/0.3507, allocations: 113.8 kB / 459.3 MB, free: 48.14 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.001148/0.3518, allocations: 1.5 MB / 460.8 MB, free: 47.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008767/0.3527, allocations: 0.6395 MB / 461.4 MB, free: 46.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3527, allocations: 3.156 kB / 461.4 MB, free: 46.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005155/0.3532, allocations: 0.4949 MB / 461.9 MB, free: 46.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004442/0.3537, allocations: 81.86 kB / 462 MB, free: 46.67 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003627/0.3573, allocations: 5.23 MB / 467.2 MB, free: 43.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.3576, allocations: 0.8758 MB / 468.1 MB, free: 42.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002238/0.3579, allocations: 74.73 kB / 468.2 MB, free: 42.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.3581, allocations: 155.8 kB / 468.3 MB, free: 42.5 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3581, allocations: 0 / 468.3 MB, free: 42.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0185/0.3766, allocations: 8.847 MB / 477.2 MB, free: 41.81 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001332/0.3767, allocations: 204.3 kB / 477.3 MB, free: 41.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.895/2.272, allocations: 3.938 kB / 477.4 MB, free: 41.56 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: