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.001253/0.001253, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000812/0.000812, allocations: 86.7 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.776e-05/1.78e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08394/0.08398, allocations: 47.58 MB / 363.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3209/0.4049, allocations: 79.92 MB / 443 MB, free: 15.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.4052, allocations: 69.33 kB / 443.1 MB, free: 15.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02486/0.4301, allocations: 8.471 MB / 451.5 MB, free: 8.574 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4301, allocations: 4 kB / 451.5 MB, free: 8.57 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.292e-05/0.4302, allocations: 12 kB / 451.5 MB, free: 8.559 MB / 330.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.002013/0.4322, allocations: 0.8342 MB / 452.4 MB, free: 7.707 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.4323, allocations: 12.03 kB / 452.4 MB, free: 7.695 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.4324, allocations: 55.34 kB / 452.4 MB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005396/0.4329, allocations: 378.8 kB / 452.8 MB, free: 7.293 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.464e-05/0.433, allocations: 19.89 kB / 452.8 MB, free: 7.273 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.39e-05/0.4331, allocations: 23.98 kB / 452.9 MB, free: 7.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006612/0.4337, allocations: 369.5 kB / 453.2 MB, free: 7.047 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006912/0.4344, allocations: 406.8 kB / 453.6 MB, free: 6.746 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.4345, allocations: 0 / 453.6 MB, free: 6.746 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.278e-05/0.4345, allocations: 0 / 453.6 MB, free: 6.746 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.4345, allocations: 8 kB / 453.6 MB, free: 6.738 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003451/0.438, allocations: 1.967 MB / 455.6 MB, free: 5.133 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003124/0.4411, allocations: 0.7028 MB / 456.3 MB, free: 4.617 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003865/0.4415, allocations: 244.7 kB / 456.5 MB, free: 4.477 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.089e-05/0.4416, allocations: 4 kB / 456.5 MB, free: 4.473 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005583/0.4422, allocations: 280.3 kB / 456.8 MB, free: 4.266 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 6.222e-06/0.4422, allocations: 0 / 456.8 MB, free: 4.266 MB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.001296/0.4435, allocations: 0.5326 MB / 457.3 MB, free: 3.887 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.546e-05/0.4436, allocations: 85.09 kB / 457.4 MB, free: 3.785 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003764/0.4439, allocations: 306.3 kB / 457.7 MB, free: 3.555 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.125e-05/0.444, allocations: 29.7 kB / 457.8 MB, free: 3.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.4442, allocations: 225.7 kB / 458 MB, free: 3.359 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.4443, allocations: 120.6 kB / 458.1 MB, free: 3.254 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.521e-05/0.4444, allocations: 0 / 458.1 MB, free: 3.254 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.4445, allocations: 359 kB / 458.4 MB, free: 2.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003112/0.4449, allocations: 152.7 kB / 458.6 MB, free: 2.832 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003424/0.4452, allocations: 204.4 kB / 458.8 MB, free: 2.703 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002978/0.4455, allocations: 147.7 kB / 458.9 MB, free: 2.625 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4455, allocations: 3.938 kB / 458.9 MB, free: 2.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00124/0.4468, allocations: 0.5365 MB / 459.5 MB, free: 2.25 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.604e-05/0.4468, allocations: 37.69 kB / 459.5 MB, free: 2.207 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.4469, allocations: 4.062 kB / 459.5 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001139/0.448, allocations: 331.2 kB / 459.8 MB, free: 1.961 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005081/0.4485, allocations: 99.3 kB / 459.9 MB, free: 1.867 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006803/0.4553, allocations: 2.984 MB / 462.9 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007704/0.4561, allocations: 99.66 kB / 463 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.658e-05/0.4562, allocations: 23.11 kB / 463 MB, free: 15.32 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE(unit = "V" ) "Voltage between gate and cathode" type: Real 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 () * 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.0002507/0.4565, allocations: 117.1 kB / 463.2 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.672e-05/0.4566, allocations: 43.61 kB / 463.2 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001383/0.4567, allocations: 49.88 kB / 463.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.4567, allocations: 7.984 kB / 463.3 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4567, allocations: 0 / 463.3 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.4567, allocations: 0 / 463.3 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006716/0.4574, allocations: 0.5251 MB / 463.8 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.4574, allocations: 0 / 463.8 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004538/0.4579, allocations: 91 kB / 463.9 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008053/0.4587, allocations: 337.5 kB / 464.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.813e-05/0.4588, allocations: 6.984 kB / 464.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006432/0.4652, allocations: 2.993 MB / 467.2 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.826e-06/0.4652, allocations: 3.953 kB / 467.2 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.4668, allocations: 0.7948 MB / 468 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00025/0.4671, allocations: 170.1 kB / 468.2 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.978e-05/0.4672, allocations: 0 / 468.2 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006617/0.4678, allocations: 79.92 kB / 468.2 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.468, allocations: 49.73 kB / 468.3 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.909e-05/0.468, allocations: 15.11 kB / 468.3 MB, free: 11.11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003235/0.4684, allocations: 241 kB / 468.5 MB, free: 10.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4684, allocations: 0 / 468.5 MB, free: 10.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007132/0.4691, allocations: 163.6 kB / 468.7 MB, free: 10.77 MB / 346.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) * 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.00025/0.4694, allocations: 115.1 kB / 468.8 MB, free: 10.65 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.4707, allocations: 0.6326 MB / 469.4 MB, free: 10.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4707, allocations: 0 / 469.4 MB, free: 10.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008731/0.4716, allocations: 419 kB / 469.8 MB, free: 9.867 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004007/0.472, allocations: 65.45 kB / 469.9 MB, free: 9.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.4743, allocations: 0.8446 MB / 470.8 MB, free: 9.043 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.4748, allocations: 0.8433 MB / 471.6 MB, free: 8.176 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002241/0.475, allocations: 35.28 kB / 471.6 MB, free: 8.141 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.058e-05/0.4751, allocations: 23.44 kB / 471.7 MB, free: 8.117 MB / 346.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4751, allocations: 4 kB / 471.7 MB, free: 8.113 MB / 346.7 MB Notification: Performance of Templates: time 0.01604/0.4912, allocations: 9.653 MB / 481.3 MB, free: 14.49 MB / 362.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