Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008191/0.000819, allocations: 89.12 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.543e-05/3.564e-05, allocations: 4.219 kB / 350.7 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1136, allocations: 51.49 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3422/0.4559, allocations: 88.48 MB / 490.6 MB, free: 1.051 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.4562, allocations: 88.5 kB / 490.7 MB, free: 1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03554/0.4918, allocations: 13.01 MB / 0.4919 GB, free: 5.566 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4918, allocations: 0 / 0.4919 GB, free: 5.566 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.487e-05/0.4919, allocations: 34.17 kB / 0.492 GB, free: 5.535 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.001939/0.4938, allocations: 1.009 MB / 0.4929 GB, free: 4.469 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.4939, allocations: 8.031 kB / 0.4929 GB, free: 4.461 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001481/0.494, allocations: 122.5 kB / 0.4931 GB, free: 4.332 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005945/0.4946, allocations: 166.3 kB / 0.4932 GB, free: 4.172 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008452/0.4955, allocations: 0.5317 MB / 0.4937 GB, free: 3.598 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.525e-05/0.4956, allocations: 50 kB / 0.4938 GB, free: 3.547 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.4957, allocations: 75.98 kB / 0.4939 GB, free: 3.473 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.4969, allocations: 0.7109 MB / 0.4946 GB, free: 2.738 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.4969, allocations: 4 kB / 0.4946 GB, free: 2.734 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.038e-05/0.497, allocations: 24 kB / 0.4946 GB, free: 2.711 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/0.497, allocations: 16.34 kB / 0.4946 GB, free: 2.695 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009124/0.4979, allocations: 0.4932 MB / 0.4951 GB, free: 2.203 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003827/0.5018, allocations: 2.694 MB / 0.4977 GB, free: 15.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009135/0.5027, allocations: 0.5186 MB / 0.4982 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004066/0.5031, allocations: 266.5 kB / 0.4985 GB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.366e-05/0.5032, allocations: 4.562 kB / 0.4985 GB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006438/0.5038, allocations: 414.8 kB / 0.4989 GB, free: 14.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 2.424e-06/0.5038, allocations: 0 / 0.4989 GB, free: 14.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.001103/0.505, allocations: 0.6084 MB / 0.4995 GB, free: 13.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.512e-05/0.505, allocations: 119.4 kB / 0.4996 GB, free: 13.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006105/0.5057, allocations: 495.4 kB / 0.5001 GB, free: 12.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.344e-05/0.5057, allocations: 45.7 kB / 0.5001 GB, free: 12.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002752/0.506, allocations: 344.5 kB / 0.5004 GB, free: 12.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.5062, allocations: 206.9 kB / 0.5006 GB, free: 12.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.561e-05/0.5062, allocations: 16 kB / 0.5006 GB, free: 12.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.5064, allocations: 386.7 kB / 0.501 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.5068, allocations: 189.5 kB / 0.5012 GB, free: 11.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004821/0.5073, allocations: 368 kB / 0.5015 GB, free: 11.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004078/0.5077, allocations: 247.3 kB / 0.5018 GB, free: 11.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/0.5077, allocations: 4 kB / 0.5018 GB, free: 11.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001167/0.5089, allocations: 0.7476 MB / 0.5025 GB, free: 10.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000737/0.5096, allocations: 1.864 MB / 0.5043 GB, free: 8.289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.5097, allocations: 8 kB / 0.5043 GB, free: 8.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004859/0.5101, allocations: 152.8 kB / 0.5045 GB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004919/0.5107, allocations: 123.8 kB / 0.5046 GB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002664/0.5133, allocations: 2.316 MB / 0.5069 GB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005702/0.5139, allocations: 91.44 kB / 0.5069 GB, free: 5.473 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.259e-05/0.514, allocations: 28 kB / 0.507 GB, free: 5.441 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.256e-06/0.514, allocations: 4 kB / 0.507 GB, free: 5.438 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001144/0.5152, allocations: 0.6689 MB / 0.5076 GB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.5152, allocations: 12.05 kB / 0.5076 GB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003914/0.5156, allocations: 152.7 kB / 0.5078 GB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004296/0.516, allocations: 117.2 kB / 0.5079 GB, free: 4.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002529/0.5186, allocations: 2.313 MB / 0.5102 GB, free: 2.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005037/0.5191, allocations: 87.5 kB / 0.5102 GB, free: 1.949 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.516e-05/0.5191, allocations: 24 kB / 0.5103 GB, free: 1.926 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean2.y_last,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002259/0.5194, allocations: 160.8 kB / 0.5104 GB, free: 1.762 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.5195, allocations: 75.06 kB / 0.5105 GB, free: 1.688 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.5208, allocations: 0.6514 MB / 0.5111 GB, free: 1.016 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.5208, allocations: 8 kB / 0.5111 GB, free: 1.008 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.5208, allocations: 0 / 0.5111 GB, free: 1.008 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.5208, allocations: 7.938 kB / 0.5111 GB, free: 1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002289/0.5231, allocations: 1.471 MB / 0.5126 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.044e-06/0.5231, allocations: 4 kB / 0.5126 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004192/0.5236, allocations: 87.88 kB / 0.5127 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004143/0.524, allocations: 144.7 kB / 0.5128 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.795e-05/0.5241, allocations: 19.92 kB / 0.5128 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002769/0.5268, allocations: 2.308 MB / 0.5151 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.5268, allocations: 3.938 kB / 0.5151 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00165/0.5285, allocations: 1.019 MB / 0.5161 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003039/0.5288, allocations: 208.1 kB / 0.5163 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.871e-05/0.5289, allocations: 20 kB / 0.5163 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004625/0.5294, allocations: 55.95 kB / 0.5163 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.5296, allocations: 68.45 kB / 0.5164 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-05/0.5296, allocations: 19.98 kB / 0.5164 GB, free: 11.36 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005144/0.5301, allocations: 387.2 kB / 0.5168 GB, free: 10.98 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5302, allocations: 0 / 0.5168 GB, free: 10.98 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0012/0.5314, allocations: 367.1 kB / 0.5171 GB, free: 10.62 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean2.y_last) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.001859/0.5332, allocations: 1.616 MB / 0.5187 GB, free: 8.977 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00204/0.5353, allocations: 1.376 MB / 0.5201 GB, free: 7.562 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.5353, allocations: 0 / 0.5201 GB, free: 7.562 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006572/0.536, allocations: 486.6 kB / 0.5205 GB, free: 7.078 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005567/0.5365, allocations: 113.1 kB / 0.5206 GB, free: 6.977 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002336/0.5389, allocations: 1.157 MB / 0.5218 GB, free: 5.777 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005428/0.5394, allocations: 0.9717 MB / 0.5227 GB, free: 4.773 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005245/0.54, allocations: 131 kB / 0.5228 GB, free: 4.648 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003576/0.5403, allocations: 271.3 kB / 0.5231 GB, free: 4.383 MB / 394.7 MB Notification: Performance of SimCode: time 1.343e-06/0.5403, allocations: 0 / 0.5231 GB, free: 4.383 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03567/0.576, allocations: 17.77 MB / 0.5405 GB, free: 3.055 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/0.5762, allocations: 230.8 kB / 0.5407 GB, free: 2.824 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.46/3.036, allocations: 0 / 0.5407 GB, free: 2.824 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat