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.001576/0.001576, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.003/2.003, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001055/0.001055, allocations: 82.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.964e-05/2.969e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09293/0.09298, allocations: 47.58 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4423/0.5353, allocations: 79.21 MB / 448.3 MB, free: 13.97 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/0.5357, allocations: 69.66 kB / 448.4 MB, free: 13.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0248/0.5605, allocations: 4.779 MB / 453.1 MB, free: 9.805 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.5605, allocations: 0 / 453.1 MB, free: 9.805 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.123e-05/0.5606, allocations: 6.188 kB / 453.2 MB, free: 9.801 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001871/0.5625, allocations: 0.6059 MB / 453.8 MB, free: 9.164 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.5625, allocations: 8.031 kB / 453.8 MB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.5626, allocations: 27.72 kB / 453.8 MB, free: 9.129 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004365/0.5631, allocations: 261.8 kB / 454 MB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.745e-05/0.5631, allocations: 24.14 kB / 454.1 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.269e-05/0.5632, allocations: 19.75 kB / 454.1 MB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006415/0.5639, allocations: 243.1 kB / 454.3 MB, free: 8.641 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.5639, allocations: 0 / 454.3 MB, free: 8.641 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.64e-05/0.564, allocations: 11.81 kB / 454.3 MB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.564, allocations: 8 kB / 454.3 MB, free: 8.629 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005747/0.5646, allocations: 174.2 kB / 454.5 MB, free: 8.523 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003083/0.5677, allocations: 1.013 MB / 455.5 MB, free: 7.633 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004958/0.5727, allocations: 479 kB / 456 MB, free: 7.234 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000608/0.5733, allocations: 159.2 kB / 456.2 MB, free: 7.125 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.293e-05/0.5734, allocations: 7.984 kB / 456.2 MB, free: 7.117 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004745/0.5739, allocations: 177.8 kB / 456.3 MB, free: 6.957 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 3.195e-06/0.5739, allocations: 0 / 456.3 MB, free: 6.957 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007198/0.5746, allocations: 219.8 kB / 456.5 MB, free: 6.789 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.661e-05/0.5747, allocations: 106.8 kB / 456.7 MB, free: 6.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003491/0.5751, allocations: 215.4 kB / 456.9 MB, free: 6.477 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.98e-05/0.5752, allocations: 29.64 kB / 456.9 MB, free: 6.445 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.5753, allocations: 209.7 kB / 457.1 MB, free: 6.262 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.684e-05/0.5755, allocations: 74.56 kB / 457.2 MB, free: 6.199 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.695e-05/0.5755, allocations: 3.938 kB / 457.2 MB, free: 6.199 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.5757, allocations: 322.5 kB / 457.5 MB, free: 5.879 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000262/0.5759, allocations: 79.25 kB / 457.6 MB, free: 5.828 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003142/0.5763, allocations: 123 kB / 457.7 MB, free: 5.734 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002968/0.5766, allocations: 109.7 kB / 457.8 MB, free: 5.652 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.5766, allocations: 0 / 457.8 MB, free: 5.652 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007499/0.5774, allocations: 268.8 kB / 458.1 MB, free: 5.445 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.377e-05/0.5774, allocations: 41.78 kB / 458.1 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.5774, allocations: 0 / 458.1 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.5775, allocations: 0 / 458.1 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004438/0.5819, allocations: 331.6 kB / 458.4 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007217/0.5892, allocations: 3.049 MB / 461.5 MB, free: 1.875 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008007/0.59, allocations: 67.55 kB / 461.5 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.109e-05/0.5901, allocations: 7.812 kB / 461.5 MB, free: 1.809 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 () * 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.0001626/0.5903, allocations: 123.6 kB / 461.7 MB, free: 1.688 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.689e-05/0.5904, allocations: 27.67 kB / 461.7 MB, free: 1.66 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.901e-05/0.5905, allocations: 32.45 kB / 461.7 MB, free: 1.641 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-06/0.5905, allocations: 4 kB / 461.7 MB, free: 1.637 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.5905, allocations: 4 kB / 461.7 MB, free: 1.633 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.5905, allocations: 4 kB / 461.7 MB, free: 1.629 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/0.5925, allocations: 0.797 MB / 462.5 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.5925, allocations: 0 / 462.5 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004787/0.5973, allocations: 315.8 kB / 462.8 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.274e-05/0.5974, allocations: 4 kB / 462.8 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.304e-05/0.5975, allocations: 10.73 kB / 462.9 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0128/0.6103, allocations: 3.048 MB / 465.9 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.6104, allocations: 0 / 465.9 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001885/0.6123, allocations: 461.6 kB / 466.4 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002009/0.6126, allocations: 100.9 kB / 466.5 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.6127, allocations: 3.5 kB / 466.5 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001204/0.6139, allocations: 55.14 kB / 466.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.6142, allocations: 34.83 kB / 466.5 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.387e-05/0.6143, allocations: 8 kB / 466.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004096/0.6147, allocations: 167.9 kB / 466.7 MB, free: 12.65 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.02e-07/0.6147, allocations: 0 / 466.7 MB, free: 12.65 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001964/0.6167, allocations: 87.84 kB / 466.8 MB, free: 12.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * 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.0003896/0.6171, allocations: 123.6 kB / 466.9 MB, free: 12.44 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00538/0.6225, allocations: 483 kB / 467.4 MB, free: 11.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/0.6226, allocations: 4 kB / 467.4 MB, free: 11.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003653/0.6263, allocations: 339.9 kB / 467.7 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/0.6268, allocations: 40.34 kB / 467.8 MB, free: 11.58 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002285/0.6291, allocations: 499.5 kB / 468.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.6296, allocations: 0.7596 MB / 469 MB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.6297, allocations: 19.44 kB / 469 MB, free: 10.25 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/0.6297, allocations: 0 / 469 MB, free: 10.25 MB / 346.7 MB Notification: Performance of Templates: time 0.0115/0.6413, allocations: 5.155 MB / 474.2 MB, free: 5.09 MB / 346.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