Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_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.ACAC.Dimmer_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160000,variableFilter="time|voltageSensor.v|multiSensor.i|multiSensor.v|multiSensor.power|meanPower.y|vRMS.y|vH01.y_rms|vH01.y_arg|iRMS.y|iH01.y_rms|iH01.y_arg",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160000,variableFilter="time|voltageSensor.v|multiSensor.i|multiSensor.v|multiSensor.power|meanPower.y|vRMS.y|vH01.y_rms|vH01.y_arg|iRMS.y|iH01.y_rms|iH01.y_arg",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009915/0.0009917, allocations: 197.3 kB / 18.1 MB, free: 3.617 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 226.5 MB / 245.4 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007855/0.0007854, allocations: 97.05 kB / 297.5 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002879/0.0002879, allocations: 4 kB / 358.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2341, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1079/0.3421, allocations: 92.12 MB / 0.4897 GB, free: 15.37 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.3424, allocations: 88.48 kB / 0.4898 GB, free: 15.28 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2435/0.5858, allocations: 23.32 MB / 0.5126 GB, free: 89.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5859, allocations: 4 kB / 0.5126 GB, free: 89.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001124/0.586, allocations: 35.16 kB / 0.5126 GB, free: 89.75 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: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.003619/0.5896, allocations: 2.295 MB / 0.5149 GB, free: 88.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.5897, allocations: 11.84 kB / 0.5149 GB, free: 88.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006298/0.5903, allocations: 277.6 kB / 0.5152 GB, free: 88.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00173/0.592, allocations: 1.288 MB / 0.5164 GB, free: 87.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.476e-05/0.5921, allocations: 63.81 kB / 0.5165 GB, free: 87.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.5922, allocations: 92.53 kB / 0.5166 GB, free: 87.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.5937, allocations: 1.057 MB / 0.5176 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.5938, allocations: 7.844 kB / 0.5176 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.419e-05/0.5938, allocations: 30.94 kB / 0.5176 GB, free: 87.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.5939, allocations: 21.5 kB / 0.5177 GB, free: 87.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.5954, allocations: 0.9744 MB / 0.5186 GB, free: 87.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004384/0.5998, allocations: 3.487 MB / 0.522 GB, free: 85.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.6016, allocations: 1.131 MB / 0.5231 GB, free: 85.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008376/0.6025, allocations: 0.5248 MB / 0.5236 GB, free: 85.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.648e-05/0.6025, allocations: 6.938 kB / 0.5236 GB, free: 85.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/0.6036, allocations: 0.7261 MB / 0.5243 GB, free: 85.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.806e-06/0.6036, allocations: 0 / 0.5243 GB, free: 85.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.003197/0.6068, allocations: 1.794 MB / 0.5261 GB, free: 84.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.871e-05/0.6069, allocations: 200.2 kB / 0.5263 GB, free: 84.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002669/0.6095, allocations: 2.286 MB / 0.5285 GB, free: 82.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.126e-05/0.6096, allocations: 52.84 kB / 0.5286 GB, free: 82.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003465/0.61, allocations: 0.5817 MB / 0.5291 GB, free: 81.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.6101, allocations: 261 kB / 0.5294 GB, free: 81.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.339e-05/0.6102, allocations: 16 kB / 0.5294 GB, free: 81.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.191e-05/0.6103, allocations: 347.9 kB / 0.5297 GB, free: 81.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007899/0.6111, allocations: 457.6 kB / 0.5302 GB, free: 80.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008757/0.612, allocations: 0.7123 MB / 0.5309 GB, free: 80.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001616/0.6136, allocations: 1.162 MB / 0.532 GB, free: 78.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.6136, allocations: 4 kB / 0.532 GB, free: 78.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002085/0.6157, allocations: 1.377 MB / 0.5334 GB, free: 77.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001405/0.6158, allocations: 345.4 kB / 0.5337 GB, free: 77.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.6159, allocations: 8 kB / 0.5337 GB, free: 77.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003094/0.6162, allocations: 104.5 kB / 0.5338 GB, free: 76.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007837/0.617, allocations: 243.6 kB / 0.534 GB, free: 76.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/0.6184, allocations: 1.873 MB / 0.5359 GB, free: 74.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.6196, allocations: 219.1 kB / 0.5361 GB, free: 74.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.173e-05/0.6196, allocations: 43.98 kB / 0.5361 GB, free: 74.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.713e-06/0.6196, allocations: 8 kB / 0.5361 GB, free: 74.44 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001716/0.6214, allocations: 1.185 MB / 0.5373 GB, free: 73.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.6214, allocations: 8 kB / 0.5373 GB, free: 73.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002271/0.6216, allocations: 100.7 kB / 0.5374 GB, free: 73.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007184/0.6224, allocations: 227.6 kB / 0.5376 GB, free: 72.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.6237, allocations: 1.866 MB / 0.5394 GB, free: 70.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009193/0.6246, allocations: 203.2 kB / 0.5396 GB, free: 70.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.475e-05/0.6247, allocations: 36 kB / 0.5396 GB, free: 70.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 40 ($PRE.meanPower.y_last,meanPower.y_last,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.iH01.mean1.y_last,iH01.mean1.y_last,$PRE.iH01.mean2.y_last,iH01.mean2.y_last,$PRE.iRMS.mean.y_last,iRMS.mean.y_last,$PRE.vH01.mean1.y_last,vH01.mean1.y_last,$PRE.vH01.mean2.y_last,vH01.mean2.y_last,$PRE.vRMS.mean.y_last,vRMS.mean.y_last,$whenCondition10,$whenCondition9,$whenCondition8,$PRE.triac.thyristor1.off,triac.thyristor1.off,$PRE.triac.thyristor2.off,triac.thyristor2.off,adaptor.positiveThreshold[1].y,adaptor.negativeThreshold[1].y,$PRE.adaptor.timerPositive[1].entryTime,adaptor.timerPositive[1].entryTime,$PRE.adaptor.timerNegative[1].entryTime,adaptor.timerNegative[1].entryTime,adaptor.fire_p[1],adaptor.fire_n[1],$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 108 * 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 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0009505/0.6256, allocations: 0.6695 MB / 0.5403 GB, free: 70.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002069/0.6258, allocations: 181.8 kB / 0.5405 GB, free: 69.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002093/0.6279, allocations: 1.294 MB / 0.5417 GB, free: 68.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.493e-06/0.628, allocations: 8 kB / 0.5417 GB, free: 68.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.628, allocations: 7.938 kB / 0.5417 GB, free: 68.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.628, allocations: 3.984 kB / 0.5417 GB, free: 68.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003651/0.6316, allocations: 2.886 MB / 0.5446 GB, free: 65.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.6317, allocations: 0 / 0.5446 GB, free: 65.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006257/0.6323, allocations: 163.8 kB / 0.5447 GB, free: 65.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002399/0.6326, allocations: 80.81 kB / 0.5448 GB, free: 65.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-05/0.6326, allocations: 31.91 kB / 0.5448 GB, free: 65.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001346/0.634, allocations: 1.785 MB / 0.5466 GB, free: 63.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.634, allocations: 4.062 kB / 0.5466 GB, free: 63.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002807/0.6368, allocations: 1.897 MB / 0.5484 GB, free: 61.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008903/0.6377, allocations: 0.5335 MB / 0.549 GB, free: 60.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/0.6379, allocations: 35.92 kB / 0.549 GB, free: 60.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008289/0.6387, allocations: 167.8 kB / 0.5491 GB, free: 60.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.6389, allocations: 88.86 kB / 0.5492 GB, free: 60.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.424e-05/0.639, allocations: 31.97 kB / 0.5493 GB, free: 60.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00209/0.6411, allocations: 1.656 MB / 0.5509 GB, free: 58.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6411, allocations: 4 kB / 0.5509 GB, free: 58.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001474/0.6426, allocations: 0.5612 MB / 0.5514 GB, free: 58.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (adaptor.filter[1].firstOrder.y,adaptor.filter[1].transferFunction[1].x_scaled[1],adaptor.filter[1].transferFunction[2].x_scaled[1],meanPower.x,vRMS.mean.x,vH01.mean1.x,vH01.mean2.x,iRMS.mean.x,iH01.mean1.x,iH01.mean2.x) * Number of discrete variables: 27 (adaptor.positiveThreshold[1].y,adaptor.negativeThreshold[1].y,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,triac.thyristor1.off,triac.thyristor2.off,adaptor.timerPositive[1].entryTime,adaptor.timerNegative[1].entryTime,adaptor.fire_p[1],adaptor.fire_n[1],trapezoid.T_start,trapezoid.count,meanPower.y_last,vRMS.mean.y_last,vH01.mean1.y_last,vH01.mean2.y_last,iRMS.mean.y_last,iH01.mean1.y_last,iH01.mean2.y_last) * Number of discrete states: 10 (trapezoid.count,meanPower.x,vRMS.mean.x,vH01.mean1.x,vH01.mean2.x,iRMS.mean.x,iH01.mean1.x,iH01.mean2.x,triac.thyristor1.off,triac.thyristor2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008507/0.6435, allocations: 422.7 kB / 0.5518 GB, free: 58.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003167/0.6466, allocations: 2.085 MB / 0.5539 GB, free: 55.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.6467, allocations: 0 / 0.5539 GB, free: 55.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.6477, allocations: 0.6879 MB / 0.5545 GB, free: 55.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/0.649, allocations: 230.7 kB / 0.5548 GB, free: 55.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005139/0.6541, allocations: 4.182 MB / 0.5588 GB, free: 50.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008049/0.655, allocations: 1.415 MB / 0.5602 GB, free: 49.35 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009648/0.656, allocations: 330.8 kB / 0.5605 GB, free: 49.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002698/0.6562, allocations: 87.41 kB / 0.5606 GB, free: 48.94 MB / 378.7 MB Notification: Performance of SimCode: time 1.011e-06/0.6562, allocations: 0 / 0.5606 GB, free: 48.94 MB / 378.7 MB Notification: Performance of Templates: time 0.02352/0.6798, allocations: 16.77 MB / 0.577 GB, free: 32.29 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/ACAC/Dimmer_R/Dimmer_R.csv","../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches