Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009397/0.0009398, allocations: 199.5 kB / 18.07 MB, free: 3.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 226.5 MB / 245.4 MB, free: 6.441 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007262/0.0007262, allocations: 100.8 kB / 297.4 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001983/0.0001983, allocations: 8 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.1813, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09253/0.2739, allocations: 88.36 MB / 497 MB, free: 3.207 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/0.2742, allocations: 91.94 kB / 497.1 MB, free: 3.117 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03253/0.3067, allocations: 13.01 MB / 0.4982 GB, free: 6.035 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3068, allocations: 0 / 0.4982 GB, free: 6.035 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.378e-05/0.3068, allocations: 20 kB / 0.4982 GB, free: 6.016 MB / 378.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.001776/0.3086, allocations: 1.089 MB / 0.4993 GB, free: 4.859 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.3086, allocations: 12.03 kB / 0.4993 GB, free: 4.848 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005432/0.3092, allocations: 163.7 kB / 0.4994 GB, free: 4.688 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007645/0.31, allocations: 0.5637 MB / 0.5 GB, free: 4.082 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.449e-05/0.31, allocations: 62.36 kB / 0.5 GB, free: 4.023 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.3101, allocations: 72.38 kB / 0.5001 GB, free: 3.953 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.3114, allocations: 0.7737 MB / 0.5009 GB, free: 3.148 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.3114, allocations: 4.188 kB / 0.5009 GB, free: 3.145 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.005e-05/0.3115, allocations: 27.94 kB / 0.5009 GB, free: 3.117 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.3115, allocations: 20 kB / 0.5009 GB, free: 3.098 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001176/0.3127, allocations: 0.6024 MB / 0.5015 GB, free: 2.492 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1628/0.4755, allocations: 2.678 MB / 0.5041 GB, free: 90.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001496/0.4771, allocations: 0.6191 MB / 0.5047 GB, free: 90.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006626/0.4778, allocations: 322.7 kB / 0.505 GB, free: 90.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.361e-05/0.4778, allocations: 11.14 kB / 0.505 GB, free: 90.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009083/0.4787, allocations: 466.1 kB / 0.5055 GB, free: 90.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 2.595e-06/0.4788, allocations: 0.6562 kB / 0.5055 GB, free: 90.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.003375/0.4821, allocations: 1.272 MB / 0.5067 GB, free: 90.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.4822, allocations: 113 kB / 0.5068 GB, free: 90.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007574/0.483, allocations: 0.5531 MB / 0.5074 GB, free: 89.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.773e-05/0.4831, allocations: 44.44 kB / 0.5074 GB, free: 89.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002603/0.4833, allocations: 338.7 kB / 0.5077 GB, free: 89.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001688/0.4835, allocations: 203.6 kB / 0.5079 GB, free: 89.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.001e-05/0.4835, allocations: 12.59 kB / 0.508 GB, free: 89.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.4837, allocations: 382 kB / 0.5083 GB, free: 89.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006255/0.4843, allocations: 253 kB / 0.5086 GB, free: 89.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000641/0.485, allocations: 433.6 kB / 0.509 GB, free: 89.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.4861, allocations: 0.6652 MB / 0.5096 GB, free: 88.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.4861, allocations: 1.219 kB / 0.5096 GB, free: 88.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00149/0.4876, allocations: 0.8692 MB / 0.5105 GB, free: 88.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.4877, allocations: 263.7 kB / 0.5107 GB, free: 88.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.4877, allocations: 10.53 kB / 0.5107 GB, free: 88.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004478/0.4882, allocations: 152.7 kB / 0.5109 GB, free: 88.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004305/0.4886, allocations: 121.9 kB / 0.511 GB, free: 88.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.4908, allocations: 2.326 MB / 0.5133 GB, free: 87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005565/0.4914, allocations: 94.52 kB / 0.5134 GB, free: 86.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.857e-05/0.4915, allocations: 28.7 kB / 0.5134 GB, free: 86.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.354e-06/0.4915, allocations: 3.75 kB / 0.5134 GB, free: 86.97 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00122/0.4927, allocations: 0.7598 MB / 0.5141 GB, free: 86.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.4927, allocations: 3.938 kB / 0.5141 GB, free: 86.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003592/0.4931, allocations: 161.1 kB / 0.5143 GB, free: 86.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003807/0.4935, allocations: 118.2 kB / 0.5144 GB, free: 86.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002015/0.4955, allocations: 2.317 MB / 0.5167 GB, free: 84.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005185/0.4961, allocations: 74.25 kB / 0.5167 GB, free: 84.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.143e-05/0.4961, allocations: 34.16 kB / 0.5168 GB, free: 84.73 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 () * Number of clocked 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.0004474/0.4966, allocations: 321.6 kB / 0.5171 GB, free: 84.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.4967, allocations: 69.81 kB / 0.5171 GB, free: 84.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.4982, allocations: 0.7788 MB / 0.5179 GB, free: 84.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.4982, allocations: 7.719 kB / 0.5179 GB, free: 84.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.4982, allocations: 0 / 0.5179 GB, free: 84.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.4982, allocations: 3.516 kB / 0.5179 GB, free: 84.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/0.5005, allocations: 1.584 MB / 0.5195 GB, free: 83.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.5005, allocations: 0 / 0.5195 GB, free: 83.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003676/0.5009, allocations: 89.72 kB / 0.5195 GB, free: 83.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003604/0.5013, allocations: 140.6 kB / 0.5197 GB, free: 83.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.601e-05/0.5013, allocations: 19.42 kB / 0.5197 GB, free: 83.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002154/0.5035, allocations: 2.317 MB / 0.522 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.5035, allocations: 0 / 0.522 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001916/0.5054, allocations: 1.185 MB / 0.5231 GB, free: 80.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002946/0.5057, allocations: 215.3 kB / 0.5233 GB, free: 80.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.5059, allocations: 21.58 kB / 0.5233 GB, free: 80.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004313/0.5063, allocations: 49.36 kB / 0.5234 GB, free: 80.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.5065, allocations: 66.98 kB / 0.5235 GB, free: 80.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.833e-05/0.5065, allocations: 24.56 kB / 0.5235 GB, free: 80.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004392/0.507, allocations: 383 kB / 0.5238 GB, free: 80.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.507, allocations: 0 / 0.5238 GB, free: 80.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001132/0.5081, allocations: 372.8 kB / 0.5242 GB, free: 80.37 MB / 378.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) * Number of clocked states: 0 () * 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.0002027/0.5083, allocations: 148.8 kB / 0.5243 GB, free: 80.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002382/0.5107, allocations: 1.519 MB / 0.5258 GB, free: 79.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.5107, allocations: 0 / 0.5258 GB, free: 79.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007646/0.5115, allocations: 0.5419 MB / 0.5264 GB, free: 79.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000701/0.5122, allocations: 126.7 kB / 0.5265 GB, free: 79.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.5146, allocations: 1.668 MB / 0.5281 GB, free: 77.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.515, allocations: 0.9507 MB / 0.529 GB, free: 76.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.5152, allocations: 53.53 kB / 0.5291 GB, free: 76.92 MB / 378.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5152, allocations: 4 kB / 0.5291 GB, free: 76.91 MB / 378.7 MB Notification: Performance of Templates: time 0.01414/0.5293, allocations: 12.54 MB / 0.5413 GB, free: 66.91 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_R/SinglePhaseTwoLevel_R.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches