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/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 trunk/package.mo", uses=false) 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) 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_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/ModelicaServices trunk/package.mo): time 0.001066/0.001066, allocations: 95.06 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001453/0.001453, allocations: 207.2 kB / 18.94 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.7 MB / 247.5 MB, free: 9.711 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002643/0.0002642, allocations: 8 kB / 308.4 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09346/0.09374, allocations: 51.53 MB / 359.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.002841/0.09662, allocations: 2.447 MB / 362.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.0981, allocations: 0.748 MB / 363.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001826/0.0983, allocations: 7.938 kB / 363.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.09845, allocations: 35.75 kB / 363.1 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002046/0.09866, allocations: 71.39 kB / 363.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.09899, allocations: 99.89 kB / 363.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003808/0.09939, allocations: 362.5 kB / 363.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.09957, allocations: 69.12 kB / 363.7 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002905/0.09987, allocations: 131.5 kB / 363.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/0.1001, allocations: 159.3 kB / 364 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.023e-05/0.1002, allocations: 20 kB / 364 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.642e-05/0.1002, allocations: 16 kB / 364.1 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.039e-05/0.1003, allocations: 55.75 kB / 364.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001521/0.1005, allocations: 165 kB / 364.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.1007, allocations: 267.5 kB / 364.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1007, allocations: 0 / 364.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1007, allocations: 0 / 364.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1008, allocations: 0 / 364.5 MB, free: 8.449 MB / 302.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.001513/0.1023, allocations: 0.6727 MB / 365.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.1023, allocations: 12.02 kB / 365.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001865/0.1025, allocations: 44.5 kB / 365.3 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.1028, allocations: 274.7 kB / 365.5 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.134e-05/0.1029, allocations: 20.81 kB / 365.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.874e-05/0.1029, allocations: 20.38 kB / 365.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008067/0.1038, allocations: 338 kB / 365.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1038, allocations: 0 / 365.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.1038, allocations: 12 kB / 365.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.577e-06/0.1038, allocations: 4 kB / 365.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009994/0.1048, allocations: 349.5 kB / 366.3 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.1066, allocations: 0.9921 MB / 367.2 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003127/0.1098, allocations: 0.6179 MB / 367.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006719/0.1105, allocations: 240.7 kB / 368.1 MB, free: 4.691 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.1105, allocations: 8 kB / 368.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000676/0.1112, allocations: 269.6 kB / 368.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.134e-06/0.1112, allocations: 0 / 368.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001644/0.1128, allocations: 0.5366 MB / 368.9 MB, free: 3.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.1129, allocations: 106.8 kB / 369 MB, free: 3.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.1132, allocations: 237 kB / 369.2 MB, free: 3.484 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.1132, allocations: 37.69 kB / 369.3 MB, free: 3.441 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.1133, allocations: 156.2 kB / 369.4 MB, free: 3.285 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.916e-05/0.1134, allocations: 71 kB / 369.5 MB, free: 3.215 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.951e-05/0.1135, allocations: 25.72 kB / 369.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1136, allocations: 334.8 kB / 369.9 MB, free: 2.848 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005142/0.1141, allocations: 176.3 kB / 370 MB, free: 2.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005197/0.1147, allocations: 204.2 kB / 370.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009941/0.1157, allocations: 373.8 kB / 370.6 MB, free: 2.086 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1157, allocations: 0 / 370.6 MB, free: 2.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001162/0.1169, allocations: 454.8 kB / 371 MB, free: 1.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/0.1169, allocations: 41.64 kB / 371.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1169, allocations: 0 / 371.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.1169, allocations: 0 / 371.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001938/0.1189, allocations: 367.6 kB / 371.4 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1628/0.2817, allocations: 3.281 MB / 374.7 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004424/0.2822, allocations: 69.62 kB / 374.8 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-05/0.2822, allocations: 9.266 kB / 374.8 MB, free: 16.94 MB / 302.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.0001606/0.2824, allocations: 151.2 kB / 374.9 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.002e-05/0.2825, allocations: 20.84 kB / 375 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.706e-05/0.2825, allocations: 32.94 kB / 375 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2825, allocations: 2.844 kB / 375 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.2825, allocations: 1.219 kB / 375 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.2826, allocations: 9.266 kB / 375 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001856/0.2844, allocations: 0.9684 MB / 376 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.2844, allocations: 0.875 kB / 376 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001947/0.2864, allocations: 353.3 kB / 376.3 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.2864, allocations: 1.406 kB / 376.3 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.809e-05/0.2864, allocations: 6.688 kB / 376.3 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00411/0.2905, allocations: 3.299 MB / 379.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.2906, allocations: 1.094 kB / 379.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00165/0.2922, allocations: 0.6756 MB / 380.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.403e-05/0.2923, allocations: 109.1 kB / 380.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.614e-05/0.2924, allocations: 4.828 kB / 380.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003668/0.2927, allocations: 56.55 kB / 380.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.606e-05/0.2928, allocations: 33.98 kB / 380.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/0.2929, allocations: 8.5 kB / 380.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001615/0.293, allocations: 172.2 kB / 380.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.293, allocations: 0 / 380.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004839/0.2935, allocations: 78.89 kB / 380.8 MB, free: 13.32 MB / 302.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.0001177/0.2937, allocations: 106.9 kB / 380.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002725/0.2964, allocations: 0.7046 MB / 381.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.2964, allocations: 0 / 381.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002158/0.2986, allocations: 493.8 kB / 382.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.299, allocations: 40.38 kB / 382.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.3007, allocations: 0.8841 MB / 383 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.3009, allocations: 0.7517 MB / 383.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.304e-05/0.301, allocations: 20.78 kB / 383.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.301, allocations: 1.25 kB / 383.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of Templates: time 0.00795/0.309, allocations: 5.469 MB / 389.2 MB, free: 10.59 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches