Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009438/0.0009438, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007171/0.0007171, allocations: 94.53 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002198/0.0002199, allocations: 11.98 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.187, allocations: 51.3 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09562/0.2827, allocations: 92.12 MB / 0.4891 GB, free: 15.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002149/0.283, allocations: 83.95 kB / 0.4891 GB, free: 15.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2/0.483, allocations: 23.32 MB / 0.5119 GB, free: 89.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.483, allocations: 0 / 0.5119 GB, free: 89.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.548e-05/0.4831, allocations: 36.98 kB / 0.5119 GB, free: 89.77 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.003643/0.4868, allocations: 2.297 MB / 0.5142 GB, free: 88.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.4868, allocations: 11.16 kB / 0.5142 GB, free: 88.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007292/0.4876, allocations: 278.7 kB / 0.5145 GB, free: 88.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001946/0.4895, allocations: 1.289 MB / 0.5157 GB, free: 87.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.456e-05/0.4896, allocations: 69.31 kB / 0.5158 GB, free: 87.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.4897, allocations: 90.36 kB / 0.5159 GB, free: 87.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.4913, allocations: 1.052 MB / 0.5169 GB, free: 87.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.685e-05/0.4914, allocations: 7.844 kB / 0.5169 GB, free: 87.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-05/0.4915, allocations: 39.23 kB / 0.5169 GB, free: 87.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.4915, allocations: 20.12 kB / 0.517 GB, free: 87.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.4932, allocations: 0.9771 MB / 0.5179 GB, free: 87.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005046/0.4982, allocations: 3.491 MB / 0.5213 GB, free: 85.83 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/0.5002, allocations: 1.123 MB / 0.5224 GB, free: 85.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008962/0.5011, allocations: 0.5152 MB / 0.5229 GB, free: 85.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.596e-05/0.5012, allocations: 17.36 kB / 0.5229 GB, free: 85.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00107/0.5022, allocations: 0.7262 MB / 0.5237 GB, free: 85.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.294e-06/0.5022, allocations: 0 / 0.5237 GB, free: 85.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.003364/0.5056, allocations: 1.79 MB / 0.5254 GB, free: 84.42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.5057, allocations: 197.6 kB / 0.5256 GB, free: 84.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002856/0.5085, allocations: 2.288 MB / 0.5278 GB, free: 82.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001288/0.5087, allocations: 57.08 kB / 0.5279 GB, free: 82.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000393/0.5091, allocations: 0.5805 MB / 0.5284 GB, free: 81.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.5093, allocations: 257 kB / 0.5287 GB, free: 81.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.161e-05/0.5093, allocations: 20 kB / 0.5287 GB, free: 81.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.56e-05/0.5094, allocations: 343.3 kB / 0.529 GB, free: 81.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008084/0.5102, allocations: 459.4 kB / 0.5295 GB, free: 80.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008624/0.5111, allocations: 0.7202 MB / 0.5302 GB, free: 80.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001577/0.5127, allocations: 1.157 MB / 0.5313 GB, free: 78.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.5127, allocations: 0 / 0.5313 GB, free: 78.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002273/0.515, allocations: 1.381 MB / 0.5327 GB, free: 77.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.5151, allocations: 338 kB / 0.533 GB, free: 77.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.5151, allocations: 8 kB / 0.533 GB, free: 77.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003122/0.5154, allocations: 107.7 kB / 0.5331 GB, free: 76.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000807/0.5163, allocations: 238.5 kB / 0.5333 GB, free: 76.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001473/0.5177, allocations: 1.877 MB / 0.5351 GB, free: 74.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.5189, allocations: 227.1 kB / 0.5354 GB, free: 74.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.96e-05/0.519, allocations: 42.89 kB / 0.5354 GB, free: 74.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.891e-06/0.519, allocations: 0 / 0.5354 GB, free: 74.5 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00182/0.5208, allocations: 1.189 MB / 0.5366 GB, free: 73.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.5208, allocations: 4 kB / 0.5366 GB, free: 73.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002272/0.5211, allocations: 100.8 kB / 0.5367 GB, free: 73.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007439/0.5218, allocations: 227.6 kB / 0.5369 GB, free: 72.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.5232, allocations: 1.873 MB / 0.5387 GB, free: 70.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.5242, allocations: 200.8 kB / 0.5389 GB, free: 70.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.263e-05/0.5243, allocations: 40 kB / 0.5389 GB, free: 70.73 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.0009971/0.5253, allocations: 0.6684 MB / 0.5396 GB, free: 70.06 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003206/0.5256, allocations: 181.8 kB / 0.5398 GB, free: 69.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002242/0.5279, allocations: 1.298 MB / 0.541 GB, free: 68.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.5279, allocations: 8 kB / 0.541 GB, free: 68.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.5279, allocations: 0 / 0.541 GB, free: 68.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.5279, allocations: 3.984 kB / 0.541 GB, free: 68.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003846/0.5318, allocations: 2.887 MB / 0.5439 GB, free: 65.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.5318, allocations: 8.031 kB / 0.5439 GB, free: 65.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006456/0.5325, allocations: 161.3 kB / 0.544 GB, free: 65.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002352/0.5327, allocations: 88.8 kB / 0.5441 GB, free: 65.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.497e-05/0.5328, allocations: 23.98 kB / 0.5441 GB, free: 65.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.5341, allocations: 1.777 MB / 0.5459 GB, free: 63.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5341, allocations: 0 / 0.5459 GB, free: 63.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002888/0.537, allocations: 1.909 MB / 0.5477 GB, free: 61.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008864/0.5379, allocations: 0.5335 MB / 0.5483 GB, free: 60.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001882/0.5381, allocations: 39.92 kB / 0.5483 GB, free: 60.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008506/0.539, allocations: 159.8 kB / 0.5484 GB, free: 60.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.5392, allocations: 92.86 kB / 0.5485 GB, free: 60.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.33e-05/0.5393, allocations: 31.97 kB / 0.5486 GB, free: 60.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002094/0.5414, allocations: 1.656 MB / 0.5502 GB, free: 58.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5414, allocations: 0 / 0.5502 GB, free: 58.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00142/0.5428, allocations: 0.5573 MB / 0.5507 GB, free: 58.39 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.0007687/0.5436, allocations: 423 kB / 0.5511 GB, free: 58.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003055/0.5466, allocations: 2.084 MB / 0.5532 GB, free: 55.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.5467, allocations: 448 / 0.5532 GB, free: 55.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.5477, allocations: 0.7037 MB / 0.5539 GB, free: 55.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.549, allocations: 219.1 kB / 0.5541 GB, free: 55.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005648/0.5547, allocations: 4.273 MB / 0.5582 GB, free: 50.74 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007511/0.5555, allocations: 1.399 MB / 0.5596 GB, free: 49.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004745/0.5559, allocations: 91.41 kB / 0.5597 GB, free: 49.23 MB / 378.7 MB Notification: Performance of SimCode: time 7.92e-07/0.5559, allocations: 4 kB / 0.5597 GB, free: 49.22 MB / 378.7 MB Notification: Performance of Templates: time 0.02537/0.5813, allocations: 23.18 MB / 0.5823 GB, free: 26.05 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.sim & ./Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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 Variables in the result:iH01.y_arg,iH01.y_rms,iRMS.y,meanPower.y,multiSensor.i,multiSensor.power,multiSensor.v,time,vH01.y_arg,vH01.y_rms,vRMS.y,voltageSensor.v