Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_latest_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_latest_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.0009939/0.0009941, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.001111/0.001112, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 223.3 MB / 241.2 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3234/0.3234, allocations: 38.07 MB / 330.4 MB, free: 14.17 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000343/0.0003432, allocations: 8 kB / 400.2 MB, free: 9.176 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3559, allocations: 59.16 MB / 459.3 MB, free: 30.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.006097/0.3621, allocations: 6.066 MB / 465.4 MB, free: 25.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004375/0.3665, allocations: 2.136 MB / 467.5 MB, free: 24.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008212/0.3674, allocations: 27.78 kB / 467.6 MB, free: 24.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005761/0.368, allocations: 128.7 kB / 467.7 MB, free: 24.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001947/0.3699, allocations: 492.3 kB / 468.2 MB, free: 24.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.3712, allocations: 301.3 kB / 468.5 MB, free: 23.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002371/0.3736, allocations: 1.184 MB / 469.6 MB, free: 23.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001608/0.3752, allocations: 0.7293 MB / 470.4 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009677/0.3762, allocations: 366.7 kB / 470.7 MB, free: 22.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001063/0.3772, allocations: 0.5253 MB / 471.3 MB, free: 22.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.3774, allocations: 37.84 kB / 471.3 MB, free: 22.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.3787, allocations: 465.5 kB / 471.7 MB, free: 22.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005768/0.3792, allocations: 347.4 kB / 472.1 MB, free: 22.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003235/0.3796, allocations: 179.2 kB / 472.3 MB, free: 22.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00159/0.3812, allocations: 0.8891 MB / 473.1 MB, free: 22.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.3812, allocations: 0 / 473.1 MB, free: 22.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3812, allocations: 1.469 kB / 473.2 MB, free: 22.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.954e-05/0.3812, allocations: 0 / 473.2 MB, free: 22.22 MB / 350.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.002616/0.3839, allocations: 1.114 MB / 474.3 MB, free: 21.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.3839, allocations: 9.625 kB / 474.3 MB, free: 21.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001952/0.3841, allocations: 135.9 kB / 474.4 MB, free: 21.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007121/0.3848, allocations: 130.2 kB / 474.5 MB, free: 21.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009015/0.3857, allocations: 0.5457 MB / 475.1 MB, free: 20.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.07e-05/0.3858, allocations: 57.62 kB / 475.1 MB, free: 20.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001835/0.386, allocations: 80.23 kB / 475.2 MB, free: 20.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/0.3878, allocations: 1.081 MB / 476.3 MB, free: 20.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.814e-05/0.3879, allocations: 5.406 kB / 476.3 MB, free: 20.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.118e-05/0.3879, allocations: 32.59 kB / 476.3 MB, free: 20.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001415/0.3881, allocations: 48.36 kB / 476.4 MB, free: 20.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.3899, allocations: 0.9368 MB / 477.3 MB, free: 19.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00526/0.3952, allocations: 4.229 MB / 481.5 MB, free: 16.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.3964, allocations: 0.9492 MB / 482.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006765/0.3971, allocations: 449 kB / 482.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.718e-05/0.3972, allocations: 6.781 kB / 482.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001043/0.3983, allocations: 0.6392 MB / 483.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=92): time 2.615e-06/0.3983, allocations: 4 kB / 483.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.004318/0.4026, allocations: 2.912 MB / 486.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.4027, allocations: 153.6 kB / 486.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004882/0.4032, allocations: 477.7 kB / 487.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.691e-05/0.4033, allocations: 49.62 kB / 487.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/0.4035, allocations: 379.7 kB / 487.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002035/0.4037, allocations: 292.1 kB / 487.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.572e-05/0.4038, allocations: 16 kB / 487.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.4039, allocations: 378.8 kB / 488.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005262/0.4044, allocations: 386.4 kB / 488.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006691/0.4051, allocations: 0.6129 MB / 489.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006368/0.4058, allocations: 492.4 kB / 489.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.4058, allocations: 0 / 489.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002542/0.4083, allocations: 1.517 MB / 491.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.4084, allocations: 35.89 kB / 491.2 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001933/0.4103, allocations: 1.16 MB / 492.4 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00119/0.4115, allocations: 432.5 kB / 492.8 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004457/0.412, allocations: 127.8 kB / 492.9 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00613/0.4181, allocations: 4.704 MB / 497.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007824/0.4189, allocations: 71.89 kB / 497.7 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/0.4191, allocations: 40 kB / 497.7 MB, free: 0.543 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,$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.0005991/0.4197, allocations: 347.3 kB / 498.1 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/0.4199, allocations: 71.11 kB / 498.2 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002053/0.422, allocations: 1.13 MB / 499.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.558e-05/0.422, allocations: 12 kB / 499.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.422, allocations: 7.938 kB / 499.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/0.422, allocations: 7.969 kB / 499.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003624/0.4257, allocations: 2.148 MB / 0.4897 GB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.4257, allocations: 0 / 0.4897 GB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000591/0.4263, allocations: 127.8 kB / 0.4898 GB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001835/0.4265, allocations: 90.53 kB / 0.4899 GB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.652e-05/0.4266, allocations: 19.98 kB / 0.4899 GB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002963/0.4295, allocations: 3.93 MB / 0.4938 GB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.4296, allocations: 3.953 kB / 0.4938 GB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002712/0.4323, allocations: 1.768 MB / 0.4955 GB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002583/0.4326, allocations: 140.2 kB / 0.4956 GB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.4327, allocations: 27.98 kB / 0.4957 GB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006292/0.4334, allocations: 51.95 kB / 0.4957 GB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001999/0.4336, allocations: 88.88 kB / 0.4958 GB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.333e-05/0.4336, allocations: 27.98 kB / 0.4958 GB, free: 5.977 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000418/0.4341, allocations: 323.1 kB / 0.4961 GB, free: 5.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.954e-06/0.4341, allocations: 0 / 0.4961 GB, free: 5.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001097/0.4352, allocations: 251.9 kB / 0.4964 GB, free: 5.414 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 (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.003178/0.4384, allocations: 2.37 MB / 0.4987 GB, free: 2.996 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002452/0.4408, allocations: 1.358 MB / 0.5 GB, free: 1.617 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.4409, allocations: 0 / 0.5 GB, free: 1.617 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.4421, allocations: 0.947 MB / 0.5009 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009469/0.443, allocations: 121.8 kB / 0.5011 GB, free: 0.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/0.4539, allocations: 5.52 MB / 0.5064 GB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008889/0.4549, allocations: 1.033 MB / 0.5075 GB, free: 9.754 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007154/0.4556, allocations: 185.8 kB / 0.5076 GB, free: 9.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005358/0.4561, allocations: 291.3 kB / 0.5079 GB, free: 9.285 MB / 382.1 MB Notification: Performance of SimCode: time 1.913e-06/0.4562, allocations: 0 / 0.5079 GB, free: 9.285 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04104/0.4972, allocations: 17.58 MB / 0.5251 GB, free: 7.945 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002025/0.4975, allocations: 229.8 kB / 0.5253 GB, free: 7.695 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.317/2.814, allocations: 0 / 0.5253 GB, free: 7.695 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker_res.mat does not exist to compare? outputFormat=mat