Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 100.9 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001067, allocations: 39.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3419, allocations: 49.43 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00576/0.3477, allocations: 3.985 MB / 403.5 MB, free: 29.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002935/0.3507, allocations: 1.418 MB / 404.9 MB, free: 27.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006659/0.3516, allocations: 8 kB / 404.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.3526, allocations: 223.2 kB / 405.1 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008026/0.3535, allocations: 232.1 kB / 405.3 MB, free: 27.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008879/0.3544, allocations: 247.6 kB / 405.6 MB, free: 27.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008688/0.3552, allocations: 0.6929 MB / 406.3 MB, free: 26.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003275/0.3556, allocations: 151 kB / 406.4 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003828/0.356, allocations: 258.9 kB / 406.7 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002775/0.3562, allocations: 286.7 kB / 406.9 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.227e-05/0.3563, allocations: 32 kB / 407 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002391/0.3566, allocations: 71.97 kB / 407 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.3567, allocations: 131.5 kB / 407.2 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00024/0.357, allocations: 270.5 kB / 407.4 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005642/0.3575, allocations: 0.6695 MB / 408.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.3576, allocations: 3.984 kB / 408.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3576, allocations: 0 / 408.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.3576, allocations: 0 / 408.1 MB, free: 24.73 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001602/0.3592, allocations: 0.9413 MB / 409 MB, free: 23.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.3592, allocations: 11.97 kB / 409.1 MB, free: 23.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.3594, allocations: 72.19 kB / 409.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004724/0.3598, allocations: 402.8 kB / 409.5 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.3599, allocations: 33.38 kB / 409.6 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.196e-05/0.3599, allocations: 40.12 kB / 409.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006268/0.3606, allocations: 441.5 kB / 410 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.3606, allocations: 4 kB / 410 MB, free: 22.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.964e-05/0.3606, allocations: 20 kB / 410 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.3607, allocations: 8 kB / 410.1 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005254/0.3612, allocations: 307.8 kB / 410.4 MB, free: 22.35 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002208/0.3634, allocations: 1.707 MB / 412.1 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006121/0.3641, allocations: 371.9 kB / 412.4 MB, free: 20.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/0.3643, allocations: 197.3 kB / 412.6 MB, free: 19.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.351e-05/0.3644, allocations: 4 kB / 412.6 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000415/0.3648, allocations: 258.4 kB / 412.9 MB, free: 19.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 3.016e-06/0.3648, allocations: 0 / 412.9 MB, free: 19.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001999/0.3668, allocations: 1.01 MB / 413.9 MB, free: 18.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.227e-05/0.3669, allocations: 191.8 kB / 414.1 MB, free: 18.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005129/0.3675, allocations: 0.4979 MB / 414.6 MB, free: 17.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.3675, allocations: 37.7 kB / 414.6 MB, free: 17.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.3677, allocations: 252.4 kB / 414.9 MB, free: 17.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.09e-05/0.3677, allocations: 118.4 kB / 415 MB, free: 17.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.3679, allocations: 78.12 kB / 415 MB, free: 17.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.523e-05/0.368, allocations: 358.8 kB / 415.4 MB, free: 17 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.3682, allocations: 116.8 kB / 415.5 MB, free: 16.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002783/0.3685, allocations: 217.2 kB / 415.7 MB, free: 16.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004393/0.3689, allocations: 277.1 kB / 416 MB, free: 16.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3689, allocations: 0 / 416 MB, free: 16.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007444/0.3697, allocations: 480.7 kB / 416.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.3697, allocations: 8 kB / 416.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.597e-06/0.3697, allocations: 3.938 kB / 416.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004925/0.3702, allocations: 163.4 kB / 416.6 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.3705, allocations: 51.91 kB / 416.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003592/0.3741, allocations: 5.947 MB / 422.6 MB, free: 9.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004823/0.3746, allocations: 55.75 kB / 422.7 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.042e-05/0.3747, allocations: 12 kB / 422.7 MB, free: 9.09 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003475/0.375, allocations: 192.1 kB / 422.9 MB, free: 8.895 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-05/0.3751, allocations: 55.28 kB / 422.9 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.3752, allocations: 60.75 kB / 423 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3752, allocations: 4.125 kB / 423 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3752, allocations: 4 kB / 423 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.3752, allocations: 4 kB / 423 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004656/0.3757, allocations: 497 kB / 423.5 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3757, allocations: 3.938 kB / 423.5 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/0.3759, allocations: 27.92 kB / 423.5 MB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003938/0.3763, allocations: 159.3 kB / 423.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.3763, allocations: 8 kB / 423.7 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003261/0.3796, allocations: 5.796 MB / 429.5 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3796, allocations: 3.938 kB / 429.5 MB, free: 1.688 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001332/0.381, allocations: 1.274 MB / 430.8 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001844/0.3812, allocations: 156.4 kB / 430.9 MB, free: 172 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.671e-05/0.3812, allocations: 8 kB / 430.9 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002672/0.3815, allocations: 31.97 kB / 431 MB, free: 132 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.3817, allocations: 59.86 kB / 431 MB, free: 72 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.3817, allocations: 12 kB / 431 MB, free: 60 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004429/0.3821, allocations: 363 kB / 431.4 MB, free: 15.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3821, allocations: 0 / 431.4 MB, free: 15.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001046/0.3832, allocations: 175.7 kB / 431.6 MB, free: 15.54 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001134/0.3843, allocations: 423.7 kB / 432 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.3857, allocations: 0.7991 MB / 432.8 MB, free: 14.42 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.3857, allocations: 4 kB / 432.8 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007484/0.3865, allocations: 0.6587 MB / 433.4 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007023/0.3872, allocations: 113.5 kB / 433.5 MB, free: 13.6 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002468/0.3897, allocations: 1.381 MB / 434.9 MB, free: 12.19 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004934/0.3902, allocations: 0.8671 MB / 435.8 MB, free: 11.3 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002406/0.3904, allocations: 52.14 kB / 435.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.256e-05/0.3905, allocations: 31.44 kB / 435.9 MB, free: 11.21 MB / 314.7 MB Notification: Performance of SimCode: time 1.412e-06/0.3905, allocations: 4 kB / 435.9 MB, free: 11.21 MB / 314.7 MB Notification: Performance of Templates: time 0.01973/0.4103, allocations: 9.106 MB / 445 MB, free: 2.195 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches