Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001481/0.001481, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00111/0.00111, allocations: 102.3 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.694e-05/1.719e-05, allocations: 4 kB / 343.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09323/0.09326, allocations: 51.49 MB / 395.2 MB, free: 4.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3064/0.3997, allocations: 81.01 MB / 476.2 MB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001606/0.3999, allocations: 72.34 kB / 476.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0128/0.4127, allocations: 4.994 MB / 481.2 MB, free: 7.922 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4128, allocations: 0 / 481.2 MB, free: 7.922 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.4128, allocations: 4 kB / 481.3 MB, free: 7.918 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.0009354/0.4137, allocations: 0.6063 MB / 481.9 MB, free: 7.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.4138, allocations: 16.03 kB / 481.9 MB, free: 7.266 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.4139, allocations: 46.55 kB / 481.9 MB, free: 7.223 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.4142, allocations: 249.9 kB / 482.2 MB, free: 6.961 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.4142, allocations: 14.77 kB / 482.2 MB, free: 6.953 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.989e-05/0.4142, allocations: 15.91 kB / 482.2 MB, free: 6.938 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002617/0.4145, allocations: 163.2 kB / 482.4 MB, free: 6.844 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002969/0.4148, allocations: 219.2 kB / 482.6 MB, free: 6.672 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.4148, allocations: 0 / 482.6 MB, free: 6.672 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.472e-05/0.4149, allocations: 4 kB / 482.6 MB, free: 6.668 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.4149, allocations: 4 kB / 482.6 MB, free: 6.664 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.4164, allocations: 0.9664 MB / 483.5 MB, free: 5.816 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002404/0.4188, allocations: 469.1 kB / 484 MB, free: 5.43 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002431/0.419, allocations: 143.2 kB / 484.1 MB, free: 5.332 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.4191, allocations: 9.797 kB / 484.1 MB, free: 5.324 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002296/0.4193, allocations: 175.6 kB / 484.3 MB, free: 5.168 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.352e-06/0.4193, allocations: 0 / 484.3 MB, free: 5.168 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003406/0.4197, allocations: 208.2 kB / 484.5 MB, free: 5.008 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.4197, allocations: 110.8 kB / 484.6 MB, free: 4.875 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.4199, allocations: 187 kB / 484.8 MB, free: 4.719 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.4199, allocations: 29.08 kB / 484.8 MB, free: 4.688 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.647e-05/0.42, allocations: 161.5 kB / 485 MB, free: 4.555 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.142e-05/0.42, allocations: 73.5 kB / 485.1 MB, free: 4.492 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.729e-05/0.42, allocations: 4 kB / 485.1 MB, free: 4.488 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.217e-05/0.4201, allocations: 326.4 kB / 485.4 MB, free: 4.168 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.4202, allocations: 85.3 kB / 485.5 MB, free: 4.117 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.4203, allocations: 104.1 kB / 485.6 MB, free: 4.039 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001094/0.4204, allocations: 63.11 kB / 485.6 MB, free: 4.004 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4204, allocations: 7.984 kB / 485.7 MB, free: 3.996 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003157/0.4208, allocations: 235.6 kB / 485.9 MB, free: 3.828 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.4208, allocations: 37.8 kB / 485.9 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.4208, allocations: 0 / 485.9 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.4208, allocations: 4 kB / 485.9 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/0.4229, allocations: 331.6 kB / 486.2 MB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003151/0.426, allocations: 2.965 MB / 489.2 MB, free: 388 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003705/0.4264, allocations: 59.92 kB / 489.3 MB, free: 328 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.4265, allocations: 8 kB / 489.3 MB, free: 320 kB / 346.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 8.72e-05/0.4265, allocations: 116.8 kB / 489.4 MB, free: 200 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.606e-05/0.4266, allocations: 23.72 kB / 489.4 MB, free: 176 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.402e-05/0.4266, allocations: 20.53 kB / 489.4 MB, free: 164 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.4267, allocations: 7.953 kB / 489.4 MB, free: 156 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.4267, allocations: 0 / 489.4 MB, free: 156 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.4267, allocations: 7.984 kB / 489.4 MB, free: 148 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.4278, allocations: 0.7374 MB / 490.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.4278, allocations: 4 kB / 490.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002162/0.43, allocations: 323.7 kB / 490.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.43, allocations: 7.125 kB / 490.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.4301, allocations: 11.45 kB / 490.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003764/0.4338, allocations: 2.955 MB / 493.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.4339, allocations: 4.031 kB / 493.5 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005621/0.4344, allocations: 431.5 kB / 493.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.898e-05/0.4345, allocations: 108.3 kB / 494 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.375e-05/0.4346, allocations: 4 kB / 494 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003725/0.4349, allocations: 55.08 kB / 494.1 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.178e-05/0.435, allocations: 31.78 kB / 494.1 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.4351, allocations: 7.25 kB / 494.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001394/0.4352, allocations: 159.2 kB / 494.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4352, allocations: 0 / 494.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000473/0.4357, allocations: 79.84 kB / 494.3 MB, free: 11.33 MB / 362.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.0001573/0.4359, allocations: 118.8 kB / 494.5 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002126/0.438, allocations: 475.1 kB / 494.9 MB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.438, allocations: 0 / 494.9 MB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002373/0.4404, allocations: 333.4 kB / 495.2 MB, free: 10.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004264/0.4408, allocations: 30.42 kB / 495.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.4427, allocations: 476.6 kB / 495.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004311/0.4432, allocations: 0.7594 MB / 496.5 MB, free: 9.258 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002494/0.4434, allocations: 26.02 kB / 496.5 MB, free: 9.234 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.4435, allocations: 19.44 kB / 496.5 MB, free: 9.215 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4436, allocations: 4 kB / 496.5 MB, free: 9.211 MB / 362.7 MB Notification: Performance of Templates: time 0.009245/0.4528, allocations: 2.882 MB / 499.4 MB, free: 6.406 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches