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.003835/0.003835, allocations: 182.2 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.794/3.794, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001654/0.001654, allocations: 96.45 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006897/0.0006899, allocations: 8 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6106/0.6113, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004979/0.6164, allocations: 2.191 MB / 376.7 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002537/0.619, allocations: 0.7273 MB / 377.4 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003808/0.6194, allocations: 3.156 kB / 377.4 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000133/0.6196, allocations: 29.77 kB / 377.5 MB, free: 43.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005013/0.6201, allocations: 95.86 kB / 377.6 MB, free: 43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005565/0.6207, allocations: 75.62 kB / 377.6 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007179/0.6214, allocations: 236.9 kB / 377.9 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003219/0.6218, allocations: 64.39 kB / 377.9 MB, free: 42.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004772/0.6223, allocations: 128.1 kB / 378.1 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004046/0.6227, allocations: 152.3 kB / 378.2 MB, free: 42.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.807e-05/0.6228, allocations: 16.09 kB / 378.2 MB, free: 42.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.6229, allocations: 17.5 kB / 378.2 MB, free: 42.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.623, allocations: 55.08 kB / 378.3 MB, free: 42.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.6232, allocations: 81.3 kB / 378.4 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005375/0.6237, allocations: 258.1 kB / 378.6 MB, free: 42.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.6238, allocations: 0 / 378.6 MB, free: 42.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.6238, allocations: 0 / 378.6 MB, free: 42.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.6238, allocations: 1.094 kB / 378.6 MB, free: 42.28 MB / 298.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.003183/0.627, allocations: 0.6592 MB / 379.3 MB, free: 41.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.393e-05/0.6271, allocations: 8.531 kB / 379.3 MB, free: 41.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002185/0.6273, allocations: 31.41 kB / 379.3 MB, free: 41.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006269/0.628, allocations: 265.9 kB / 379.6 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.882e-05/0.6281, allocations: 17.56 kB / 379.6 MB, free: 41.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.6282, allocations: 21.22 kB / 379.6 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001938/0.6301, allocations: 327.5 kB / 379.9 MB, free: 41.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.6302, allocations: 0 / 379.9 MB, free: 41.22 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.428e-05/0.6303, allocations: 5.375 kB / 379.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.6304, allocations: 4.719 kB / 379.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002471/0.6329, allocations: 334.4 kB / 380.3 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004036/0.637, allocations: 1.005 MB / 381.3 MB, free: 40.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007345/0.6444, allocations: 0.5955 MB / 381.9 MB, free: 40 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.461e-05/0.6445, allocations: 5.734 kB / 381.9 MB, free: 40 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001648/0.6462, allocations: 262.6 kB / 382.1 MB, free: 39.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 5.601e-06/0.6463, allocations: 0 / 382.1 MB, free: 39.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.004038/0.6503, allocations: 0.5254 MB / 382.7 MB, free: 39.6 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.71e-05/0.6505, allocations: 85.42 kB / 382.7 MB, free: 39.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005125/0.651, allocations: 226.8 kB / 383 MB, free: 39.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.817e-05/0.6511, allocations: 34.84 kB / 383 MB, free: 39.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.6513, allocations: 214.9 kB / 383.2 MB, free: 39.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.6515, allocations: 63.48 kB / 383.3 MB, free: 39.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-05/0.6515, allocations: 5.094 kB / 383.3 MB, free: 39.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.9e-05/0.6516, allocations: 322 kB / 383.6 MB, free: 38.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.653, allocations: 167 kB / 383.8 MB, free: 38.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.6543, allocations: 198.2 kB / 384 MB, free: 38.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/0.6556, allocations: 189.5 kB / 384.1 MB, free: 38.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.6557, allocations: 4 kB / 384.1 MB, free: 38.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.002938/0.6587, allocations: 431.5 kB / 384.6 MB, free: 38.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.339e-05/0.6588, allocations: 40.06 kB / 384.6 MB, free: 38.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.6588, allocations: 0.9688 kB / 384.6 MB, free: 38.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.459e-05/0.6589, allocations: 4.984 kB / 384.6 MB, free: 38.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004532/0.6634, allocations: 309.1 kB / 384.9 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009569/0.6731, allocations: 3.252 MB / 388.2 MB, free: 34.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.6741, allocations: 59.73 kB / 388.2 MB, free: 34.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.735e-05/0.6743, allocations: 15.98 kB / 388.2 MB, free: 34.58 MB / 298.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.0003283/0.6746, allocations: 154.3 kB / 388.4 MB, free: 34.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.6747, allocations: 27.69 kB / 388.4 MB, free: 34.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.6749, allocations: 30.17 kB / 388.4 MB, free: 34.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.6749, allocations: 0 / 388.4 MB, free: 34.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.6749, allocations: 4 kB / 388.4 MB, free: 34.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.6749, allocations: 0 / 388.4 MB, free: 34.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006922/0.6756, allocations: 353.2 kB / 388.8 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.6757, allocations: 0 / 388.8 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004394/0.6801, allocations: 307.6 kB / 389.1 MB, free: 33.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.456e-05/0.6801, allocations: 0 / 389.1 MB, free: 33.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.512e-05/0.6802, allocations: 7.984 kB / 389.1 MB, free: 33.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009522/0.6898, allocations: 3.244 MB / 392.3 MB, free: 30.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.6899, allocations: 0 / 392.3 MB, free: 30.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004043/0.6939, allocations: 0.6012 MB / 392.9 MB, free: 29.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001901/0.6942, allocations: 100.8 kB / 393 MB, free: 29.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.6943, allocations: 4 kB / 393 MB, free: 29.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008744/0.6952, allocations: 60 kB / 393.1 MB, free: 29.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001832/0.6954, allocations: 23.97 kB / 393.1 MB, free: 29.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-05/0.6955, allocations: 11.98 kB / 393.1 MB, free: 29.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003284/0.6959, allocations: 168.5 kB / 393.3 MB, free: 29.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.32e-07/0.6959, allocations: 0 / 393.3 MB, free: 29.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001203/0.6971, allocations: 79.84 kB / 393.4 MB, free: 29.07 MB / 298.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.0002652/0.6974, allocations: 120.7 kB / 393.5 MB, free: 28.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.006534/0.704, allocations: 0.6442 MB / 394.1 MB, free: 28.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/0.704, allocations: 0 / 394.1 MB, free: 28.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004818/0.7089, allocations: 431.8 kB / 394.6 MB, free: 27.87 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007234/0.7097, allocations: 32.38 kB / 394.6 MB, free: 27.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003181/0.7129, allocations: 0.7934 MB / 395.4 MB, free: 27.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.7133, allocations: 0.7599 MB / 396.2 MB, free: 26.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.7136, allocations: 19.44 kB / 396.2 MB, free: 26.21 MB / 298.7 MB Notification: Performance of SimCode: time 1.723e-06/0.7136, allocations: 0 / 396.2 MB, free: 26.21 MB / 298.7 MB Notification: Performance of Templates: time 0.0151/0.7287, allocations: 5.237 MB / 401.4 MB, free: 20.98 MB / 298.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