Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009335/0.0009336, allocations: 171.8 kB / 16.07 MB, free: 5.602 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.245/1.245, allocations: 205.4 MB / 222.2 MB, free: 13.73 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007047/0.0007047, allocations: 94.2 kB / 270.6 MB, free: 13.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1794/0.1794, allocations: 38.07 MB / 356.9 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003179/0.0003179, allocations: 12 kB / 423.4 MB, free: 25.98 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08461/0.08494, allocations: 56.34 MB / 479.7 MB, free: 1.59 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.005825/0.0908, allocations: 6.095 MB / 485.8 MB, free: 11.46 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003212/0.09404, allocations: 2.187 MB / 488 MB, free: 9.27 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002965/0.09436, allocations: 27.81 kB / 488.1 MB, free: 9.242 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003588/0.09473, allocations: 127 kB / 488.2 MB, free: 9.117 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009679/0.09571, allocations: 485.8 kB / 488.7 MB, free: 8.641 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006866/0.0964, allocations: 315.5 kB / 489 MB, free: 8.332 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.09745, allocations: 1.196 MB / 490.2 MB, free: 7.133 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001048/0.09851, allocations: 0.7691 MB / 490.9 MB, free: 6.328 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004477/0.09897, allocations: 362.4 kB / 491.3 MB, free: 5.973 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005958/0.09957, allocations: 0.5257 MB / 491.8 MB, free: 5.445 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.918e-05/0.09966, allocations: 39.94 kB / 491.8 MB, free: 5.406 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007048/0.1004, allocations: 0.4914 MB / 492.3 MB, free: 4.914 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003003/0.1007, allocations: 347.1 kB / 492.7 MB, free: 4.574 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003798/0.1011, allocations: 423.7 kB / 493.1 MB, free: 4.152 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007354/0.1018, allocations: 0.8885 MB / 494 MB, free: 3.262 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1018, allocations: 0 / 494 MB, free: 3.262 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.757e-06/0.1018, allocations: 0 / 494 MB, free: 3.262 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.1019, allocations: 3.938 kB / 494 MB, free: 3.258 MB / 330.7 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.001922/0.1038, allocations: 1.101 MB / 495.1 MB, free: 2.098 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.1038, allocations: 12.03 kB / 495.1 MB, free: 2.086 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001351/0.104, allocations: 123.1 kB / 495.2 MB, free: 1.957 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005901/0.1046, allocations: 135.7 kB / 495.3 MB, free: 1.824 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000785/0.1054, allocations: 0.5579 MB / 495.9 MB, free: 1.227 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.983e-05/0.1054, allocations: 58.36 kB / 496 MB, free: 1.168 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.1056, allocations: 87.92 kB / 496 MB, free: 1.082 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.1071, allocations: 1.08 MB / 497.1 MB, free: 15.94 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/0.1071, allocations: 3.938 kB / 497.1 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.418e-05/0.1072, allocations: 35.91 kB / 497.2 MB, free: 15.9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.1074, allocations: 53.97 kB / 497.2 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.1087, allocations: 0.9289 MB / 498.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00472/0.1135, allocations: 4.235 MB / 0.4906 GB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.1146, allocations: 0.9337 MB / 0.4915 GB, free: 9.496 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000584/0.1152, allocations: 447.4 kB / 0.4919 GB, free: 9.055 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.87e-05/0.1153, allocations: 12.56 kB / 0.492 GB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008618/0.1161, allocations: 0.6357 MB / 0.4926 GB, free: 8.379 MB / 346.7 MB Notification: Performance of pre-optimization done (n=92): time 2.585e-06/0.1161, allocations: 0 / 0.4926 GB, free: 8.379 MB / 346.7 MB Notification: Performance of matching and sorting (n=93): time 0.004171/0.1203, allocations: 2.889 MB / 0.4954 GB, free: 5.355 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.684e-05/0.1204, allocations: 157.5 kB / 0.4955 GB, free: 5.172 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004838/0.1209, allocations: 469.7 kB / 0.496 GB, free: 4.699 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.055e-05/0.121, allocations: 57.72 kB / 0.4961 GB, free: 4.637 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002458/0.1212, allocations: 375.7 kB / 0.4964 GB, free: 4.262 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.1214, allocations: 284.1 kB / 0.4967 GB, free: 3.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.765e-05/0.1215, allocations: 20 kB / 0.4967 GB, free: 3.961 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1216, allocations: 378.8 kB / 0.4971 GB, free: 3.582 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005642/0.1222, allocations: 390.4 kB / 0.4974 GB, free: 3.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006962/0.1229, allocations: 0.6168 MB / 0.498 GB, free: 2.492 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.1242, allocations: 1.071 MB / 0.4991 GB, free: 1.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1242, allocations: 0 / 0.4991 GB, free: 1.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002739/0.127, allocations: 1.517 MB / 0.5006 GB, free: 15.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.536e-05/0.127, allocations: 37.69 kB / 0.5006 GB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002142/0.1292, allocations: 1.164 MB / 0.5017 GB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001267/0.1304, allocations: 428.5 kB / 0.5021 GB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004138/0.1309, allocations: 131.7 kB / 0.5023 GB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006593/0.1375, allocations: 4.698 MB / 0.5069 GB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005744/0.1381, allocations: 71.94 kB / 0.5069 GB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-05/0.1381, allocations: 40 kB / 0.507 GB, free: 9.078 MB / 362.7 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,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.breaker.breaker_a.arc,breaker.breaker_a.arc,$PRE.breaker.breaker_a.open,breaker.breaker_a.open,breaker.breaker_a.closed,$PRE.breaker.breaker_a.t0,breaker.breaker_a.t0,breaker.breaker_a.opening,$PRE.breaker.breaker_b.arc,breaker.breaker_b.arc,$PRE.breaker.breaker_b.open,breaker.breaker_b.open,breaker.breaker_b.closed,$PRE.breaker.breaker_b.t0,breaker.breaker_b.t0,breaker.breaker_b.opening,$PRE.breaker.breaker_c.arc,breaker.breaker_c.arc,$PRE.breaker.breaker_c.open,breaker.breaker_c.open,breaker.breaker_c.closed,$PRE.breaker.breaker_c.t0,breaker.breaker_c.t0,breaker.breaker_c.opening,$PRE.relay.y[1],relay.y[1],$PRE.relay.y[2],relay.y[2],$PRE.relay.y[3],relay.y[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0004439/0.1386, allocations: 351.1 kB / 0.5073 GB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.1387, allocations: 75.14 kB / 0.5074 GB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001673/0.1404, allocations: 1.115 MB / 0.5085 GB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.249e-05/0.1404, allocations: 23.92 kB / 0.5085 GB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1405, allocations: 8 kB / 0.5085 GB, free: 7.477 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.1405, allocations: 7.984 kB / 0.5085 GB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002988/0.1435, allocations: 2.14 MB / 0.5106 GB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.1435, allocations: 0 / 0.5106 GB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005672/0.1441, allocations: 123.8 kB / 0.5107 GB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001545/0.1442, allocations: 82.61 kB / 0.5108 GB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.864e-05/0.1443, allocations: 31.86 kB / 0.5108 GB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00247/0.1468, allocations: 3.906 MB / 0.5146 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.1468, allocations: 11.91 kB / 0.5146 GB, free: 0.6875 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1784/0.3252, allocations: 1.754 MB / 0.5164 GB, free: 51.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.3254, allocations: 137.1 kB / 0.5165 GB, free: 51.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/0.3255, allocations: 26.23 kB / 0.5165 GB, free: 51.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004981/0.326, allocations: 58.28 kB / 0.5166 GB, free: 51.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002439/0.3263, allocations: 81.39 kB / 0.5166 GB, free: 51.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.634e-05/0.3264, allocations: 28.17 kB / 0.5167 GB, free: 51.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003745/0.3268, allocations: 318.2 kB / 0.517 GB, free: 51.76 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3268, allocations: 2.219 kB / 0.517 GB, free: 51.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008693/0.3276, allocations: 261 kB / 0.5172 GB, free: 51.76 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(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.002817/0.3305, allocations: 2.356 MB / 0.5195 GB, free: 50.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00218/0.3327, allocations: 1.346 MB / 0.5208 GB, free: 50.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3327, allocations: 0 / 0.5208 GB, free: 50.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.3338, allocations: 0.9363 MB / 0.5218 GB, free: 49.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000732/0.3345, allocations: 109.8 kB / 0.5219 GB, free: 49.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00894/0.3434, allocations: 5.59 MB / 0.5273 GB, free: 47.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006367/0.3441, allocations: 1.044 MB / 0.5283 GB, free: 46.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004335/0.3446, allocations: 289.9 kB / 0.5286 GB, free: 46.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.583e-06/0.3446, allocations: 0 / 0.5286 GB, free: 46.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.815/5.159, allocations: 18.37 MB / 0.5466 GB, free: 33.37 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)