Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.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.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter",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.0008617/0.0008615, allocations: 98.69 kB / 16.3 MB, free: 5.988 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.0009272/0.0009273, allocations: 178.8 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.252/1.252, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2784/0.2784, allocations: 38.07 MB / 330.3 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002769/0.000277, allocations: 8 kB / 400.1 MB, free: 9.219 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2371, allocations: 59.16 MB / 459.2 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.006397/0.2436, allocations: 7.152 MB / 466.4 MB, free: 25.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004632/0.2483, allocations: 2.396 MB / 468.8 MB, free: 23.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.2494, allocations: 54 kB / 468.8 MB, free: 23.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004951/0.2499, allocations: 151.8 kB / 469 MB, free: 23.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001764/0.2517, allocations: 0.5203 MB / 469.5 MB, free: 22.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00123/0.2529, allocations: 387.2 kB / 469.9 MB, free: 22.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001069/0.254, allocations: 0.7495 MB / 470.6 MB, free: 22.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001396/0.2554, allocations: 0.9017 MB / 471.5 MB, free: 21.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009063/0.2563, allocations: 454.1 kB / 472 MB, free: 21.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006779/0.257, allocations: 480 kB / 472.4 MB, free: 21.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000116/0.2572, allocations: 43.06 kB / 472.5 MB, free: 21.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009819/0.2582, allocations: 432.9 kB / 472.9 MB, free: 21.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005312/0.2587, allocations: 420 kB / 473.3 MB, free: 21.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002726/0.259, allocations: 214.7 kB / 473.5 MB, free: 21.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001448/0.2604, allocations: 1.144 MB / 474.7 MB, free: 21.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2604, allocations: 0 / 474.7 MB, free: 21.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2605, allocations: 8.641 kB / 474.7 MB, free: 21.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.2605, allocations: 1.469 kB / 474.7 MB, free: 21.03 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002773/0.2633, allocations: 1.38 MB / 476 MB, free: 20.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.2633, allocations: 9.625 kB / 476.1 MB, free: 20.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000186/0.2635, allocations: 154.7 kB / 476.2 MB, free: 19.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007525/0.2643, allocations: 161.2 kB / 476.4 MB, free: 19.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.2654, allocations: 0.6785 MB / 477 MB, free: 19.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.2656, allocations: 175.4 kB / 477.2 MB, free: 19.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/0.2658, allocations: 103.9 kB / 477.3 MB, free: 19.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002397/0.2682, allocations: 1.535 MB / 478.9 MB, free: 18.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.638e-05/0.2683, allocations: 9.906 kB / 478.9 MB, free: 18.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.763e-05/0.2684, allocations: 44.98 kB / 478.9 MB, free: 18.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001536/0.2685, allocations: 70.92 kB / 479 MB, free: 18.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002071/0.2706, allocations: 1.181 MB / 480.2 MB, free: 17.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005585/0.2762, allocations: 4.789 MB / 484.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002425/0.2787, allocations: 1.192 MB / 486.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.561e-05/0.2787, allocations: 8.625 kB / 486.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.2799, allocations: 0.7341 MB / 486.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.765e-06/0.2799, allocations: 4 kB / 486.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=81): time 0.005842/0.2857, allocations: 3.375 MB / 490.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.2858, allocations: 123.4 kB / 490.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005156/0.2863, allocations: 0.581 MB / 491 MB, free: 7.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.15e-05/0.2864, allocations: 57.62 kB / 491 MB, free: 7.613 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.2866, allocations: 455 kB / 491.5 MB, free: 7.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/0.2868, allocations: 284.2 kB / 491.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-05/0.2868, allocations: 19.94 kB / 491.8 MB, free: 6.859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.755e-05/0.2869, allocations: 390.7 kB / 492.1 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005135/0.2874, allocations: 466 kB / 492.6 MB, free: 6.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006016/0.288, allocations: 0.719 MB / 493.3 MB, free: 5.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006256/0.2887, allocations: 0.5938 MB / 493.9 MB, free: 4.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.2887, allocations: 4 kB / 493.9 MB, free: 4.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001773/0.2905, allocations: 1.534 MB / 495.4 MB, free: 3.012 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.615e-05/0.2905, allocations: 63.72 kB / 495.5 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001372/0.2919, allocations: 1.286 MB / 496.8 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003156/0.2922, allocations: 101.6 kB / 496.9 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006674/0.2929, allocations: 199.6 kB / 497.1 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/0.2951, allocations: 3.009 MB / 0.4884 GB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000635/0.2958, allocations: 84.08 kB / 0.4885 GB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.2959, allocations: 71.95 kB / 0.4885 GB, free: 13.9 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006013/0.2965, allocations: 377.4 kB / 0.4889 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.2966, allocations: 75.06 kB / 0.489 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002634/0.2993, allocations: 1.302 MB / 0.4902 GB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.128e-05/0.2993, allocations: 20 kB / 0.4902 GB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2993, allocations: 0 / 0.4902 GB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.2993, allocations: 3.984 kB / 0.4902 GB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004143/0.3035, allocations: 2.456 MB / 0.4926 GB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3035, allocations: 4 kB / 0.4927 GB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006965/0.3042, allocations: 151.8 kB / 0.4928 GB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.842e-05/0.3043, allocations: 28.94 kB / 0.4928 GB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.345e-05/0.3044, allocations: 23.97 kB / 0.4928 GB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009674/0.3054, allocations: 1.4 MB / 0.4942 GB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3054, allocations: 0 / 0.4942 GB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003743/0.3091, allocations: 2.019 MB / 0.4962 GB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004599/0.3096, allocations: 240 kB / 0.4964 GB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000192/0.3098, allocations: 79.94 kB / 0.4965 GB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007228/0.3105, allocations: 103.9 kB / 0.4966 GB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.3107, allocations: 60.53 kB / 0.4966 GB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-05/0.3107, allocations: 31.97 kB / 0.4967 GB, free: 5.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005287/0.3113, allocations: 394.8 kB / 0.4971 GB, free: 4.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3113, allocations: 0 / 0.4971 GB, free: 4.793 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001044/0.3123, allocations: 236 kB / 0.4973 GB, free: 4.562 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 64 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004516/0.3168, allocations: 2.915 MB / 0.5001 GB, free: 1.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002943/0.3198, allocations: 1.639 MB / 0.5017 GB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3198, allocations: 0 / 0.5017 GB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.3211, allocations: 0.6786 MB / 0.5024 GB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008397/0.322, allocations: 145.1 kB / 0.5025 GB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/0.3341, allocations: 12.11 MB / 0.5144 GB, free: 2.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007773/0.335, allocations: 1.134 MB / 0.5155 GB, free: 1.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006885/0.3357, allocations: 238.5 kB / 0.5157 GB, free: 1.262 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004489/0.3361, allocations: 331.3 kB / 0.516 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of SimCode: time 5.72e-07/0.3361, allocations: 0 / 0.516 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03258/0.3687, allocations: 17.87 MB / 0.5335 GB, free: 15.31 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002166/0.369, allocations: 208.2 kB / 0.5337 GB, free: 15.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/2.231, allocations: 0 / 0.5337 GB, free: 15.07 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.mat does not exist to compare? outputFormat=mat