Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 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.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_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.0007292/0.0007294, allocations: 94.27 kB / 16.65 MB, free: 6.586 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.0008766/0.0008766, allocations: 185.2 kB / 17.57 MB, free: 6.203 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.397/1.397, allocations: 205.4 MB / 223.7 MB, free: 13.09 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1819/0.1819, allocations: 38.05 MB / 310.1 MB, free: 6.004 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.0007589/0.0007592, allocations: 15.98 kB / 377.3 MB, free: 2.703 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2774, allocations: 56.32 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.006648/0.2841, allocations: 7.93 MB / 441.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003743/0.2879, allocations: 2.521 MB / 444 MB, free: 8.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004375/0.2883, allocations: 51.62 kB / 444.1 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002995/0.2886, allocations: 119.2 kB / 444.2 MB, free: 8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009941/0.2896, allocations: 0.5058 MB / 444.7 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006101/0.2902, allocations: 359.4 kB / 445.1 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.2915, allocations: 1.925 MB / 447 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001161/0.2926, allocations: 1.023 MB / 448 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005744/0.2932, allocations: 0.4939 MB / 448.5 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006663/0.2939, allocations: 0.6502 MB / 449.2 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.049e-05/0.294, allocations: 48 kB / 449.2 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006538/0.2946, allocations: 0.4953 MB / 449.7 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003035/0.295, allocations: 450.8 kB / 450.1 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003545/0.2953, allocations: 0.5147 MB / 450.7 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008967/0.2962, allocations: 1.448 MB / 452.1 MB, free: 32 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.2962, allocations: 0 / 452.1 MB, free: 32 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2962, allocations: 0 / 452.1 MB, free: 32 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.2963, allocations: 0 / 452.1 MB, free: 32 kB / 318.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.002578/0.2988, allocations: 1.361 MB / 453.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.2989, allocations: 15.97 kB / 453.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002089/0.2991, allocations: 160.3 kB / 453.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007347/0.2999, allocations: 163.5 kB / 453.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.3009, allocations: 0.6903 MB / 454.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.3011, allocations: 175.4 kB / 454.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000225/0.3013, allocations: 107.9 kB / 454.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002654/0.304, allocations: 1.559 MB / 456.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.907e-05/0.304, allocations: 3.938 kB / 456.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/0.3042, allocations: 35.98 kB / 456.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001629/0.3043, allocations: 73.97 kB / 456.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002207/0.3065, allocations: 1.19 MB / 457.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006109/0.3127, allocations: 4.801 MB / 462.4 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002976/0.3157, allocations: 1.195 MB / 463.6 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.317, allocations: 0.5857 MB / 464.2 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.959e-05/0.3171, allocations: 16.53 kB / 464.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001486/0.3186, allocations: 0.7492 MB / 465 MB, free: 2.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=80): time 2.044e-06/0.3186, allocations: 0 / 465 MB, free: 2.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=81): time 0.00734/0.3259, allocations: 3.303 MB / 468.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.551e-05/0.326, allocations: 131.4 kB / 468.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007313/0.3268, allocations: 0.5964 MB / 469 MB, free: 14.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.596e-05/0.3269, allocations: 49.7 kB / 469 MB, free: 14.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003825/0.3273, allocations: 451.1 kB / 469.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000243/0.3275, allocations: 276.2 kB / 469.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.3277, allocations: 101.7 kB / 469.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.3279, allocations: 390.8 kB / 470.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006609/0.3285, allocations: 482 kB / 470.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008375/0.3294, allocations: 0.746 MB / 471.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.3309, allocations: 1.254 MB / 472.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.3309, allocations: 8 kB / 472.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002264/0.3332, allocations: 1.581 MB / 474.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.872e-05/0.3333, allocations: 65.61 kB / 474.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001773/0.335, allocations: 1.325 MB / 475.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003868/0.3354, allocations: 121.6 kB / 475.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007106/0.3362, allocations: 199.7 kB / 476 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002635/0.3388, allocations: 3.087 MB / 479.1 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006808/0.3395, allocations: 71.94 kB / 479.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.3396, allocations: 80.03 kB / 479.2 MB, free: 3.719 MB / 350.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,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005918/0.3402, allocations: 369.4 kB / 479.6 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.3404, allocations: 79.05 kB / 479.7 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002805/0.3432, allocations: 1.329 MB / 481 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.309e-05/0.3432, allocations: 23.92 kB / 481 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3432, allocations: 0 / 481 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.3432, allocations: 7.984 kB / 481 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004203/0.3475, allocations: 2.475 MB / 483.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3475, allocations: 0 / 483.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006911/0.3482, allocations: 147.7 kB / 483.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001009/0.3483, allocations: 36.94 kB / 483.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.333e-05/0.3484, allocations: 31.97 kB / 483.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.3495, allocations: 1.47 MB / 485.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.3495, allocations: 7.875 kB / 485.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003844/0.3534, allocations: 1.989 MB / 487.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003511/0.3537, allocations: 248 kB / 487.4 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/0.3539, allocations: 71.95 kB / 487.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007425/0.3547, allocations: 111.9 kB / 487.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.3548, allocations: 48.66 kB / 487.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.224e-05/0.3549, allocations: 35.97 kB / 487.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004657/0.3553, allocations: 402.8 kB / 488.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3553, allocations: 0 / 488.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009161/0.3563, allocations: 240.2 kB / 488.3 MB, free: 10.3 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 (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0042/0.3605, allocations: 2.623 MB / 490.9 MB, free: 7.602 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00266/0.3632, allocations: 1.654 MB / 492.6 MB, free: 5.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.3632, allocations: 0 / 492.6 MB, free: 5.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001266/0.3644, allocations: 0.6793 MB / 493.3 MB, free: 5.223 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.3655, allocations: 178.7 kB / 493.4 MB, free: 5.047 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01277/0.3783, allocations: 9.917 MB / 0.4916 GB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000702/0.379, allocations: 1.122 MB / 0.4927 GB, free: 9.562 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006624/0.3797, allocations: 230.5 kB / 0.4929 GB, free: 9.332 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004371/0.3801, allocations: 335.3 kB / 0.4932 GB, free: 9.004 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3801, allocations: 0 / 0.4932 GB, free: 9.004 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03491/0.415, allocations: 17.61 MB / 0.5104 GB, free: 7.43 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002181/0.4153, allocations: 210.2 kB / 0.5106 GB, free: 7.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.088/2.503, allocations: 0 / 0.5106 GB, free: 7.18 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)