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.001555/0.001555, allocations: 115.5 kB / 17.28 MB, free: 6.047 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.001746/0.001746, allocations: 185.4 kB / 18.2 MB, free: 5.152 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.66/1.66, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.00119/0.00119, allocations: 43.94 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1013, allocations: 46.63 MB / 326.8 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004284/0.1056, allocations: 2.737 MB / 329.5 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.1072, allocations: 0.7411 MB / 330.3 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.1074, allocations: 7.938 kB / 330.3 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.1076, allocations: 39.75 kB / 330.3 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001823/0.1078, allocations: 67.41 kB / 330.4 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003547/0.1081, allocations: 87.91 kB / 330.5 MB, free: 1.082 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004071/0.1085, allocations: 378.5 kB / 330.8 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.1087, allocations: 80.7 kB / 330.9 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002292/0.109, allocations: 159.3 kB / 331.1 MB, free: 492 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002231/0.1092, allocations: 163.4 kB / 331.2 MB, free: 328 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.547e-05/0.1093, allocations: 39.98 kB / 331.3 MB, free: 288 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.313e-05/0.1093, allocations: 36 kB / 331.3 MB, free: 252 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.437e-05/0.1094, allocations: 67.75 kB / 331.4 MB, free: 184 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.1096, allocations: 155.2 kB / 331.5 MB, free: 28 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003848/0.11, allocations: 367 kB / 331.9 MB, free: 15.67 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.11, allocations: 0 / 331.9 MB, free: 15.67 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.11, allocations: 0 / 331.9 MB, free: 15.67 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.11, allocations: 0 / 331.9 MB, free: 15.67 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.001622/0.1116, allocations: 0.6647 MB / 332.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/0.1117, allocations: 11.89 kB / 332.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.312e-05/0.1118, allocations: 32.56 kB / 332.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003862/0.1122, allocations: 272.6 kB / 332.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.838e-05/0.1122, allocations: 16.81 kB / 332.9 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-05/0.1123, allocations: 20.38 kB / 332.9 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008278/0.1131, allocations: 314 kB / 333.2 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.1132, allocations: 4 kB / 333.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.929e-05/0.1132, allocations: 7.984 kB / 333.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.1132, allocations: 7.938 kB / 333.2 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000897/0.1141, allocations: 289.5 kB / 333.5 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.1158, allocations: 0.9724 MB / 334.5 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002848/0.1186, allocations: 0.4904 MB / 335 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006008/0.1192, allocations: 212.7 kB / 335.2 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.424e-05/0.1193, allocations: 4 kB / 335.2 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006421/0.1199, allocations: 233.7 kB / 335.4 MB, free: 11.93 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 2.023e-06/0.1199, allocations: 4 kB / 335.4 MB, free: 11.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.00144/0.1214, allocations: 462 kB / 335.8 MB, free: 11.47 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/0.1215, allocations: 106.8 kB / 335.9 MB, free: 11.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/0.1217, allocations: 229 kB / 336.2 MB, free: 11.11 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.599e-05/0.1218, allocations: 33.7 kB / 336.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.1219, allocations: 160.2 kB / 336.4 MB, free: 10.91 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.309e-05/0.1219, allocations: 71 kB / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.122, allocations: 45.94 kB / 336.5 MB, free: 10.79 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1222, allocations: 342.8 kB / 336.8 MB, free: 10.45 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006843/0.1229, allocations: 136.3 kB / 336.9 MB, free: 10.31 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007734/0.1237, allocations: 180.2 kB / 337.1 MB, free: 10.12 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.1248, allocations: 316 kB / 337.4 MB, free: 9.801 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1249, allocations: 4 kB / 337.4 MB, free: 9.797 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001578/0.1264, allocations: 398.8 kB / 337.8 MB, free: 9.395 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.331e-05/0.1265, allocations: 45.56 kB / 337.9 MB, free: 9.344 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1265, allocations: 4.062 kB / 337.9 MB, free: 9.34 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.1266, allocations: 7.938 kB / 337.9 MB, free: 9.332 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002445/0.129, allocations: 231.7 kB / 338.1 MB, free: 9.105 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006785/0.1358, allocations: 3.4 MB / 341.5 MB, free: 5.426 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005885/0.1364, allocations: 59.67 kB / 341.6 MB, free: 5.367 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.752e-05/0.1365, allocations: 4 kB / 341.6 MB, free: 5.363 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 (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.0003076/0.1368, allocations: 149.8 kB / 341.7 MB, free: 5.207 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.662e-05/0.1369, allocations: 19.81 kB / 341.7 MB, free: 5.188 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.779e-05/0.137, allocations: 34.17 kB / 341.8 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.137, allocations: 0 / 341.8 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.1371, allocations: 4 kB / 341.8 MB, free: 5.152 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.1371, allocations: 3.984 kB / 341.8 MB, free: 5.148 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002556/0.1396, allocations: 0.8973 MB / 342.7 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.1397, allocations: 0 / 342.7 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002408/0.1421, allocations: 227.7 kB / 342.9 MB, free: 3.965 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.1421, allocations: 4 kB / 342.9 MB, free: 3.961 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.196e-05/0.1422, allocations: 11.98 kB / 342.9 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007436/0.1496, allocations: 3.408 MB / 346.3 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.1496, allocations: 0 / 346.3 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002914/0.1526, allocations: 0.5946 MB / 346.9 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002104/0.1528, allocations: 104.8 kB / 347 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.1529, allocations: 3.938 kB / 347 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006273/0.1536, allocations: 47.88 kB / 347.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.1538, allocations: 32.03 kB / 347.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.22e-05/0.1538, allocations: 4 kB / 347.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003573/0.1542, allocations: 172.5 kB / 347.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1542, allocations: 3.938 kB / 347.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008559/0.1551, allocations: 83.84 kB / 347.4 MB, free: 15.18 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.000215/0.1553, allocations: 95.25 kB / 347.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.004681/0.16, allocations: 0.5496 MB / 348 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.1601, allocations: 0 / 348 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003593/0.1637, allocations: 355.8 kB / 348.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007887/0.1645, allocations: 48.22 kB / 348.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002959/0.1675, allocations: 0.7708 MB / 349.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005916/0.1681, allocations: 0.748 MB / 349.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002726/0.1684, allocations: 25.94 kB / 349.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.1685, allocations: 19.44 kB / 350 MB, free: 12.5 MB / 302.1 MB Notification: Performance of SimCode: time 1.573e-06/0.1685, allocations: 0 / 350 MB, free: 12.5 MB / 302.1 MB Notification: Performance of Templates: time 0.01397/0.1825, allocations: 3.611 MB / 353.6 MB, free: 8.898 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