Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001449/0.001449, allocations: 195 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000805/0.0008049, allocations: 91.34 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002194/0.0002195, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2047, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.002024/0.2068, allocations: 2.323 MB / 409.8 MB, free: 25.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008693/0.2077, allocations: 0.7065 MB / 410.5 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.2078, allocations: 4 kB / 410.5 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001018/0.2079, allocations: 27.77 kB / 410.6 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001232/0.2081, allocations: 72.77 kB / 410.6 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002255/0.2083, allocations: 76.98 kB / 410.7 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.2085, allocations: 334.5 kB / 411 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.2087, allocations: 70.55 kB / 411.1 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001895/0.2089, allocations: 135.5 kB / 411.2 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.209, allocations: 147.4 kB / 411.4 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.58e-05/0.2091, allocations: 16 kB / 411.4 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.505e-05/0.2091, allocations: 24 kB / 411.4 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.684e-05/0.2092, allocations: 51.8 kB / 411.5 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.827e-05/0.2093, allocations: 77.52 kB / 411.5 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.2094, allocations: 260.2 kB / 411.8 MB, free: 23.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2095, allocations: 1.781 kB / 411.8 MB, free: 23.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2095, allocations: 0 / 411.8 MB, free: 23.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.2095, allocations: 0 / 411.8 MB, free: 23.51 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.001269/0.2107, allocations: 0.6648 MB / 412.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.2108, allocations: 11.97 kB / 412.5 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/0.211, allocations: 43.61 kB / 412.5 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.2112, allocations: 271.4 kB / 412.8 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.2112, allocations: 16.44 kB / 412.8 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.762e-05/0.2113, allocations: 19.95 kB / 412.8 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006502/0.2119, allocations: 329.7 kB / 413.1 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.212, allocations: 0 / 413.1 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/0.212, allocations: 15.94 kB / 413.1 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.212, allocations: 4 kB / 413.2 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008311/0.2128, allocations: 329.5 kB / 413.5 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.2143, allocations: 0.9882 MB / 414.5 MB, free: 20.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002857/0.2171, allocations: 0.5998 MB / 415.1 MB, free: 20.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005638/0.2177, allocations: 246.9 kB / 415.3 MB, free: 19.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.2178, allocations: 0 / 415.3 MB, free: 19.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005707/0.2183, allocations: 263.2 kB / 415.6 MB, free: 19.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.433e-06/0.2183, allocations: 0 / 415.6 MB, free: 19.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001346/0.2197, allocations: 0.5167 MB / 416.1 MB, free: 19.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.2198, allocations: 110.8 kB / 416.2 MB, free: 18.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.2199, allocations: 233 kB / 416.4 MB, free: 18.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.22, allocations: 33.7 kB / 416.4 MB, free: 18.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.639e-05/0.22, allocations: 164.1 kB / 416.6 MB, free: 18.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.428e-05/0.2201, allocations: 63.02 kB / 416.7 MB, free: 18.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.58e-05/0.2201, allocations: 4 kB / 416.7 MB, free: 18.37 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.215e-05/0.2202, allocations: 334.8 kB / 417 MB, free: 18.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000426/0.2206, allocations: 164.4 kB / 417.2 MB, free: 17.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004269/0.221, allocations: 208.2 kB / 417.4 MB, free: 17.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004512/0.2215, allocations: 189.6 kB / 417.5 MB, free: 17.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2215, allocations: 0 / 417.5 MB, free: 17.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009354/0.2224, allocations: 442.8 kB / 418 MB, free: 17.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.2225, allocations: 41.69 kB / 418 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.2225, allocations: 3.953 kB / 418 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.2225, allocations: 4 kB / 418 MB, free: 16.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/0.2243, allocations: 311.6 kB / 418.3 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003737/0.228, allocations: 3.205 MB / 421.5 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003849/0.2284, allocations: 67.73 kB / 421.6 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.457e-05/0.2285, allocations: 4 kB / 421.6 MB, free: 13.12 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.0001347/0.2286, allocations: 149.8 kB / 421.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/0.2287, allocations: 19.81 kB / 421.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.641e-05/0.2287, allocations: 30.19 kB / 421.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2287, allocations: 4 kB / 421.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.2287, allocations: 0 / 421.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.2287, allocations: 7.984 kB / 421.8 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.2302, allocations: 0.9663 MB / 422.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2302, allocations: 0 / 422.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00173/0.232, allocations: 303.8 kB / 423.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.232, allocations: 3.984 kB / 423.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.232, allocations: 8 kB / 423.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0036/0.2356, allocations: 3.224 MB / 426.3 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2356, allocations: 0 / 426.3 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/0.237, allocations: 0.6641 MB / 427 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.318e-05/0.237, allocations: 112.7 kB / 427.1 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.706e-05/0.2371, allocations: 12.02 kB / 427.1 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003754/0.2374, allocations: 47.95 kB / 427.1 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.848e-05/0.2375, allocations: 35.95 kB / 427.2 MB, free: 7.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-05/0.2376, allocations: 8 kB / 427.2 MB, free: 7.172 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001349/0.2377, allocations: 168.5 kB / 427.4 MB, free: 7.004 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2377, allocations: 0 / 427.4 MB, free: 7.004 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004499/0.2382, allocations: 83.84 kB / 427.4 MB, free: 6.922 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.000142/0.2383, allocations: 106.7 kB / 427.5 MB, free: 6.809 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002495/0.2408, allocations: 0.6434 MB / 428.2 MB, free: 6.152 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2408, allocations: 0 / 428.2 MB, free: 6.152 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002004/0.2428, allocations: 435.8 kB / 428.6 MB, free: 5.727 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.2433, allocations: 36.38 kB / 428.6 MB, free: 5.691 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.2449, allocations: 0.8437 MB / 429.5 MB, free: 4.812 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001602/0.245, allocations: 0.7521 MB / 430.2 MB, free: 4.035 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.738e-05/0.2451, allocations: 23.42 kB / 430.3 MB, free: 4.012 MB / 298.7 MB Notification: Performance of SimCode: time 7.82e-07/0.2451, allocations: 0 / 430.3 MB, free: 4.012 MB / 298.7 MB Notification: Performance of Templates: time 0.006213/0.2513, allocations: 5.387 MB / 435.6 MB, free: 14.64 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","../files/Modelica_trunk_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.f,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.f,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