Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.0008447/0.0008448, allocations: 92.58 kB / 16.3 MB, free: 6.461 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.0008627/0.0008628, allocations: 182.7 kB / 17.19 MB, free: 6.34 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.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2598/0.2598, allocations: 38.07 MB / 330.3 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002691/0.0002692, allocations: 12 kB / 400.1 MB, free: 9.199 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2443, allocations: 59.16 MB / 459.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.006388/0.2508, allocations: 5.973 MB / 465.2 MB, free: 26.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00334/0.2541, allocations: 1.823 MB / 467 MB, free: 24.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005536/0.2547, allocations: 39.47 kB / 467 MB, free: 24.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004904/0.2552, allocations: 138.2 kB / 467.2 MB, free: 24.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009079/0.2561, allocations: 325.9 kB / 467.5 MB, free: 24.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008238/0.257, allocations: 287.3 kB / 467.8 MB, free: 24.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009251/0.2579, allocations: 0.695 MB / 468.5 MB, free: 24.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004073/0.2583, allocations: 271.6 kB / 468.7 MB, free: 23.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006065/0.2589, allocations: 407.4 kB / 469.1 MB, free: 23.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006199/0.2596, allocations: 399.2 kB / 469.5 MB, free: 23.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.931e-05/0.2597, allocations: 39.81 kB / 469.6 MB, free: 23.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001192/0.2598, allocations: 39 kB / 469.6 MB, free: 23.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003246/0.2601, allocations: 275.4 kB / 469.9 MB, free: 23.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.2603, allocations: 154.6 kB / 470 MB, free: 23.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008332/0.2611, allocations: 0.8002 MB / 470.8 MB, free: 23.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.2612, allocations: 0 / 470.8 MB, free: 23.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2612, allocations: 0 / 470.8 MB, free: 23.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.2612, allocations: 1.469 kB / 470.8 MB, free: 23.35 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002199/0.2634, allocations: 1.09 MB / 471.9 MB, free: 22.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.2634, allocations: 8.781 kB / 471.9 MB, free: 22.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001561/0.2636, allocations: 112.4 kB / 472 MB, free: 22.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.2638, allocations: 82.06 kB / 472.1 MB, free: 22.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001251/0.265, allocations: 0.6193 MB / 472.7 MB, free: 22.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000412/0.2654, allocations: 346.5 kB / 473.1 MB, free: 21.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.2656, allocations: 58.81 kB / 473.1 MB, free: 21.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/0.2679, allocations: 1.101 MB / 474.2 MB, free: 21.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.2679, allocations: 3.938 kB / 474.2 MB, free: 21.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.22e-05/0.268, allocations: 22.3 kB / 474.3 MB, free: 21.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.268, allocations: 14.84 kB / 474.3 MB, free: 21.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002531/0.2706, allocations: 1.195 MB / 475.5 MB, free: 20.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004629/0.2752, allocations: 3.269 MB / 478.7 MB, free: 18.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002229/0.2775, allocations: 0.8426 MB / 479.6 MB, free: 18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.8e-05/0.2775, allocations: 13.78 kB / 479.6 MB, free: 17.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001451/0.279, allocations: 0.6832 MB / 480.3 MB, free: 17.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.935e-06/0.279, allocations: 0 / 480.3 MB, free: 17.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003923/0.2829, allocations: 1.556 MB / 481.8 MB, free: 16.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.283, allocations: 140.2 kB / 482 MB, free: 16.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000408/0.2834, allocations: 389.8 kB / 482.3 MB, free: 16.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.23e-05/0.2835, allocations: 39.05 kB / 482.4 MB, free: 16.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.2837, allocations: 297.7 kB / 482.7 MB, free: 16.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.2838, allocations: 167.8 kB / 482.8 MB, free: 16.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.745e-05/0.2838, allocations: 11.53 kB / 482.9 MB, free: 16.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.2839, allocations: 363.1 kB / 483.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008895/0.2848, allocations: 492.9 kB / 483.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009029/0.2857, allocations: 0.5913 MB / 484.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008882/0.2866, allocations: 495.6 kB / 484.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2867, allocations: 0 / 484.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001962/0.2886, allocations: 1.175 MB / 485.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.922e-05/0.2887, allocations: 49.69 kB / 486 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2887, allocations: 4.219 kB / 486 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.2887, allocations: 8 kB / 486 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005524/0.2942, allocations: 1.584 MB / 487.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006929/0.3012, allocations: 4.977 MB / 492.6 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008645/0.3021, allocations: 139.4 kB / 492.7 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.032e-05/0.3022, allocations: 39.97 kB / 492.7 MB, free: 5.789 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004513/0.3026, allocations: 249.2 kB / 493 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.335e-05/0.3027, allocations: 55.38 kB / 493 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00239/0.3051, allocations: 1.106 MB / 494.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3051, allocations: 4 kB / 494.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.3051, allocations: 4 kB / 494.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.3052, allocations: 7.984 kB / 494.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003386/0.3085, allocations: 2.206 MB / 496.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3086, allocations: 0 / 496.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006704/0.3153, allocations: 1.834 MB / 498.2 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.3153, allocations: 4 kB / 498.2 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.782e-05/0.3154, allocations: 15.98 kB / 498.2 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.3154, allocations: 4 kB / 498.2 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3154, allocations: 7.984 kB / 498.2 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003978/0.3194, allocations: 1.958 MB / 0.4885 GB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003482/0.3197, allocations: 216.3 kB / 0.4887 GB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.3198, allocations: 31.98 kB / 0.4887 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006734/0.3205, allocations: 119.9 kB / 0.4888 GB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.3207, allocations: 95.73 kB / 0.4889 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.756e-05/0.3208, allocations: 19.98 kB / 0.4889 GB, free: 13.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003152/0.3211, allocations: 267.1 kB / 0.4892 GB, free: 13.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3211, allocations: 0 / 0.4892 GB, free: 13.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006981/0.3218, allocations: 179.7 kB / 0.4893 GB, free: 13.25 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004559/0.3264, allocations: 2.944 MB / 0.4922 GB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007746/0.3341, allocations: 2.629 MB / 0.4948 GB, free: 7.598 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.3341, allocations: 3.938 kB / 0.4948 GB, free: 7.594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003642/0.3378, allocations: 1.191 MB / 0.496 GB, free: 6.402 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000643/0.3384, allocations: 113.5 kB / 0.4961 GB, free: 6.293 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008883/0.3473, allocations: 6.581 MB / 0.5025 GB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004827/0.3478, allocations: 0.9488 MB / 0.5034 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000532/0.3484, allocations: 152.6 kB / 0.5036 GB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003199/0.3487, allocations: 203.4 kB / 0.5038 GB, free: 14.26 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3487, allocations: 0 / 0.5038 GB, free: 14.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07857/0.4273, allocations: 12.63 MB / 0.5161 GB, free: 1.887 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/0.4275, allocations: 223.4 kB / 0.5163 GB, free: 1.645 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/2.236, allocations: 0 / 0.5163 GB, free: 1.645 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_res.mat does not exist to compare? outputFormat=mat