Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.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.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001535/0.001535, allocations: 185.6 kB / 16.41 MB, free: 5.703 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.897/1.897, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001125/0.001125, allocations: 89.55 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003789/0.000379, allocations: 8 kB / 327 MB, free: 224 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3301, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1262/0.4564, allocations: 79.31 MB / 453.8 MB, free: 1.477 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.4567, allocations: 67.97 kB / 453.9 MB, free: 1.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02444/0.4811, allocations: 4.791 MB / 458.7 MB, free: 12.6 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.4812, allocations: 0 / 458.7 MB, free: 12.6 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.083e-05/0.4812, allocations: 4 kB / 458.7 MB, free: 12.6 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.002029/0.4833, allocations: 0.6378 MB / 459.3 MB, free: 11.9 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.4833, allocations: 12.03 kB / 459.4 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.4834, allocations: 27.62 kB / 459.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004137/0.4839, allocations: 259.7 kB / 459.6 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.19e-05/0.4839, allocations: 20.39 kB / 459.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.702e-05/0.484, allocations: 20 kB / 459.7 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.4853, allocations: 329.7 kB / 460 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.4854, allocations: 0 / 460 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.597e-05/0.4854, allocations: 8 kB / 460 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.4855, allocations: 8 kB / 460 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.4872, allocations: 329.5 kB / 460.3 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003169/0.4904, allocations: 1.02 MB / 461.4 MB, free: 9.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00619/0.4966, allocations: 0.6251 MB / 462 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.017e-05/0.4967, allocations: 4 kB / 462 MB, free: 9.133 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00114/0.4979, allocations: 255.1 kB / 462.2 MB, free: 8.867 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.875e-06/0.4979, allocations: 0 / 462.2 MB, free: 8.867 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.002852/0.5008, allocations: 0.5343 MB / 462.8 MB, free: 8.328 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.672e-05/0.5009, allocations: 81.11 kB / 462.8 MB, free: 8.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003534/0.5013, allocations: 208.2 kB / 463 MB, free: 8.023 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.306e-05/0.5013, allocations: 29.7 kB / 463.1 MB, free: 7.988 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.5015, allocations: 214.6 kB / 463.3 MB, free: 7.777 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.5016, allocations: 71 kB / 463.4 MB, free: 7.707 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.812e-05/0.5017, allocations: 8 kB / 463.4 MB, free: 7.699 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.5018, allocations: 314.8 kB / 463.7 MB, free: 7.383 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009078/0.5027, allocations: 160.4 kB / 463.8 MB, free: 7.223 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009226/0.5037, allocations: 204.2 kB / 464 MB, free: 7.016 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009402/0.5046, allocations: 194.5 kB / 464.2 MB, free: 6.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.5046, allocations: 0 / 464.2 MB, free: 6.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001995/0.5066, allocations: 436.7 kB / 464.6 MB, free: 6.383 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.833e-05/0.5067, allocations: 37.64 kB / 464.7 MB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.5067, allocations: 3.984 kB / 464.7 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.5068, allocations: 4 kB / 464.7 MB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004402/0.5112, allocations: 331.6 kB / 465 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008733/0.52, allocations: 3.287 MB / 468.3 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000796/0.5208, allocations: 67.73 kB / 468.4 MB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.61e-05/0.5209, allocations: 11.98 kB / 468.4 MB, free: 2.375 MB / 346.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: 5 ($whenCondition1,$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 (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002527/0.5211, allocations: 142.7 kB / 468.5 MB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.191e-05/0.5212, allocations: 23.77 kB / 468.5 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.761e-05/0.5213, allocations: 26.17 kB / 468.6 MB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.5213, allocations: 4 kB / 468.6 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.5213, allocations: 0 / 468.6 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.5214, allocations: 0 / 468.6 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005305/0.5219, allocations: 353.2 kB / 468.9 MB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.5219, allocations: 0 / 468.9 MB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004406/0.5263, allocations: 331.6 kB / 469.2 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.497e-06/0.5264, allocations: 0 / 469.2 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.668e-05/0.5265, allocations: 8 kB / 469.2 MB, free: 1.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008577/0.535, allocations: 3.279 MB / 472.5 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.5351, allocations: 4.031 kB / 472.5 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00316/0.5383, allocations: 0.6012 MB / 473.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.5385, allocations: 96.8 kB / 473.2 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.5e-05/0.5385, allocations: 8 kB / 473.2 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006569/0.5392, allocations: 52.02 kB / 473.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.5394, allocations: 27.95 kB / 473.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.33e-05/0.5394, allocations: 7.984 kB / 473.3 MB, free: 13.08 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002455/0.5397, allocations: 168.5 kB / 473.5 MB, free: 12.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5397, allocations: 0 / 473.5 MB, free: 12.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006185/0.5403, allocations: 91.83 kB / 473.6 MB, free: 12.82 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 3 ($whenCondition1,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 (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002008/0.5405, allocations: 115.2 kB / 473.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005411/0.5459, allocations: 0.644 MB / 474.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.546, allocations: 0 / 474.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004351/0.5504, allocations: 423.8 kB / 474.7 MB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004742/0.5509, allocations: 40.3 kB / 474.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002612/0.5535, allocations: 0.8035 MB / 475.6 MB, free: 10.76 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004258/0.554, allocations: 0.756 MB / 476.3 MB, free: 9.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.5542, allocations: 19.44 kB / 476.4 MB, free: 9.961 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5542, allocations: 0 / 476.4 MB, free: 9.961 MB / 362.7 MB Notification: Performance of Templates: time 0.01131/0.5655, allocations: 5.181 MB / 481.5 MB, free: 4.781 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,inductor.i,thyristor_v4_1.vControl Variables in the result:ground.p.i,ground.p.v,inductor.L,der(inductor.i),inductor.i,inductor.n.i,inductor.n.v,inductor.p.i,inductor.p.v,inductor.v,pulseCurrent.I,pulseCurrent.i,pulseCurrent.n.i,pulseCurrent.n.v,pulseCurrent.offset,pulseCurrent.p.i,pulseCurrent.p.v,pulseCurrent.period,pulseCurrent.signalSource.amplitude,pulseCurrent.signalSource.nperiod,pulseCurrent.signalSource.offset,pulseCurrent.signalSource.period,pulseCurrent.signalSource.startTime,pulseCurrent.signalSource.width,pulseCurrent.signalSource.y,pulseCurrent.startTime,pulseCurrent.v,pulseCurrent.width,resistor.LossPower,resistor.R,resistor.R_actual,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor.i,resistor.n.i,resistor.n.v,resistor.p.i,resistor.p.v,resistor.v,sineVoltage.V,sineVoltage.freqHz,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.signalSource.y,sineVoltage.startTime,sineVoltage.v,thyristor_v4_1.Anode.i,thyristor_v4_1.Anode.v,thyristor_v4_1.Cathode.i,thyristor_v4_1.Cathode.v,thyristor_v4_1.Gate.i,thyristor_v4_1.Gate.v,thyristor_v4_1.IDRM,thyristor_v4_1.IGT,thyristor_v4_1.IH,thyristor_v4_1.ITM,thyristor_v4_1.LossPower,thyristor_v4_1.Nbv,thyristor_v4_1.T,thyristor_v4_1.TOFF,thyristor_v4_1.TON,thyristor_v4_1.T_heatPort,thyristor_v4_1.VDRM,thyristor_v4_1.VGT,thyristor_v4_1.VRRM,thyristor_v4_1.VTM,thyristor_v4_1.Vt,der(thyristor_v4_1.vControl),thyristor_v4_1.iGK,thyristor_v4_1.vAK,thyristor_v4_1.vConmain,thyristor_v4_1.vContot,thyristor_v4_1.vControl,thyristor_v4_1.vGK,time