Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 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.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_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.001257/0.001257, allocations: 95.08 kB / 16.3 MB, free: 5.285 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.001424/0.001424, allocations: 182.5 kB / 17.2 MB, free: 5.195 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.394/1.394, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1754/0.1754, allocations: 38.05 MB / 309.7 MB, free: 6.125 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.0005806/0.0005809, allocations: 19.12 kB / 376.6 MB, free: 3.098 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2507, allocations: 56.32 MB / 432.9 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.00499/0.2557, allocations: 5.83 MB / 438.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002985/0.2588, allocations: 2.191 MB / 440.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003201/0.2591, allocations: 31.75 kB / 441 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003583/0.2595, allocations: 123.2 kB / 441.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009015/0.2604, allocations: 430.7 kB / 441.5 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005859/0.261, allocations: 303.3 kB / 441.8 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000489/0.2615, allocations: 0.5661 MB / 442.4 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000822/0.2623, allocations: 0.7183 MB / 443.1 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003227/0.2626, allocations: 330.8 kB / 443.4 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004216/0.2631, allocations: 414.6 kB / 443.8 MB, free: 7.832 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.493e-05/0.2632, allocations: 36 kB / 443.8 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005314/0.2637, allocations: 423.4 kB / 444.3 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002511/0.264, allocations: 319.2 kB / 444.6 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.2641, allocations: 177.3 kB / 444.7 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006355/0.2648, allocations: 0.8963 MB / 445.6 MB, free: 5.992 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2648, allocations: 4 kB / 445.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.2648, allocations: 0 / 445.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.2648, allocations: 0 / 445.6 MB, free: 5.988 MB / 318.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.001766/0.2666, allocations: 1.116 MB / 446.8 MB, free: 4.809 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.2666, allocations: 8.031 kB / 446.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/0.2667, allocations: 130.9 kB / 446.9 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006102/0.2673, allocations: 138.8 kB / 447 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007605/0.2681, allocations: 0.5375 MB / 447.6 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.054e-05/0.2682, allocations: 58 kB / 447.6 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/0.2683, allocations: 83.97 kB / 447.7 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.2696, allocations: 1.076 MB / 448.8 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.709e-05/0.2696, allocations: 11.92 kB / 448.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.125e-05/0.2697, allocations: 32 kB / 448.8 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001138/0.2698, allocations: 45.98 kB / 448.9 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.271, allocations: 0.9289 MB / 449.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004667/0.2757, allocations: 4.227 MB / 454 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001303/0.277, allocations: 0.9498 MB / 455 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.761e-05/0.277, allocations: 8.625 kB / 455 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008833/0.2779, allocations: 0.6357 MB / 455.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=92): time 2.154e-06/0.2779, allocations: 0 / 455.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=93): time 0.00434/0.2823, allocations: 3.06 MB / 458.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.435e-05/0.2824, allocations: 153.5 kB / 458.8 MB, free: 8.145 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005091/0.2829, allocations: 477.7 kB / 459.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.303e-05/0.283, allocations: 45.69 kB / 459.3 MB, free: 7.617 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002463/0.2832, allocations: 379.7 kB / 459.7 MB, free: 7.238 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.2835, allocations: 284.1 kB / 460 MB, free: 6.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.403e-05/0.2835, allocations: 20 kB / 460 MB, free: 6.938 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.2837, allocations: 386.7 kB / 460.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005622/0.2842, allocations: 390.4 kB / 460.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000757/0.285, allocations: 0.6051 MB / 461.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000682/0.2857, allocations: 484.4 kB / 461.8 MB, free: 4.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.2857, allocations: 4 kB / 461.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002846/0.2885, allocations: 1.506 MB / 463.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.785e-05/0.2886, allocations: 41.64 kB / 463.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002127/0.2907, allocations: 1.153 MB / 464.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/0.292, allocations: 432.5 kB / 465 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004792/0.2925, allocations: 139.7 kB / 465.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007096/0.2996, allocations: 4.86 MB / 470 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007323/0.3004, allocations: 71.94 kB / 470 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.189e-05/0.3005, allocations: 40 kB / 470.1 MB, free: 12.6 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.0005694/0.3011, allocations: 351.1 kB / 470.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.3012, allocations: 71.16 kB / 470.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001755/0.303, allocations: 1.126 MB / 471.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.573e-05/0.303, allocations: 19.98 kB / 471.6 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.303, allocations: 0 / 471.6 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.3031, allocations: 7.984 kB / 471.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003131/0.3062, allocations: 2.14 MB / 473.8 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.3062, allocations: 4 kB / 473.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005988/0.3068, allocations: 131.8 kB / 473.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001555/0.307, allocations: 86.61 kB / 474 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-05/0.3071, allocations: 23.97 kB / 474 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00271/0.3098, allocations: 3.934 MB / 478 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3098, allocations: 0 / 478 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002467/0.3123, allocations: 1.789 MB / 479.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.3125, allocations: 148.3 kB / 479.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.3126, allocations: 35.97 kB / 479.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004485/0.313, allocations: 59.95 kB / 480 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002038/0.3132, allocations: 84.81 kB / 480.1 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-05/0.3133, allocations: 23.98 kB / 480.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003873/0.3137, allocations: 327 kB / 480.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3137, allocations: 4 kB / 480.4 MB, free: 1.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009394/0.3147, allocations: 252 kB / 480.7 MB, free: 1.406 MB / 350.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.002827/0.3175, allocations: 2.59 MB / 483.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002148/0.3197, allocations: 1.35 MB / 484.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3197, allocations: 0 / 484.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.3207, allocations: 0.9462 MB / 485.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005374/0.3213, allocations: 103.2 kB / 485.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009175/0.3305, allocations: 9.861 MB / 495.5 MB, free: 2.223 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006358/0.3312, allocations: 1.057 MB / 496.6 MB, free: 1.137 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005369/0.3317, allocations: 193.8 kB / 496.8 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003895/0.3321, allocations: 283.3 kB / 497 MB, free: 0.668 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3321, allocations: 0 / 497 MB, free: 0.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03405/0.3662, allocations: 17.58 MB / 0.5026 GB, free: 15.12 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/0.3664, allocations: 212.3 kB / 0.5028 GB, free: 14.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.12/2.486, allocations: 4.062 kB / 0.5028 GB, free: 14.88 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1) Environment - environmentSimulation: