Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001443/0.001443, allocations: 175.4 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.248/1.248, allocations: 205.4 MB / 222.2 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007325/0.0007325, allocations: 80.88 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1663/0.1663, allocations: 38.08 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003117, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2145, allocations: 56.33 MB / 479.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.005173/0.2197, allocations: 6.439 MB / 486.2 MB, free: 4.914 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002062/0.2218, allocations: 1.874 MB / 488.1 MB, free: 3.559 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00026/0.222, allocations: 32.62 kB / 488.1 MB, free: 3.547 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000477/0.2225, allocations: 212.7 kB / 488.3 MB, free: 3.441 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006248/0.2232, allocations: 380.8 kB / 488.7 MB, free: 3.227 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003627/0.2235, allocations: 189.7 kB / 488.8 MB, free: 3.133 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009153/0.2245, allocations: 1.163 MB / 490 MB, free: 2.656 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004477/0.2249, allocations: 423.4 kB / 490.4 MB, free: 2.473 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004214/0.2253, allocations: 371.2 kB / 490.8 MB, free: 2.324 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005107/0.2259, allocations: 444.3 kB / 491.2 MB, free: 2.168 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.366e-05/0.226, allocations: 36.56 kB / 491.3 MB, free: 2.168 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.2261, allocations: 37.03 kB / 491.3 MB, free: 2.168 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.2263, allocations: 225.1 kB / 491.5 MB, free: 2.094 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002822/0.2266, allocations: 356 kB / 491.9 MB, free: 1.883 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007172/0.2273, allocations: 0.8143 MB / 492.7 MB, free: 1.711 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2273, allocations: 1.094 kB / 492.7 MB, free: 1.711 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2273, allocations: 0 / 492.7 MB, free: 1.711 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.2273, allocations: 0 / 492.7 MB, free: 1.711 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001444/0.2288, allocations: 0.9096 MB / 493.6 MB, free: 1.098 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.2288, allocations: 9.125 kB / 493.6 MB, free: 1.098 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.2289, allocations: 107.6 kB / 493.7 MB, free: 1.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.2291, allocations: 81.81 kB / 493.8 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009255/0.23, allocations: 0.6123 MB / 494.4 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.2301, allocations: 119.6 kB / 494.5 MB, free: 488 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.681e-05/0.2302, allocations: 62.56 kB / 494.6 MB, free: 464 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.2314, allocations: 0.7585 MB / 495.3 MB, free: 100 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.2314, allocations: 0.6094 kB / 495.3 MB, free: 100 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.235e-05/0.2315, allocations: 29.73 kB / 495.4 MB, free: 76 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.44e-05/0.2315, allocations: 15.5 kB / 495.4 MB, free: 76 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.2327, allocations: 0.6283 MB / 496 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003147/0.2359, allocations: 2.46 MB / 498.5 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008312/0.2367, allocations: 427.1 kB / 498.9 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003892/0.2371, allocations: 200.4 kB / 499.1 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.2372, allocations: 3.969 kB / 499.1 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004269/0.2376, allocations: 257.4 kB / 499.3 MB, free: 13.7 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 2.103e-06/0.2376, allocations: 0 / 499.3 MB, free: 13.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.002965/0.2406, allocations: 0.8774 MB / 0.4885 GB, free: 13.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.443e-05/0.2407, allocations: 134.6 kB / 0.4886 GB, free: 13.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000394/0.2411, allocations: 400.1 kB / 0.489 GB, free: 12.76 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.2411, allocations: 30.86 kB / 0.489 GB, free: 12.73 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.2413, allocations: 320.7 kB / 0.4893 GB, free: 12.44 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.2414, allocations: 117.7 kB / 0.4894 GB, free: 12.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-05/0.2414, allocations: 6.188 kB / 0.4894 GB, free: 12.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.2416, allocations: 358.1 kB / 0.4898 GB, free: 11.99 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002758/0.2419, allocations: 129 kB / 0.4899 GB, free: 11.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003329/0.2422, allocations: 245.1 kB / 0.4901 GB, free: 11.72 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.2436, allocations: 0.6495 MB / 0.4908 GB, free: 11.3 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.2436, allocations: 1.375 kB / 0.4908 GB, free: 11.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001249/0.2449, allocations: 0.5587 MB / 0.4913 GB, free: 11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.2449, allocations: 10.41 kB / 0.4913 GB, free: 11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.2449, allocations: 4.406 kB / 0.4913 GB, free: 11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004424/0.2454, allocations: 157.3 kB / 0.4915 GB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.2456, allocations: 69.38 kB / 0.4916 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002917/0.2486, allocations: 2.053 MB / 0.4936 GB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002973/0.2489, allocations: 50.86 kB / 0.4936 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.97e-05/0.2489, allocations: 16.81 kB / 0.4936 GB, free: 9.035 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002917/0.2492, allocations: 250.3 kB / 0.4939 GB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.801e-05/0.2493, allocations: 49.75 kB / 0.4939 GB, free: 8.809 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/0.2505, allocations: 483.6 kB / 0.4944 GB, free: 8.527 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.2505, allocations: 9.516 kB / 0.4944 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.2505, allocations: 1.188 kB / 0.4944 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.2505, allocations: 1.094 kB / 0.4944 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007038/0.2512, allocations: 0.6783 MB / 0.495 GB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2512, allocations: 5 kB / 0.4951 GB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002311/0.2515, allocations: 52 kB / 0.4951 GB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003965/0.2519, allocations: 137.8 kB / 0.4952 GB, free: 7.867 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.92e-05/0.2519, allocations: 11 kB / 0.4952 GB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00279/0.2547, allocations: 2.034 MB / 0.4972 GB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.2547, allocations: 1.031 kB / 0.4972 GB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.2562, allocations: 0.6991 MB / 0.4979 GB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.2564, allocations: 147.8 kB / 0.4981 GB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.046e-05/0.2564, allocations: 11.66 kB / 0.4981 GB, free: 5.449 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.2567, allocations: 20.28 kB / 0.4981 GB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.2568, allocations: 39.52 kB / 0.4981 GB, free: 5.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/0.2568, allocations: 12.69 kB / 0.4981 GB, free: 5.41 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002826/0.2571, allocations: 274.9 kB / 0.4984 GB, free: 5.238 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2571, allocations: 0 / 0.4984 GB, free: 5.238 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005461/0.2577, allocations: 167.2 kB / 0.4986 GB, free: 5.195 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001695/0.2594, allocations: 1.23 MB / 0.4998 GB, free: 4.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009033/0.2603, allocations: 0.5084 MB / 0.5003 GB, free: 3.938 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2603, allocations: 0 / 0.5003 GB, free: 3.938 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005059/0.2608, allocations: 338.1 kB / 0.5006 GB, free: 3.707 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006764/0.2615, allocations: 143.1 kB / 0.5007 GB, free: 3.641 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005033/0.2665, allocations: 3.398 MB / 0.504 GB, free: 0.9141 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.267, allocations: 0.925 MB / 0.5049 GB, free: 15.96 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002344/0.2672, allocations: 195.3 kB / 0.5051 GB, free: 15.77 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2673, allocations: 0 / 0.5051 GB, free: 15.77 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.553/3.82, allocations: 12.01 MB / 0.5169 GB, free: 3.734 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)