Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_latest_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.0009727/0.0009729, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.538/1.538, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009105/0.0009105, allocations: 87.47 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1694/0.1694, allocations: 38 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.873e-05/1.886e-05, allocations: 0 / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1134, allocations: 56.32 MB / 467 MB, free: 6.469 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3896/0.5031, allocations: 97.48 MB / 0.5512 GB, free: 13.29 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003197/0.5035, allocations: 103.9 kB / 0.5513 GB, free: 13.18 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04175/0.5452, allocations: 15.95 MB / 0.5669 GB, free: 13.06 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5453, allocations: 3.938 kB / 0.5669 GB, free: 13.06 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.098e-05/0.5453, allocations: 12 kB / 0.5669 GB, free: 13.05 MB / 411.1 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.001549/0.5469, allocations: 0.8675 MB / 0.5678 GB, free: 12.13 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.5469, allocations: 12.02 kB / 0.5678 GB, free: 12.12 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.547, allocations: 71.16 kB / 0.5679 GB, free: 12.05 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002615/0.5497, allocations: 1.155 MB / 0.569 GB, free: 10.86 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.5498, allocations: 88.7 kB / 0.5691 GB, free: 10.75 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.851e-05/0.5499, allocations: 40 kB / 0.5691 GB, free: 10.71 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008172/0.5507, allocations: 494.5 kB / 0.5696 GB, free: 10.23 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009559/0.5517, allocations: 0.6337 MB / 0.5702 GB, free: 9.559 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.5517, allocations: 0 / 0.5702 GB, free: 9.559 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.908e-05/0.5518, allocations: 4 kB / 0.5702 GB, free: 9.555 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.5518, allocations: 12 kB / 0.5702 GB, free: 9.543 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003122/0.5549, allocations: 2.389 MB / 0.5725 GB, free: 7.066 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007155/0.5557, allocations: 397.1 kB / 0.5729 GB, free: 6.645 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002889/0.556, allocations: 179.7 kB / 0.5731 GB, free: 6.461 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.114e-05/0.556, allocations: 4.281 kB / 0.5731 GB, free: 6.457 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003261/0.5563, allocations: 215.4 kB / 0.5733 GB, free: 6.223 MB / 411.1 MB Notification: Performance of pre-optimization done (n=36): time 2.164e-06/0.5563, allocations: 0 / 0.5733 GB, free: 6.223 MB / 411.1 MB Notification: Performance of matching and sorting (n=36): time 0.001047/0.5574, allocations: 407.7 kB / 0.5737 GB, free: 5.816 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.793e-05/0.5575, allocations: 132.5 kB / 0.5738 GB, free: 5.656 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/0.5578, allocations: 278.3 kB / 0.5741 GB, free: 5.379 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.5578, allocations: 25.7 kB / 0.5741 GB, free: 5.348 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.5581, allocations: 331.7 kB / 0.5744 GB, free: 5.016 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.968e-05/0.5582, allocations: 114.4 kB / 0.5745 GB, free: 4.902 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.782e-05/0.5582, allocations: 4 kB / 0.5745 GB, free: 4.898 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.5583, allocations: 346.8 kB / 0.5749 GB, free: 4.551 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.5585, allocations: 104.9 kB / 0.575 GB, free: 4.449 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.5587, allocations: 229.1 kB / 0.5752 GB, free: 4.18 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.5589, allocations: 132.9 kB / 0.5753 GB, free: 4.047 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.559, allocations: 0 / 0.5753 GB, free: 4.047 MB / 411.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009271/0.5599, allocations: 480.6 kB / 0.5758 GB, free: 3.57 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.5599, allocations: 8 kB / 0.5758 GB, free: 3.562 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.5599, allocations: 4 kB / 0.5758 GB, free: 3.559 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003057/0.5603, allocations: 125 kB / 0.5759 GB, free: 3.434 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003082/0.5606, allocations: 91.83 kB / 0.576 GB, free: 3.344 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002224/0.5628, allocations: 1.861 MB / 0.5778 GB, free: 1.367 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003226/0.5631, allocations: 47.62 kB / 0.5779 GB, free: 1.32 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.215e-05/0.5632, allocations: 20 kB / 0.5779 GB, free: 1.301 MB / 411.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = false protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = false 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,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on) * Number of discrete 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.0001735/0.5634, allocations: 123.4 kB / 0.578 GB, free: 1.176 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009082/0.5643, allocations: 421.7 kB / 0.5784 GB, free: 0.7539 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.228e-05/0.5643, allocations: 35.53 kB / 0.5784 GB, free: 0.7188 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009438/0.5653, allocations: 414.9 kB / 0.5788 GB, free: 308 kB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.5653, allocations: 4 kB / 0.5788 GB, free: 304 kB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.5653, allocations: 0 / 0.5788 GB, free: 304 kB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.5653, allocations: 4 kB / 0.5788 GB, free: 300 kB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007503/0.5661, allocations: 0.5854 MB / 0.5794 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5661, allocations: 4.031 kB / 0.5794 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/0.5664, allocations: 47.97 kB / 0.5795 GB, free: 15.61 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002506/0.5666, allocations: 124.7 kB / 0.5796 GB, free: 15.48 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/0.5667, allocations: 3.984 kB / 0.5796 GB, free: 15.48 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002015/0.5687, allocations: 1.861 MB / 0.5814 GB, free: 13.5 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.5687, allocations: 4.031 kB / 0.5814 GB, free: 13.5 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.5699, allocations: 0.6367 MB / 0.582 GB, free: 12.81 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/0.5701, allocations: 156.4 kB / 0.5822 GB, free: 12.64 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.92e-05/0.5702, allocations: 3.984 kB / 0.5822 GB, free: 12.63 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.5704, allocations: 15.98 kB / 0.5822 GB, free: 12.62 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/0.5705, allocations: 39.88 kB / 0.5822 GB, free: 12.58 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.5705, allocations: 12 kB / 0.5822 GB, free: 12.57 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002292/0.5708, allocations: 216.6 kB / 0.5824 GB, free: 12.36 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5708, allocations: 0 / 0.5824 GB, free: 12.36 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0006439/0.5714, allocations: 147.5 kB / 0.5826 GB, free: 12.21 MB / 427.1 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.t0,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on,system.initime) * Number of discrete 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.001515/0.5729, allocations: 1.421 MB / 0.584 GB, free: 10.74 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0007326/0.5737, allocations: 453.7 kB / 0.5844 GB, free: 10.29 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5737, allocations: 4.125 kB / 0.5844 GB, free: 10.28 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003783/0.5741, allocations: 294.1 kB / 0.5847 GB, free: 9.984 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.5746, allocations: 109.5 kB / 0.5848 GB, free: 9.879 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.5764, allocations: 0.9998 MB / 0.5858 GB, free: 8.836 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004936/0.5769, allocations: 0.9405 MB / 0.5867 GB, free: 7.871 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0003121/0.5772, allocations: 76.34 kB / 0.5868 GB, free: 7.793 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.5775, allocations: 199.3 kB / 0.587 GB, free: 7.598 MB / 427.1 MB Notification: Performance of SimCode: time 2.6e-07/0.5775, allocations: 0 / 0.587 GB, free: 7.598 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03296/0.6104, allocations: 10.45 MB / 0.5972 GB, free: 13.15 MB / 443.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002294/0.6107, allocations: 137.7 kB / 0.5973 GB, free: 12.96 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.175/2.786, allocations: 0 / 0.5973 GB, free: 12.96 MB / 443.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat does not exist to compare? outputFormat=mat