Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001346/0.001346, allocations: 114 kB / 17.83 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001315/0.001315, allocations: 205.9 kB / 18.79 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.493/1.493, allocations: 230.4 MB / 250 MB, free: 9.02 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 63.84 kB / 367.4 MB, free: 7.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2673, allocations: 53.31 MB / 420.7 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004769/0.2721, allocations: 2.785 MB / 423.4 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001881/0.2739, allocations: 0.7478 MB / 424.2 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002079/0.2741, allocations: 4 kB / 424.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001808/0.2743, allocations: 43.56 kB / 424.2 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002278/0.2746, allocations: 91.2 kB / 424.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005174/0.2751, allocations: 115.7 kB / 424.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005285/0.2756, allocations: 390.5 kB / 424.8 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.2758, allocations: 56.7 kB / 424.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000348/0.2762, allocations: 159.5 kB / 425 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002559/0.2764, allocations: 167.3 kB / 425.2 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.708e-05/0.2765, allocations: 32 kB / 425.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.2766, allocations: 40 kB / 425.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.968e-05/0.2767, allocations: 75.73 kB / 425.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.2769, allocations: 163.2 kB / 425.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006182/0.2775, allocations: 370.4 kB / 425.9 MB, free: 3.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.2775, allocations: 4 kB / 425.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2775, allocations: 4 kB / 425.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.2775, allocations: 0 / 425.9 MB, free: 3.105 MB / 334.1 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.001788/0.2793, allocations: 0.683 MB / 426.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.2793, allocations: 8.031 kB / 426.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002003/0.2795, allocations: 44.73 kB / 426.6 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005642/0.2801, allocations: 278.9 kB / 426.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.104e-05/0.2801, allocations: 16.81 kB / 426.9 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.913e-05/0.2802, allocations: 20.38 kB / 426.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008879/0.2811, allocations: 318 kB / 427.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.2811, allocations: 4 kB / 427.2 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.904e-05/0.2811, allocations: 8 kB / 427.2 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.2811, allocations: 4 kB / 427.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.2821, allocations: 297.5 kB / 427.5 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.2841, allocations: 0.9649 MB / 428.5 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003088/0.2872, allocations: 0.4903 MB / 429 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007182/0.2879, allocations: 208.6 kB / 429.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.019e-05/0.288, allocations: 0 / 429.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006843/0.2886, allocations: 241.7 kB / 429.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.2886, allocations: 0 / 429.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001598/0.2902, allocations: 473.6 kB / 429.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.939e-05/0.2903, allocations: 110.8 kB / 430 MB, free: 14.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000281/0.2906, allocations: 233 kB / 430.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.2906, allocations: 33.7 kB / 430.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.2908, allocations: 164.3 kB / 430.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.819e-05/0.2909, allocations: 75.38 kB / 430.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.291, allocations: 53.92 kB / 430.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.2912, allocations: 334.8 kB / 430.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004911/0.2917, allocations: 136.4 kB / 431 MB, free: 13.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005045/0.2922, allocations: 180.2 kB / 431.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009512/0.2931, allocations: 328 kB / 431.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2931, allocations: 0 / 431.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001169/0.2943, allocations: 406.9 kB / 431.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.429e-05/0.2944, allocations: 48.34 kB / 431.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.2944, allocations: 0 / 431.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.2944, allocations: 0 / 431.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001872/0.2963, allocations: 259.7 kB / 432.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005542/0.3018, allocations: 3.452 MB / 435.7 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004462/0.3022, allocations: 55.81 kB / 435.7 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.059e-05/0.3023, allocations: 11.98 kB / 435.7 MB, free: 8.676 MB / 350.1 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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,$whenCondition1) * 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002071/0.3025, allocations: 149.8 kB / 435.9 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.388e-05/0.3025, allocations: 27.81 kB / 435.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.106e-05/0.3026, allocations: 30.17 kB / 435.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3026, allocations: 4 kB / 435.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.3026, allocations: 3.938 kB / 435.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3026, allocations: 0 / 435.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001957/0.3046, allocations: 0.8999 MB / 436.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3046, allocations: 4 kB / 436.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00185/0.3064, allocations: 255.7 kB / 437.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.3064, allocations: 4 kB / 437.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.622e-05/0.3065, allocations: 7.984 kB / 437.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00524/0.3117, allocations: 3.443 MB / 440.5 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3117, allocations: 4.156 kB / 440.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/0.3133, allocations: 0.608 MB / 441.1 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.3135, allocations: 104.9 kB / 441.3 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.794e-05/0.3135, allocations: 7.938 kB / 441.3 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003616/0.3139, allocations: 44.02 kB / 441.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.314, allocations: 27.95 kB / 441.3 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/0.314, allocations: 15.92 kB / 441.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002012/0.3142, allocations: 172.5 kB / 441.5 MB, free: 2.496 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3142, allocations: 0 / 441.5 MB, free: 2.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004904/0.3147, allocations: 79.89 kB / 441.6 MB, free: 2.418 MB / 350.1 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001607/0.3148, allocations: 110.8 kB / 441.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002685/0.3175, allocations: 0.5652 MB / 442.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3175, allocations: 0 / 442.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002119/0.3197, allocations: 379.8 kB / 442.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005101/0.3202, allocations: 43.11 kB / 442.7 MB, free: 1.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.3222, allocations: 0.6966 MB / 443.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004512/0.3226, allocations: 0.7519 MB / 444.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001447/0.3228, allocations: 21.95 kB / 444.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.233e-05/0.3228, allocations: 27.42 kB / 444.2 MB, free: 15.76 MB / 366.1 MB Notification: Performance of SimCode: time 1.563e-06/0.3228, allocations: 0 / 444.2 MB, free: 15.76 MB / 366.1 MB Notification: Performance of Templates: time 0.008899/0.3317, allocations: 3.88 MB / 448.1 MB, free: 11.91 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches