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.00123/0.001231, allocations: 112.8 kB / 17.06 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.001119/0.001119, allocations: 198.9 kB / 18 MB, free: 5.078 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.402/1.402, allocations: 205.1 MB / 223.9 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1768/0.1768, allocations: 37.99 MB / 309.2 MB, free: 5.957 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.001451/0.001451, allocations: 63.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1126, allocations: 55.24 MB / 486.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.007549/0.1202, allocations: 5.313 MB / 491.9 MB, free: 3.496 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002334/0.1226, allocations: 1.208 MB / 493.1 MB, free: 2.281 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003848/0.123, allocations: 15.94 kB / 493.1 MB, free: 2.266 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003982/0.1234, allocations: 91.19 kB / 493.2 MB, free: 2.176 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008171/0.1242, allocations: 318.4 kB / 493.5 MB, free: 1.863 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003657/0.1246, allocations: 135.8 kB / 493.7 MB, free: 1.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007772/0.1254, allocations: 0.732 MB / 494.4 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003045/0.1257, allocations: 188.8 kB / 494.6 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004241/0.1262, allocations: 318.7 kB / 494.9 MB, free: 0.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005391/0.1267, allocations: 366.7 kB / 495.3 MB, free: 144 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.12e-05/0.1268, allocations: 40 kB / 495.3 MB, free: 104 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.679e-05/0.1269, allocations: 43.94 kB / 495.3 MB, free: 60 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002086/0.1271, allocations: 195.5 kB / 495.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002305/0.1273, allocations: 262.7 kB / 495.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005444/0.1279, allocations: 0.5489 MB / 496.3 MB, free: 15.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1279, allocations: 3.938 kB / 496.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1279, allocations: 0 / 496.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.1279, allocations: 8 kB / 496.4 MB, free: 15.05 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.001723/0.1297, allocations: 0.8152 MB / 497.2 MB, free: 14.17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.771e-05/0.1297, allocations: 19.83 kB / 497.2 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.1298, allocations: 86.66 kB / 497.3 MB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.13, allocations: 48.38 kB / 497.3 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007968/0.1308, allocations: 448.5 kB / 497.8 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.589e-05/0.1308, allocations: 36.94 kB / 497.8 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.977e-05/0.1309, allocations: 36 kB / 497.8 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000843/0.1317, allocations: 486.5 kB / 498.3 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.1318, allocations: 0 / 498.3 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.263e-05/0.1318, allocations: 19.98 kB / 498.3 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001108/0.1319, allocations: 32.62 kB / 498.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005751/0.1325, allocations: 366.6 kB / 498.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.1348, allocations: 1.711 MB / 0.4887 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006136/0.1354, allocations: 400 kB / 0.4891 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003981/0.1358, allocations: 213.6 kB / 0.4893 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.1358, allocations: 4 kB / 0.4893 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000415/0.1363, allocations: 275.8 kB / 0.4895 GB, free: 9.816 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 1.823e-06/0.1363, allocations: 0 / 0.4895 GB, free: 9.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.002323/0.1386, allocations: 1.396 MB / 0.4909 GB, free: 8.305 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.447e-05/0.1387, allocations: 144.5 kB / 0.491 GB, free: 8.133 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003522/0.1391, allocations: 365.8 kB / 0.4914 GB, free: 7.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.1391, allocations: 41.7 kB / 0.4914 GB, free: 7.723 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.1393, allocations: 255.9 kB / 0.4917 GB, free: 7.465 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.1e-05/0.1394, allocations: 114.5 kB / 0.4918 GB, free: 7.352 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.1395, allocations: 86.16 kB / 0.4919 GB, free: 7.262 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1396, allocations: 350.8 kB / 0.4922 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002186/0.1399, allocations: 137 kB / 0.4923 GB, free: 6.777 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.1402, allocations: 252.1 kB / 0.4926 GB, free: 6.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005198/0.1407, allocations: 449.4 kB / 0.493 GB, free: 5.973 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1407, allocations: 0 / 0.493 GB, free: 5.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008061/0.1415, allocations: 0.5385 MB / 0.4935 GB, free: 5.414 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.745e-05/0.1416, allocations: 33.7 kB / 0.4936 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.1416, allocations: 4 kB / 0.4936 GB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003322/0.1419, allocations: 78.14 kB / 0.4936 GB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.1422, allocations: 75.83 kB / 0.4937 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002308/0.1445, allocations: 3.003 MB / 0.4966 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.1448, allocations: 27.92 kB / 0.4967 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.164e-05/0.1448, allocations: 16 kB / 0.4967 GB, free: 1.891 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,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.0002696/0.1451, allocations: 243.4 kB / 0.4969 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.564e-05/0.1452, allocations: 43.52 kB / 0.497 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008173/0.146, allocations: 0.4927 MB / 0.4974 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.146, allocations: 4 kB / 0.4974 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.146, allocations: 7.938 kB / 0.4975 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.146, allocations: 3.938 kB / 0.4975 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.1475, allocations: 1.061 MB / 0.4985 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.1475, allocations: 0 / 0.4985 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.1477, allocations: 43.91 kB / 0.4985 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002359/0.148, allocations: 81.64 kB / 0.4986 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.148, allocations: 12 kB / 0.4986 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002169/0.1502, allocations: 3.011 MB / 0.5016 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.1502, allocations: 0 / 0.5016 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.1513, allocations: 0.773 MB / 0.5023 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.1514, allocations: 116.5 kB / 0.5024 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.893e-05/0.1515, allocations: 20.06 kB / 0.5025 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.1517, allocations: 23.97 kB / 0.5025 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.276e-05/0.1518, allocations: 31.95 kB / 0.5025 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.919e-05/0.1519, allocations: 12 kB / 0.5025 GB, free: 11.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002734/0.1521, allocations: 259.2 kB / 0.5028 GB, free: 11.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1521, allocations: 0 / 0.5028 GB, free: 11.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004922/0.1526, allocations: 116 kB / 0.5029 GB, free: 11.11 MB / 398.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.001425/0.1541, allocations: 1.322 MB / 0.5042 GB, free: 9.742 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009019/0.155, allocations: 0.633 MB / 0.5048 GB, free: 9.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.155, allocations: 7.938 kB / 0.5048 GB, free: 9.062 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005995/0.1556, allocations: 497.6 kB / 0.5053 GB, free: 8.539 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005432/0.1562, allocations: 89.38 kB / 0.5054 GB, free: 8.449 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004815/0.161, allocations: 4.116 MB / 0.5094 GB, free: 4.117 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004093/0.1614, allocations: 0.8704 MB / 0.5102 GB, free: 3.223 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002259/0.1617, allocations: 71.36 kB / 0.5103 GB, free: 3.152 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.1619, allocations: 159.4 kB / 0.5104 GB, free: 2.996 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1619, allocations: 0 / 0.5104 GB, free: 2.996 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03302/0.1949, allocations: 9.651 MB / 0.5199 GB, free: 9.281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.744/9.939, allocations: 8.047 kB / 0.5199 GB, free: 9.273 MB / 414.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)