Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001332/0.001332, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 230.3 MB / 258 MB, free: 8.242 MB / 206.1 MB
"
[Timeout remaining time 178]
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)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit")
translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 67.88 kB / 378.8 MB, free: 2.77 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2982, allocations: 53.36 MB / 432.1 MB, free: 7.07 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00592/0.3041, allocations: 4.135 MB / 436.3 MB, free: 2.918 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002365/0.3065, allocations: 1.075 MB / 437.3 MB, free: 1.836 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002846/0.3068, allocations: 7.938 kB / 437.4 MB, free: 1.828 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002587/0.307, allocations: 87.14 kB / 437.4 MB, free: 1.742 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004302/0.3074, allocations: 194.4 kB / 437.6 MB, free: 1.551 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005564/0.308, allocations: 231.6 kB / 437.9 MB, free: 1.324 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0009297/0.3089, allocations: 0.8212 MB / 438.7 MB, free: 0.5 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002627/0.3092, allocations: 121.1 kB / 438.8 MB, free: 388 kB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004638/0.3097, allocations: 330.9 kB / 439.1 MB, free: 56 kB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004712/0.3101, allocations: 362.6 kB / 439.5 MB, free: 15.7 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001249/0.3103, allocations: 88 kB / 439.6 MB, free: 15.61 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001722/0.3104, allocations: 91.98 kB / 439.6 MB, free: 15.52 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.000168/0.3106, allocations: 159.5 kB / 439.8 MB, free: 15.37 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0004135/0.311, allocations: 334.5 kB / 440.1 MB, free: 15.04 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001051/0.3121, allocations: 0.8622 MB / 441 MB, free: 14.18 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3121, allocations: 0 / 441 MB, free: 14.18 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.553e-06/0.3121, allocations: 0 / 441 MB, free: 14.18 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 1.14e-05/0.3121, allocations: 0 / 441 MB, free: 14.18 MB / 350.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 89
 * Number of variables: 89
Notification: Performance of Generate backend data structure: time 0.002886/0.315, allocations: 0.9895 MB / 442 MB, free: 13.15 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.315, allocations: 8.031 kB / 442 MB, free: 13.14 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002918/0.3153, allocations: 68.56 kB / 442.1 MB, free: 13.07 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008508/0.3162, allocations: 368.4 kB / 442.4 MB, free: 12.69 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.688e-05/0.3162, allocations: 29.38 kB / 442.4 MB, free: 12.66 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 9.695e-05/0.3163, allocations: 36.38 kB / 442.5 MB, free: 12.62 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.3179, allocations: 0.6031 MB / 443.1 MB, free: 12 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.318, allocations: 4 kB / 443.1 MB, free: 12 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.523e-05/0.318, allocations: 12 kB / 443.1 MB, free: 11.98 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.873e-05/0.318, allocations: 15.98 kB / 443.1 MB, free: 11.97 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002196/0.3202, allocations: 0.6401 MB / 443.8 MB, free: 11.32 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004322/0.3246, allocations: 2.118 MB / 445.9 MB, free: 9.109 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.004102/0.3287, allocations: 0.8237 MB / 446.7 MB, free: 8.277 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.3298, allocations: 380.8 kB / 447.1 MB, free: 7.906 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.084e-05/0.3299, allocations: 4.328 kB / 447.1 MB, free: 7.902 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001264/0.3311, allocations: 434.6 kB / 447.5 MB, free: 7.461 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=40): time 1.883e-06/0.3311, allocations: 3.938 kB / 447.5 MB, free: 7.457 MB / 350.1 MB
Notification: Performance of matching and sorting (n=40): time 0.01484/0.346, allocations: 2.297 MB / 449.8 MB, free: 5.148 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.861e-05/0.3461, allocations: 85.11 kB / 449.9 MB, free: 5.047 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007258/0.3468, allocations: 421.9 kB / 450.3 MB, free: 4.629 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 8.312e-05/0.3469, allocations: 33.7 kB / 450.3 MB, free: 4.59 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002496/0.3471, allocations: 236.9 kB / 450.6 MB, free: 4.352 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.3473, allocations: 146.7 kB / 450.7 MB, free: 4.207 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002015/0.3475, allocations: 74.05 kB / 450.8 MB, free: 4.125 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002011/0.3477, allocations: 354.7 kB / 451.1 MB, free: 3.77 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.3488, allocations: 296.6 kB / 451.4 MB, free: 3.48 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.3498, allocations: 342.1 kB / 451.7 MB, free: 3.141 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001991/0.3518, allocations: 0.6107 MB / 452.4 MB, free: 2.516 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3518, allocations: 0 / 452.4 MB, free: 2.516 MB / 350.1 MB
Notification: Performance of matching and sorting (n=47) (initialization): time 0.003807/0.3556, allocations: 0.9825 MB / 453.3 MB, free: 1.52 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 5.704e-05/0.3557, allocations: 41.7 kB / 453.4 MB, free: 1.473 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.3557, allocations: 0 / 453.4 MB, free: 1.473 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/0.3571, allocations: 436.4 kB / 453.8 MB, free: 1.043 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005203/0.3576, allocations: 91.86 kB / 453.9 MB, free: 0.9531 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009435/0.3671, allocations: 3.698 MB / 457.6 MB, free: 13.14 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008062/0.3679, allocations: 103.7 kB / 457.7 MB, free: 13.04 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.616e-05/0.3679, allocations: 12 kB / 457.7 MB, free: 13.03 MB / 366.1 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 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1)
 * 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 (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(4,12)}
Notification: Performance of prepare postOptimizeDAE: time 0.0002931/0.3682, allocations: 178.8 kB / 457.9 MB, free: 12.85 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.998e-05/0.3683, allocations: 51.67 kB / 457.9 MB, free: 12.8 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.3684, allocations: 56.53 kB / 458 MB, free: 12.74 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.3684, allocations: 4 kB / 458 MB, free: 12.74 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3684, allocations: 0 / 458 MB, free: 12.74 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.3685, allocations: 3.984 kB / 458 MB, free: 12.73 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008172/0.3693, allocations: 0.5939 MB / 458.6 MB, free: 12.1 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.3693, allocations: 7.922 kB / 458.6 MB, free: 12.09 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005309/0.3698, allocations: 83.92 kB / 458.7 MB, free: 12.01 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001315/0.3711, allocations: 428.6 kB / 459.1 MB, free: 11.59 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.504e-05/0.3712, allocations: 19.98 kB / 459.1 MB, free: 11.57 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009383/0.3806, allocations: 3.705 MB / 462.8 MB, free: 7.754 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.3806, allocations: 3.938 kB / 462.8 MB, free: 7.75 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006635/0.3872, allocations: 1.496 MB / 464.3 MB, free: 6.23 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0003506/0.3876, allocations: 107.6 kB / 464.4 MB, free: 6.125 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.584e-05/0.3876, allocations: 15.88 kB / 464.4 MB, free: 6.109 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006002/0.3882, allocations: 71.91 kB / 464.5 MB, free: 6.039 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.3884, allocations: 51.91 kB / 464.6 MB, free: 5.988 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.591e-05/0.3885, allocations: 12 kB / 464.6 MB, free: 5.977 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0003962/0.3889, allocations: 299.1 kB / 464.9 MB, free: 5.688 MB / 366.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3889, allocations: 0 / 464.9 MB, free: 5.688 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0006931/0.3896, allocations: 183.8 kB / 465 MB, free: 5.508 MB / 366.1 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,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count)
 * Number of discrete states: 1 (trapezoidCurrent.signalSource.count)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (25):
 * Single equations (assignments): 22
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 2
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(4,12)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0002453/0.3898, allocations: 103.2 kB / 465.1 MB, free: 5.398 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.00319/0.393, allocations: 0.9424 MB / 466.1 MB, free: 4.43 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.393, allocations: 0 / 466.1 MB, free: 4.43 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001696/0.3947, allocations: 0.5843 MB / 466.7 MB, free: 3.832 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005342/0.3952, allocations: 92.48 kB / 466.8 MB, free: 3.746 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003901/0.3991, allocations: 1.273 MB / 468 MB, free: 2.441 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005729/0.3997, allocations: 0.8394 MB / 468.9 MB, free: 1.574 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0002324/0.3999, allocations: 43.39 kB / 468.9 MB, free: 1.527 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.4001, allocations: 39.38 kB / 469 MB, free: 1.488 MB / 366.1 MB
Notification: Performance of SimCode: time 1.994e-06/0.4001, allocations: 0 / 469 MB, free: 1.488 MB / 366.1 MB
Notification: Performance of Templates: time 0.02521/0.4253, allocations: 14.42 MB / 483.4 MB, free: 3.141 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.982593820430338]