Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009976/0.0009977, allocations: 97.31 kB / 16.95 MB, free: 6.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 184.9 kB / 17.84 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.529/1.529, allocations: 205.4 MB / 224 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005087/0.0005087, allocations: 12 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1023, allocations: 47.57 MB / 328.3 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.002805/0.1052, allocations: 2.291 MB / 330.6 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.1064, allocations: 0.7102 MB / 331.3 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.1066, allocations: 4 kB / 331.3 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.1067, allocations: 31.7 kB / 331.4 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.1069, allocations: 71.45 kB / 331.4 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002913/0.1072, allocations: 79.83 kB / 331.5 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003377/0.1075, allocations: 338.5 kB / 331.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.1077, allocations: 61.34 kB / 331.9 MB, free: 500 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.108, allocations: 131.5 kB / 332 MB, free: 368 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002013/0.1082, allocations: 147.4 kB / 332.2 MB, free: 220 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.259e-05/0.1082, allocations: 16 kB / 332.2 MB, free: 204 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.232e-05/0.1083, allocations: 16 kB / 332.2 MB, free: 188 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.566e-05/0.1083, allocations: 59.73 kB / 332.3 MB, free: 128 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.662e-05/0.1084, allocations: 73.58 kB / 332.4 MB, free: 48 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.1087, allocations: 259.7 kB / 332.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1088, allocations: 0 / 332.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.1088, allocations: 7.984 kB / 332.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.1088, allocations: 0 / 332.6 MB, free: 15.78 MB / 286.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.0014/0.1102, allocations: 0.6568 MB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.1102, allocations: 8.031 kB / 333.3 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.074e-05/0.1103, allocations: 31.7 kB / 333.3 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.1106, allocations: 259.6 kB / 333.6 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.1107, allocations: 16.44 kB / 333.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.812e-05/0.1107, allocations: 20 kB / 333.6 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000709/0.1114, allocations: 333.7 kB / 333.9 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1115, allocations: 0 / 333.9 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.1115, allocations: 4 kB / 333.9 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.1115, allocations: 4 kB / 333.9 MB, free: 14.35 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008715/0.1124, allocations: 345.5 kB / 334.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.114, allocations: 0.9998 MB / 335.3 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002695/0.1167, allocations: 0.5959 MB / 335.9 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005969/0.1174, allocations: 232.7 kB / 336.1 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/0.1174, allocations: 8.328 kB / 336.1 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006381/0.118, allocations: 263.2 kB / 336.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 2.144e-06/0.1181, allocations: 0 / 336.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001443/0.1195, allocations: 0.5206 MB / 336.9 MB, free: 11.3 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.119e-05/0.1196, allocations: 114.8 kB / 337 MB, free: 11.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002258/0.1198, allocations: 229 kB / 337.2 MB, free: 10.93 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.1199, allocations: 29.7 kB / 337.2 MB, free: 10.89 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.12, allocations: 156.2 kB / 337.4 MB, free: 10.74 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.895e-05/0.1201, allocations: 75 kB / 337.5 MB, free: 10.66 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.801e-05/0.1201, allocations: 4 kB / 337.5 MB, free: 10.66 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1202, allocations: 330.8 kB / 337.8 MB, free: 10.33 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004344/0.1206, allocations: 168.3 kB / 338 MB, free: 10.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004593/0.1211, allocations: 196.2 kB / 338.1 MB, free: 9.961 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004426/0.1216, allocations: 189.7 kB / 338.3 MB, free: 9.77 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1216, allocations: 3.938 kB / 338.3 MB, free: 9.766 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009707/0.1226, allocations: 454.7 kB / 338.8 MB, free: 9.309 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.326e-05/0.1226, allocations: 33.7 kB / 338.8 MB, free: 9.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1226, allocations: 4 kB / 338.8 MB, free: 9.266 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.1226, allocations: 0 / 338.8 MB, free: 9.266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001619/0.1242, allocations: 307.7 kB / 339.1 MB, free: 8.965 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004059/0.1283, allocations: 3.224 MB / 342.3 MB, free: 5.473 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000406/0.1288, allocations: 71.73 kB / 342.4 MB, free: 5.402 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.1288, allocations: 7.984 kB / 342.4 MB, free: 5.395 MB / 286.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 ($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.0001837/0.129, allocations: 149.7 kB / 342.6 MB, free: 5.238 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.248e-05/0.129, allocations: 23.72 kB / 342.6 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.657e-05/0.1291, allocations: 30.17 kB / 342.6 MB, free: 5.188 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.1291, allocations: 4 kB / 342.6 MB, free: 5.184 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.1291, allocations: 0 / 342.6 MB, free: 5.184 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.1291, allocations: 0 / 342.6 MB, free: 5.184 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001627/0.1308, allocations: 0.9442 MB / 343.6 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.1308, allocations: 0 / 343.6 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/0.1324, allocations: 311.7 kB / 343.9 MB, free: 3.871 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.1324, allocations: 4 kB / 343.9 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.1324, allocations: 0 / 343.9 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004043/0.1365, allocations: 3.232 MB / 347.1 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.1365, allocations: 8.031 kB / 347.1 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.1379, allocations: 0.6588 MB / 347.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.666e-05/0.138, allocations: 108.8 kB / 347.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.261e-05/0.1381, allocations: 4 kB / 347.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003226/0.1384, allocations: 52.02 kB / 347.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.39e-05/0.1385, allocations: 31.89 kB / 348 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-05/0.1385, allocations: 11.98 kB / 348 MB, free: 15.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001468/0.1387, allocations: 168.5 kB / 348.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1387, allocations: 0 / 348.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000452/0.1391, allocations: 75.84 kB / 348.2 MB, free: 15.22 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 (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.0001239/0.1393, allocations: 111.2 kB / 348.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00271/0.142, allocations: 0.6434 MB / 349 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.142, allocations: 0 / 349 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002397/0.1444, allocations: 447.8 kB / 349.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004635/0.1449, allocations: 45.55 kB / 349.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00168/0.1466, allocations: 0.8082 MB / 350.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.1468, allocations: 0.7485 MB / 351 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001414/0.147, allocations: 25.95 kB / 351 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.003e-05/0.1471, allocations: 23.44 kB / 351.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1471, allocations: 0 / 351.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of Templates: time 0.006809/0.1539, allocations: 3.294 MB / 354.4 MB, free: 9.016 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches