Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009503/0.0009503, allocations: 84.06 kB / 21.19 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000915/0.000915, allocations: 145.1 kB / 24.54 MB, free: 28 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9218/0.9218, allocations: 173.3 MB / 201.1 MB, free: 9.352 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5032,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5032,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.713e-05/2.862e-05, allocations: 6.25 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.00302/0.003048, allocations: 2.734 MB / 270.7 MB, free: 3.695 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.004187, allocations: 0.6932 MB / 271.4 MB, free: 2.996 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.004343, allocations: 4 kB / 271.4 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.004479, allocations: 43.58 kB / 271.5 MB, free: 2.949 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.004648, allocations: 99.12 kB / 271.6 MB, free: 2.852 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003399/0.004988, allocations: 107.7 kB / 271.7 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003496/0.005337, allocations: 390.3 kB / 272.1 MB, free: 2.363 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.005491, allocations: 60.88 kB / 272.1 MB, free: 2.301 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002857/0.005777, allocations: 219.5 kB / 272.3 MB, free: 2.086 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.005932, allocations: 123.7 kB / 272.5 MB, free: 1.965 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.594e-05/0.005978, allocations: 36 kB / 272.5 MB, free: 1.93 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.813e-05/0.006017, allocations: 32 kB / 272.5 MB, free: 1.898 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.599e-05/0.006072, allocations: 75.72 kB / 272.6 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.432e-05/0.006167, allocations: 103.8 kB / 272.7 MB, free: 1.723 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002688/0.006436, allocations: 251.2 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.006439, allocations: 0 / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.006441, allocations: 3.938 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.006447, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.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.0009113/0.007358, allocations: 0.6657 MB / 273.6 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.007398, allocations: 8.031 kB / 273.6 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.673e-05/0.007495, allocations: 44.75 kB / 273.7 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002633/0.007758, allocations: 216.9 kB / 273.9 MB, free: 480 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.007782, allocations: 16.88 kB / 273.9 MB, free: 464 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.702e-05/0.007819, allocations: 20.38 kB / 273.9 MB, free: 444 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000387/0.008206, allocations: 271.3 kB / 274.2 MB, free: 148 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.008215, allocations: 4.188 kB / 274.2 MB, free: 144 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.952e-05/0.008235, allocations: 4.375 kB / 274.2 MB, free: 140 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.008243, allocations: 7.938 kB / 274.2 MB, free: 132 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/0.008411, allocations: 98.88 kB / 274.3 MB, free: 36 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.009524, allocations: 0.8502 MB / 275.1 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007919/0.01032, allocations: 250.9 kB / 275.4 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002063/0.01052, allocations: 107.6 kB / 275.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.01055, allocations: 7.984 kB / 275.5 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.01078, allocations: 184.5 kB / 275.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.01078, allocations: 4 kB / 275.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003815/0.01116, allocations: 209.7 kB / 275.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.01121, allocations: 110.8 kB / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.01137, allocations: 276.3 kB / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.0114, allocations: 33.69 kB / 276.3 MB, free: 13.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.606e-05/0.01148, allocations: 207.1 kB / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.755e-05/0.01153, allocations: 75.39 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.193e-05/0.01161, allocations: 55.58 kB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.01173, allocations: 0.5002 MB / 277.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.01183, allocations: 74.16 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.01194, allocations: 139 kB / 277.3 MB, free: 12.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001819/0.01213, allocations: 153.3 kB / 277.5 MB, free: 12.6 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.01213, allocations: 0 / 277.5 MB, free: 12.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002823/0.01241, allocations: 264.8 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/0.01244, allocations: 29.7 kB / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.01245, allocations: 0 / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.01246, allocations: 4 kB / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005541/0.01301, allocations: 143.8 kB / 277.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002047/0.01506, allocations: 3.945 MB / 281.9 MB, free: 7.965 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001636/0.01522, allocations: 35.83 kB / 281.9 MB, free: 7.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.01524, allocations: 11.98 kB / 281.9 MB, free: 7.918 MB / 266.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 (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.0001184/0.01536, allocations: 180.4 kB / 282.1 MB, free: 7.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.69e-05/0.0154, allocations: 27.98 kB / 282.1 MB, free: 7.703 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.171e-05/0.01543, allocations: 34.11 kB / 282.1 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.01543, allocations: 7.938 kB / 282.2 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.01543, allocations: 0 / 282.2 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.01544, allocations: 0 / 282.2 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006698/0.01611, allocations: 0.7057 MB / 282.9 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.01611, allocations: 0 / 282.9 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005136/0.01662, allocations: 135.8 kB / 283 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.01663, allocations: 0 / 283 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.972e-05/0.01665, allocations: 11.98 kB / 283 MB, free: 6.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001946/0.01859, allocations: 3.946 MB / 286.9 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.0186, allocations: 7.938 kB / 287 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003946/0.01899, allocations: 390.9 kB / 287.3 MB, free: 2.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.219e-05/0.01902, allocations: 27.8 kB / 287.4 MB, free: 2.133 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.01905, allocations: 8 kB / 287.4 MB, free: 2.125 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.01919, allocations: 19.97 kB / 287.4 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.792e-05/0.01927, allocations: 36.02 kB / 287.4 MB, free: 2.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.01928, allocations: 4 kB / 287.4 MB, free: 2.066 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000107/0.01939, allocations: 201.1 kB / 287.6 MB, free: 1.867 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01939, allocations: 0 / 287.6 MB, free: 1.867 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003291/0.01972, allocations: 71.89 kB / 287.7 MB, free: 1.797 MB / 266.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 (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.0001131/0.01983, allocations: 111.2 kB / 287.8 MB, free: 1.676 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007639/0.02059, allocations: 320.4 kB / 288.1 MB, free: 1.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.0206, allocations: 0 / 288.1 MB, free: 1.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005346/0.02113, allocations: 170.6 kB / 288.3 MB, free: 1.172 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.02143, allocations: 48.72 kB / 288.3 MB, free: 1.125 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.02256, allocations: 0.5645 MB / 288.9 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.912e-05/0.02261, allocations: 80.33 kB / 289 MB, free: 436 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.93e-05/0.02269, allocations: 25.95 kB / 289 MB, free: 412 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.241e-05/0.02275, allocations: 24.48 kB / 289 MB, free: 388 kB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.02275, allocations: 3.938 kB / 289 MB, free: 384 kB / 266.7 MB Notification: Performance of Templates: time 0.00647/0.02922, allocations: 3.98 MB / 293 MB, free: 12.44 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.859433025121689]