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.001369/0.001369, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001399/0.001399, allocations: 188.2 kB / 18.66 MB, free: 4.395 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.458/1.458, allocations: 205.1 MB / 224.5 MB, free: 12.28 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.001186/0.001186, allocations: 51.92 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1163, allocations: 46.61 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.00431/0.1207, allocations: 2.707 MB / 377.8 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001356/0.1221, allocations: 0.7408 MB / 378.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.1222, allocations: 4 kB / 378.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.1224, allocations: 43.56 kB / 378.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001651/0.1226, allocations: 83.27 kB / 378.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.1229, allocations: 103.7 kB / 378.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004107/0.1234, allocations: 382.5 kB / 379.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.1236, allocations: 88.56 kB / 379.3 MB, free: 424 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002274/0.1238, allocations: 147.5 kB / 379.4 MB, free: 276 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002215/0.124, allocations: 171.3 kB / 379.6 MB, free: 104 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.897e-05/0.1241, allocations: 36 kB / 379.6 MB, free: 68 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.598e-05/0.1242, allocations: 32 kB / 379.7 MB, free: 36 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2578/0.3819, allocations: 67.73 kB / 379.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000387/0.3824, allocations: 155.9 kB / 379.9 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006214/0.383, allocations: 360.6 kB / 380.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.3831, allocations: 0.6094 kB / 380.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3831, allocations: 3.719 kB / 380.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.3831, allocations: 0 / 380.2 MB, free: 10.14 MB / 318.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.001721/0.3848, allocations: 0.6665 MB / 380.9 MB, free: 9.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.3849, allocations: 13.48 kB / 380.9 MB, free: 9.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.661e-05/0.385, allocations: 38.42 kB / 380.9 MB, free: 9.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004309/0.3854, allocations: 264.3 kB / 381.2 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.444e-05/0.3855, allocations: 19.69 kB / 381.2 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.551e-05/0.3855, allocations: 20.06 kB / 381.2 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.3865, allocations: 303.7 kB / 381.5 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.3866, allocations: 6.375 kB / 381.5 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.936e-05/0.3866, allocations: 10.38 kB / 381.6 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.3866, allocations: 4.125 kB / 381.6 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.3877, allocations: 290.5 kB / 381.8 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002154/0.3899, allocations: 0.9682 MB / 382.8 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003214/0.3931, allocations: 497.8 kB / 383.3 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007562/0.3939, allocations: 211.1 kB / 383.5 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.218e-05/0.3939, allocations: 6.391 kB / 383.5 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007539/0.3947, allocations: 233.9 kB / 383.7 MB, free: 8.801 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 3.597e-06/0.3947, allocations: 1.25 kB / 383.7 MB, free: 8.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001731/0.3964, allocations: 467.1 kB / 384.2 MB, free: 8.738 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.3965, allocations: 110.6 kB / 384.3 MB, free: 8.613 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003057/0.3968, allocations: 230.2 kB / 384.5 MB, free: 8.512 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.612e-05/0.3969, allocations: 35.48 kB / 384.6 MB, free: 8.477 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.397, allocations: 157.2 kB / 384.7 MB, free: 8.371 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.148e-05/0.3971, allocations: 71.83 kB / 384.8 MB, free: 8.328 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.3972, allocations: 49.52 kB / 384.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.51e-05/0.3973, allocations: 334.4 kB / 385.2 MB, free: 7.996 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005315/0.3978, allocations: 137.3 kB / 385.3 MB, free: 7.992 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005324/0.3984, allocations: 188.7 kB / 385.5 MB, free: 7.949 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009369/0.3993, allocations: 316.5 kB / 385.8 MB, free: 7.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3993, allocations: 3.875 kB / 385.8 MB, free: 7.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001199/0.4005, allocations: 410.5 kB / 386.2 MB, free: 7.742 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.4006, allocations: 38.17 kB / 386.2 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.4006, allocations: 3.438 kB / 386.2 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.327e-05/0.4006, allocations: 1.469 kB / 386.2 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.4024, allocations: 244.2 kB / 386.5 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004629/0.407, allocations: 3.393 MB / 389.9 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005452/0.4076, allocations: 49.56 kB / 389.9 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.4077, allocations: 10.62 kB / 389.9 MB, free: 4.555 MB / 318.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.000255/0.4079, allocations: 146.4 kB / 390.1 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.183e-05/0.408, allocations: 24.05 kB / 390.1 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.974e-05/0.4081, allocations: 30.94 kB / 390.1 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.4081, allocations: 2.812 kB / 390.1 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/0.4081, allocations: 0 / 390.1 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.4081, allocations: 6.656 kB / 390.1 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002093/0.4102, allocations: 0.8992 MB / 391 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.4102, allocations: 0 / 391 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001751/0.412, allocations: 234.3 kB / 391.3 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.412, allocations: 1.25 kB / 391.3 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.412, allocations: 8.062 kB / 391.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004513/0.4166, allocations: 3.405 MB / 394.7 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/0.4166, allocations: 5.062 kB / 394.7 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/0.4183, allocations: 0.5885 MB / 395.3 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.19e-05/0.4184, allocations: 105.3 kB / 395.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.752e-05/0.4185, allocations: 12.12 kB / 395.4 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003661/0.4188, allocations: 42.62 kB / 395.4 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.419, allocations: 31.7 kB / 395.5 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.419, allocations: 6.125 kB / 395.5 MB, free: 280 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00018/0.4192, allocations: 175.2 kB / 395.6 MB, free: 168 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4192, allocations: 0 / 395.6 MB, free: 168 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005534/0.4198, allocations: 75.08 kB / 395.7 MB, free: 160 kB / 318.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.0001721/0.4199, allocations: 108.4 kB / 395.8 MB, free: 68 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002702/0.4227, allocations: 0.5507 MB / 396.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.4227, allocations: 1.156 kB / 396.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001984/0.4247, allocations: 354.2 kB / 396.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004801/0.4252, allocations: 38.86 kB / 396.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001915/0.4271, allocations: 0.6782 MB / 397.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.4275, allocations: 0.7507 MB / 398.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001534/0.4277, allocations: 29.08 kB / 398.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.451e-05/0.4277, allocations: 20.53 kB / 398.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4278, allocations: 0 / 398.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of Templates: time 0.01043/0.4382, allocations: 3.785 MB / 402 MB, free: 13.88 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches