Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001214/0.001214, allocations: 181.1 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.473/1.473, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008303/0.0008301, allocations: 94.59 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002579/0.0002579, allocations: 4 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2745, allocations: 47.56 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1144/0.389, allocations: 80.43 MB / 456.2 MB, free: 248 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002382/0.3893, allocations: 75.97 kB / 456.3 MB, free: 172 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03196/0.4212, allocations: 8.568 MB / 464.9 MB, free: 7.555 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4213, allocations: 0 / 464.9 MB, free: 7.555 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.129e-05/0.4214, allocations: 16 kB / 464.9 MB, free: 7.539 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00371/0.4251, allocations: 0.8989 MB / 465.8 MB, free: 6.586 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.103e-05/0.4252, allocations: 8.406 kB / 465.8 MB, free: 6.578 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003907/0.4256, allocations: 59.25 kB / 465.9 MB, free: 6.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.4267, allocations: 385 kB / 466.2 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.844e-05/0.4268, allocations: 36.95 kB / 466.3 MB, free: 6.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001444/0.4269, allocations: 36 kB / 466.3 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002038/0.429, allocations: 0.5865 MB / 466.9 MB, free: 5.422 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.907e-05/0.429, allocations: 3.938 kB / 466.9 MB, free: 5.418 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.543e-05/0.4291, allocations: 16 kB / 466.9 MB, free: 5.402 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.4292, allocations: 12 kB / 466.9 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002636/0.4318, allocations: 0.6402 MB / 467.6 MB, free: 4.754 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005353/0.4372, allocations: 2.049 MB / 469.6 MB, free: 2.609 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005998/0.4432, allocations: 0.9676 MB / 470.6 MB, free: 1.629 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.428e-05/0.4433, allocations: 7.938 kB / 470.6 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001539/0.4448, allocations: 431.7 kB / 471 MB, free: 1.184 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 3.156e-06/0.4449, allocations: 0 / 471 MB, free: 1.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.01297/0.4578, allocations: 1.971 MB / 473 MB, free: 15.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.115e-05/0.458, allocations: 97 kB / 473.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007693/0.4587, allocations: 336.9 kB / 473.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.524e-05/0.4588, allocations: 29.7 kB / 473.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.4591, allocations: 224.6 kB / 473.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/0.4593, allocations: 134.1 kB / 473.8 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-05/0.4594, allocations: 4 kB / 473.8 MB, free: 14.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002148/0.4596, allocations: 354.8 kB / 474.1 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.4609, allocations: 300.6 kB / 474.4 MB, free: 13.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001178/0.4621, allocations: 354 kB / 474.8 MB, free: 13.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001255/0.4633, allocations: 319.5 kB / 475.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.4634, allocations: 0 / 475.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003532/0.4669, allocations: 0.9094 MB / 476 MB, free: 12.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.853e-05/0.467, allocations: 41.62 kB / 476 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.467, allocations: 0 / 476 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001859/0.4689, allocations: 424.5 kB / 476.4 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006037/0.4695, allocations: 91.94 kB / 476.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01255/0.4821, allocations: 3.611 MB / 480.1 MB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009277/0.483, allocations: 111.6 kB / 480.3 MB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.4832, allocations: 12 kB / 480.3 MB, free: 7.668 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0004909/0.4837, allocations: 173.8 kB / 480.4 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.4839, allocations: 47.42 kB / 480.5 MB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001855/0.4841, allocations: 48.38 kB / 480.5 MB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.4841, allocations: 4 kB / 480.5 MB, free: 7.391 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.4841, allocations: 4 kB / 480.5 MB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.4841, allocations: 0 / 480.5 MB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009361/0.4851, allocations: 0.5834 MB / 481.1 MB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.4851, allocations: 0 / 481.1 MB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004693/0.4856, allocations: 87.92 kB / 481.2 MB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001255/0.4868, allocations: 420.5 kB / 481.6 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.92e-05/0.4869, allocations: 11.94 kB / 481.6 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009527/0.4964, allocations: 3.606 MB / 485.2 MB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.4965, allocations: 4 kB / 485.2 MB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004009/0.5005, allocations: 1.278 MB / 486.5 MB, free: 1.199 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004166/0.501, allocations: 168.5 kB / 486.7 MB, free: 1.016 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/0.5011, allocations: 15.95 kB / 486.7 MB, free: 1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007647/0.5019, allocations: 79.92 kB / 486.8 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.5021, allocations: 48.11 kB / 486.8 MB, free: 0.875 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.026e-05/0.5022, allocations: 15.98 kB / 486.8 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003864/0.5026, allocations: 275.1 kB / 487.1 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5026, allocations: 0 / 487.1 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008014/0.5034, allocations: 179.7 kB / 487.3 MB, free: 428 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002442/0.5037, allocations: 117.4 kB / 487.4 MB, free: 304 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002717/0.5064, allocations: 0.9385 MB / 488.3 MB, free: 15.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.5064, allocations: 0 / 488.3 MB, free: 15.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001529/0.5079, allocations: 0.5763 MB / 488.9 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005047/0.5085, allocations: 77.14 kB / 489 MB, free: 14.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.5119, allocations: 1.385 MB / 490.4 MB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004607/0.5124, allocations: 0.8358 MB / 491.2 MB, free: 12.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000282/0.5127, allocations: 47.27 kB / 491.3 MB, free: 12.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.5128, allocations: 27.44 kB / 491.3 MB, free: 12.33 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5128, allocations: 0 / 491.3 MB, free: 12.33 MB / 378.7 MB Notification: Performance of Templates: time 0.01916/0.532, allocations: 10.77 MB / 0.4903 GB, free: 1.578 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches