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.001006/0.001006, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.001019/0.001019, allocations: 181.3 kB / 17.19 MB, free: 5.906 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.262/1.262, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2696/0.2696, allocations: 38.08 MB / 330.3 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000311/0.000311, allocations: 16 kB / 400.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2674, allocations: 59.15 MB / 459.2 MB, free: 30.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.005176/0.2726, allocations: 5.822 MB / 465 MB, free: 26.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002814/0.2755, allocations: 2.149 MB / 467.2 MB, free: 24.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002765/0.2758, allocations: 27.34 kB / 467.2 MB, free: 24.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003282/0.2761, allocations: 132 kB / 467.3 MB, free: 24.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008755/0.277, allocations: 430.2 kB / 467.8 MB, free: 24.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006285/0.2776, allocations: 298.2 kB / 468.1 MB, free: 24.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005673/0.2782, allocations: 0.5655 MB / 468.6 MB, free: 24.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008931/0.2791, allocations: 0.724 MB / 469.3 MB, free: 23.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003641/0.2795, allocations: 324 kB / 469.7 MB, free: 23.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004827/0.28, allocations: 410.8 kB / 470.1 MB, free: 23.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.734e-05/0.2801, allocations: 38.12 kB / 470.1 MB, free: 23.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006647/0.2807, allocations: 428.6 kB / 470.5 MB, free: 23.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000307/0.2811, allocations: 320.8 kB / 470.8 MB, free: 23.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001511/0.2812, allocations: 179.5 kB / 471 MB, free: 23.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009195/0.2821, allocations: 0.8893 MB / 471.9 MB, free: 22.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.2821, allocations: 0 / 471.9 MB, free: 22.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2822, allocations: 0 / 471.9 MB, free: 22.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.348e-05/0.2822, allocations: 1.031 kB / 471.9 MB, free: 22.82 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.001839/0.284, allocations: 1.114 MB / 473 MB, free: 22.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.2841, allocations: 10.09 kB / 473 MB, free: 22.08 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001355/0.2842, allocations: 131.8 kB / 473.2 MB, free: 21.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006095/0.2848, allocations: 138.2 kB / 473.3 MB, free: 21.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008079/0.2856, allocations: 0.546 MB / 473.8 MB, free: 21.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-05/0.2857, allocations: 56.81 kB / 473.9 MB, free: 21.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001643/0.2859, allocations: 84.78 kB / 474 MB, free: 21.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.2872, allocations: 1.07 MB / 475 MB, free: 20.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.2873, allocations: 1 kB / 475 MB, free: 20.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.247e-05/0.2873, allocations: 32.69 kB / 475.1 MB, free: 20.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001178/0.2875, allocations: 53.03 kB / 475.1 MB, free: 20.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.2887, allocations: 0.9289 MB / 476.1 MB, free: 20.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004041/0.2927, allocations: 4.233 MB / 480.3 MB, free: 16.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.2937, allocations: 0.944 MB / 481.2 MB, free: 16.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.568e-05/0.2938, allocations: 12.22 kB / 481.2 MB, free: 16.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007441/0.2946, allocations: 0.6347 MB / 481.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=92): time 2.866e-06/0.2946, allocations: 0 / 481.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.003686/0.2983, allocations: 3.066 MB / 484.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.2983, allocations: 149.5 kB / 485.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000369/0.2987, allocations: 477.7 kB / 485.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.125e-05/0.2988, allocations: 49.73 kB / 485.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.2989, allocations: 379.7 kB / 486 MB, free: 12.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.2991, allocations: 280.1 kB / 486.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.055e-05/0.2991, allocations: 23.94 kB / 486.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.379e-05/0.2992, allocations: 386.8 kB / 486.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004423/0.2996, allocations: 382.4 kB / 487 MB, free: 11.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005101/0.3001, allocations: 0.6167 MB / 487.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005012/0.3007, allocations: 480.5 kB / 488.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3007, allocations: 0 / 488.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002157/0.3028, allocations: 1.51 MB / 489.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.3029, allocations: 33.7 kB / 489.7 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001724/0.3046, allocations: 1.148 MB / 490.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.3057, allocations: 440.6 kB / 491.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004077/0.3061, allocations: 139.7 kB / 491.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005379/0.3115, allocations: 4.853 MB / 496.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005673/0.3121, allocations: 67.95 kB / 496.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.496e-05/0.3121, allocations: 47.92 kB / 496.3 MB, free: 1.91 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.0004098/0.3125, allocations: 343.3 kB / 496.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.3127, allocations: 71.14 kB / 496.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001432/0.3141, allocations: 1.134 MB / 497.9 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/0.3141, allocations: 12 kB / 497.9 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3141, allocations: 4 kB / 497.9 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.966e-06/0.3142, allocations: 3.984 kB / 497.9 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003013/0.3172, allocations: 2.144 MB / 0.4883 GB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3172, allocations: 3.938 kB / 0.4883 GB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005966/0.3178, allocations: 127.8 kB / 0.4884 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001588/0.318, allocations: 90.55 kB / 0.4885 GB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-05/0.318, allocations: 27.91 kB / 0.4886 GB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002873/0.3209, allocations: 3.942 MB / 0.4924 GB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.3209, allocations: 7.969 kB / 0.4924 GB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002571/0.3235, allocations: 1.801 MB / 0.4942 GB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.3237, allocations: 144.2 kB / 0.4943 GB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.3238, allocations: 23.98 kB / 0.4943 GB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004741/0.3243, allocations: 63.94 kB / 0.4944 GB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.3245, allocations: 84.83 kB / 0.4945 GB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.728e-05/0.3245, allocations: 24 kB / 0.4945 GB, free: 7.273 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004155/0.325, allocations: 319.1 kB / 0.4948 GB, free: 6.961 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.325, allocations: 0 / 0.4948 GB, free: 6.961 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001063/0.326, allocations: 252 kB / 0.495 GB, free: 6.715 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.002852/0.3289, allocations: 2.601 MB / 0.4976 GB, free: 4.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002173/0.3311, allocations: 1.342 MB / 0.4989 GB, free: 2.695 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.3311, allocations: 0.6875 kB / 0.4989 GB, free: 2.695 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.3322, allocations: 0.9462 MB / 0.4998 GB, free: 1.695 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005546/0.3327, allocations: 104.5 kB / 0.4999 GB, free: 1.594 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009344/0.3421, allocations: 9.866 MB / 0.5095 GB, free: 7.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006234/0.3427, allocations: 1.045 MB / 0.5106 GB, free: 6.445 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005399/0.3433, allocations: 197.8 kB / 0.5108 GB, free: 6.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003713/0.3437, allocations: 287.3 kB / 0.511 GB, free: 5.969 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3437, allocations: 0 / 0.511 GB, free: 5.969 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04879/0.3925, allocations: 17.59 MB / 0.5282 GB, free: 4.617 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002089/0.3927, allocations: 227.7 kB / 0.5284 GB, free: 4.367 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.059/2.451, allocations: 0 / 0.5284 GB, free: 4.367 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