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.000929/0.0009288, allocations: 177.5 kB / 16.41 MB, free: 5.707 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.588/1.588, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0007747/0.0007748, allocations: 94.3 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003805, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.371/0.3714, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003023/0.3745, allocations: 2.288 MB / 376.8 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.3761, allocations: 0.7171 MB / 377.6 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002679/0.3764, allocations: 3.312 kB / 377.6 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001586/0.3766, allocations: 26.77 kB / 377.6 MB, free: 43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.3769, allocations: 72.36 kB / 377.7 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003993/0.3773, allocations: 75.52 kB / 377.7 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004499/0.3777, allocations: 339.9 kB / 378.1 MB, free: 42.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002262/0.378, allocations: 65.38 kB / 378.1 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003963/0.3784, allocations: 120.3 kB / 378.2 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003037/0.3787, allocations: 155.4 kB / 378.4 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.707e-05/0.3788, allocations: 17.97 kB / 378.4 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.796e-05/0.3789, allocations: 19.84 kB / 378.4 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.514e-05/0.379, allocations: 47 kB / 378.5 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.3791, allocations: 74.77 kB / 378.5 MB, free: 42.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002896/0.3794, allocations: 262.6 kB / 378.8 MB, free: 42.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.3794, allocations: 0 / 378.8 MB, free: 42.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3794, allocations: 3.938 kB / 378.8 MB, free: 42.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.3794, allocations: 0.9688 kB / 378.8 MB, free: 42.17 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.00178/0.3812, allocations: 0.6552 MB / 379.5 MB, free: 41.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.3813, allocations: 9.125 kB / 379.5 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.3814, allocations: 30.97 kB / 379.5 MB, free: 41.6 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.3817, allocations: 266.3 kB / 379.8 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.3818, allocations: 20.97 kB / 379.8 MB, free: 41.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.126e-05/0.3818, allocations: 21.91 kB / 379.8 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008324/0.3827, allocations: 324.2 kB / 380.1 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.3827, allocations: 0.9062 kB / 380.1 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.3827, allocations: 9.344 kB / 380.1 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.3827, allocations: 4.969 kB / 380.1 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.3838, allocations: 338.8 kB / 380.5 MB, free: 40.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.3857, allocations: 1.001 MB / 381.5 MB, free: 40.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00324/0.389, allocations: 0.5992 MB / 382.1 MB, free: 39.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007388/0.3897, allocations: 238.5 kB / 382.3 MB, free: 39.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.272e-05/0.3898, allocations: 10.78 kB / 382.3 MB, free: 39.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007941/0.3906, allocations: 265.7 kB / 382.6 MB, free: 39.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 3.095e-06/0.3906, allocations: 0 / 382.6 MB, free: 39.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001695/0.3923, allocations: 0.5198 MB / 383.1 MB, free: 39.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.778e-05/0.3924, allocations: 110.4 kB / 383.2 MB, free: 39.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000247/0.3926, allocations: 226.3 kB / 383.4 MB, free: 39.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.3927, allocations: 28.11 kB / 383.4 MB, free: 39.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.351e-05/0.3928, allocations: 164.3 kB / 383.6 MB, free: 38.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.911e-05/0.3928, allocations: 72.28 kB / 383.7 MB, free: 38.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.861e-05/0.3929, allocations: 4.844 kB / 383.7 MB, free: 38.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.942e-05/0.393, allocations: 331.9 kB / 384 MB, free: 38.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004898/0.3934, allocations: 159.6 kB / 384.2 MB, free: 38.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000506/0.394, allocations: 209.6 kB / 384.4 MB, free: 38.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000506/0.3945, allocations: 185.5 kB / 384.5 MB, free: 38.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3945, allocations: 0 / 384.5 MB, free: 38.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001179/0.3957, allocations: 455 kB / 385 MB, free: 38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.759e-05/0.3957, allocations: 36.44 kB / 385 MB, free: 37.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.3957, allocations: 0 / 385 MB, free: 37.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.3958, allocations: 1.5 kB / 385 MB, free: 37.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001872/0.3976, allocations: 314.9 kB / 385.3 MB, free: 37.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003951/0.4016, allocations: 3.208 MB / 388.5 MB, free: 34.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004311/0.4021, allocations: 63.98 kB / 388.6 MB, free: 34.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.528e-05/0.4021, allocations: 8 kB / 388.6 MB, free: 34.2 MB / 298.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 () * 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.0001702/0.4023, allocations: 145.7 kB / 388.8 MB, free: 34.05 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.02e-05/0.4023, allocations: 23.72 kB / 388.8 MB, free: 34.03 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.628e-05/0.4024, allocations: 30.19 kB / 388.8 MB, free: 34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.4024, allocations: 15.97 kB / 388.8 MB, free: 33.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.4024, allocations: 0 / 388.8 MB, free: 33.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.4024, allocations: 4 kB / 388.8 MB, free: 33.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001643/0.404, allocations: 0.9524 MB / 389.8 MB, free: 32.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.4041, allocations: 4.062 kB / 389.8 MB, free: 32.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001789/0.4059, allocations: 299.7 kB / 390.1 MB, free: 32.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.4059, allocations: 7.875 kB / 390.1 MB, free: 32.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.461e-05/0.4059, allocations: 8 kB / 390.1 MB, free: 32.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003813/0.4097, allocations: 3.228 MB / 393.3 MB, free: 29.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4097, allocations: 0 / 393.3 MB, free: 29.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.4111, allocations: 0.6611 MB / 394 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.453e-05/0.4112, allocations: 112.7 kB / 394.1 MB, free: 28.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.851e-05/0.4113, allocations: 4 kB / 394.1 MB, free: 28.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003501/0.4116, allocations: 52.02 kB / 394.1 MB, free: 28.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.708e-05/0.4117, allocations: 31.95 kB / 394.2 MB, free: 28.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.4117, allocations: 8 kB / 394.2 MB, free: 28.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001217/0.4119, allocations: 168.5 kB / 394.4 MB, free: 28.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4119, allocations: 4 kB / 394.4 MB, free: 28.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004387/0.4123, allocations: 79.84 kB / 394.4 MB, free: 28.01 MB / 298.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) * 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.0001385/0.4125, allocations: 120.9 kB / 394.6 MB, free: 27.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002555/0.415, allocations: 0.6395 MB / 395.2 MB, free: 27.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.415, allocations: 0 / 395.2 MB, free: 27.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002013/0.4171, allocations: 435.8 kB / 395.6 MB, free: 26.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.4175, allocations: 36.42 kB / 395.7 MB, free: 26.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.4191, allocations: 0.8393 MB / 396.5 MB, free: 25.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001599/0.4193, allocations: 0.7521 MB / 397.2 MB, free: 25.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.167e-05/0.4194, allocations: 23.42 kB / 397.3 MB, free: 25.1 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.4194, allocations: 0 / 397.3 MB, free: 25.1 MB / 298.7 MB Notification: Performance of Templates: time 0.005879/0.4253, allocations: 5.381 MB / 402.6 MB, free: 19.73 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/jenkins/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:der(inductor.i),der(thyristor_v4_1.vControl),ground.p.i,ground.p.v,inductor.L,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,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