Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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_4.0.0_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_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 221.3 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008437/0.0008436, allocations: 99.48 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.985e-05/3.001e-05, allocations: 4 kB / 343.8 MB, free: 4.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09545/0.09549, allocations: 50.41 MB / 394.3 MB, free: 1.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2876/0.3831, allocations: 86.49 MB / 480.8 MB, free: 1.027 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.3834, allocations: 83.78 kB / 480.8 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0343/0.4178, allocations: 12.62 MB / 493.5 MB, free: 4.258 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4178, allocations: 3.938 kB / 493.5 MB, free: 4.254 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.447e-05/0.4178, allocations: 23.94 kB / 493.5 MB, free: 4.23 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.001791/0.4196, allocations: 0.9878 MB / 494.5 MB, free: 3.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.4197, allocations: 8.031 kB / 494.5 MB, free: 3.172 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.4199, allocations: 98.86 kB / 494.6 MB, free: 3.074 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008052/0.4207, allocations: 0.5163 MB / 495.1 MB, free: 2.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.237e-05/0.4208, allocations: 57.95 kB / 495.2 MB, free: 2.461 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.4209, allocations: 75.91 kB / 495.2 MB, free: 2.387 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.4221, allocations: 0.7109 MB / 495.9 MB, free: 1.652 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.4221, allocations: 4 kB / 495.9 MB, free: 1.648 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.844e-05/0.4222, allocations: 24 kB / 496 MB, free: 1.625 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.4222, allocations: 16 kB / 496 MB, free: 1.609 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009123/0.4231, allocations: 0.4894 MB / 496.5 MB, free: 1.121 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004417/0.4276, allocations: 2.664 MB / 499.1 MB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009784/0.4286, allocations: 0.5336 MB / 499.7 MB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004227/0.429, allocations: 262.5 kB / 499.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.011e-05/0.4291, allocations: 12.56 kB / 499.9 MB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006646/0.4298, allocations: 409.7 kB / 0.4886 GB, free: 13.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 2.435e-06/0.4298, allocations: 0 / 0.4886 GB, free: 13.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.001132/0.4309, allocations: 0.6046 MB / 0.4892 GB, free: 12.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.767e-05/0.431, allocations: 115.4 kB / 0.4893 GB, free: 12.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005863/0.4316, allocations: 472.9 kB / 0.4898 GB, free: 11.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.546e-05/0.4317, allocations: 41.7 kB / 0.4898 GB, free: 11.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002346/0.4319, allocations: 332.5 kB / 0.4901 GB, free: 11.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/0.4321, allocations: 205.2 kB / 0.4903 GB, free: 11.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.4321, allocations: 16 kB / 0.4903 GB, free: 11.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.4323, allocations: 378.8 kB / 0.4907 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003377/0.4326, allocations: 189.5 kB / 0.4909 GB, free: 10.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004765/0.4331, allocations: 367.8 kB / 0.4912 GB, free: 10.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003964/0.4335, allocations: 251.3 kB / 0.4915 GB, free: 10.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.4335, allocations: 0 / 0.4915 GB, free: 10.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001196/0.4347, allocations: 0.7515 MB / 0.4922 GB, free: 9.289 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006143/0.4353, allocations: 1.856 MB / 0.494 GB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.4354, allocations: 4 kB / 0.494 GB, free: 7.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004828/0.4359, allocations: 148.8 kB / 0.4942 GB, free: 7.133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004941/0.4364, allocations: 127.8 kB / 0.4943 GB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002587/0.439, allocations: 2.318 MB / 0.4965 GB, free: 4.555 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005444/0.4395, allocations: 91.38 kB / 0.4966 GB, free: 4.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.371e-05/0.4396, allocations: 28 kB / 0.4967 GB, free: 4.438 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.235e-06/0.4396, allocations: 8 kB / 0.4967 GB, free: 4.43 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001115/0.4407, allocations: 0.6652 MB / 0.4973 GB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.4407, allocations: 4 kB / 0.4973 GB, free: 3.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003929/0.4411, allocations: 156.6 kB / 0.4975 GB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004458/0.4416, allocations: 119.7 kB / 0.4976 GB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002514/0.4441, allocations: 2.299 MB / 0.4998 GB, free: 1.047 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005694/0.4447, allocations: 83.5 kB / 0.4999 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.974e-05/0.4448, allocations: 28 kB / 0.4999 GB, free: 0.9375 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.0002256/0.445, allocations: 168.9 kB / 0.5001 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.4451, allocations: 67.16 kB / 0.5002 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00119/0.4463, allocations: 0.6629 MB / 0.5008 GB, free: 16 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.4463, allocations: 8 kB / 0.5008 GB, free: 8 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.4463, allocations: 0 / 0.5008 GB, free: 8 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.4464, allocations: 3.984 kB / 0.5008 GB, free: 4 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.4484, allocations: 1.471 MB / 0.5022 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.4484, allocations: 0 / 0.5022 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004316/0.4489, allocations: 83.88 kB / 0.5023 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003939/0.4493, allocations: 142.3 kB / 0.5025 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.92e-05/0.4493, allocations: 19.98 kB / 0.5025 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002464/0.4518, allocations: 2.305 MB / 0.5047 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.4518, allocations: 0 / 0.5047 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.4534, allocations: 1.019 MB / 0.5057 GB, free: 10.76 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002764/0.4537, allocations: 212.1 kB / 0.5059 GB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.654e-05/0.4538, allocations: 12 kB / 0.5059 GB, free: 10.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004511/0.4542, allocations: 51.95 kB / 0.506 GB, free: 10.47 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.4544, allocations: 68.42 kB / 0.5061 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.257e-05/0.4545, allocations: 27.98 kB / 0.5061 GB, free: 10.38 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004209/0.4549, allocations: 361.6 kB / 0.5064 GB, free: 10.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4549, allocations: 0 / 0.5064 GB, free: 10.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001095/0.456, allocations: 363.1 kB / 0.5068 GB, free: 9.668 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.0002166/0.4562, allocations: 150.9 kB / 0.5069 GB, free: 9.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.4583, allocations: 1.368 MB / 0.5083 GB, free: 8.105 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4583, allocations: 0 / 0.5083 GB, free: 8.105 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006769/0.459, allocations: 490.3 kB / 0.5087 GB, free: 7.609 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005504/0.4596, allocations: 99.48 kB / 0.5088 GB, free: 7.512 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001959/0.4615, allocations: 1.003 MB / 0.5098 GB, free: 6.484 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005243/0.4621, allocations: 0.9599 MB / 0.5107 GB, free: 5.496 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005194/0.4626, allocations: 125 kB / 0.5109 GB, free: 5.375 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.4627, allocations: 39.42 kB / 0.5109 GB, free: 5.336 MB / 394.7 MB Notification: Performance of SimCode: time 7.82e-07/0.4627, allocations: 0 / 0.5109 GB, free: 5.336 MB / 394.7 MB Notification: Performance of Templates: time 0.01913/0.4819, allocations: 11.51 MB / 0.5221 GB, free: 9.941 MB / 410.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat","/var/lib/jenkins/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_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches