Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.001562/0.001562, allocations: 116.5 kB / 18.45 MB, free: 4.602 MB / 14.72 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.001577/0.001577, allocations: 190.7 kB / 21.4 MB, free: 1.664 MB / 14.72 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 1.377/1.377, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] 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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 47.92 kB / 366.8 MB, free: 440 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.09638, allocations: 52.14 MB / 419 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005374/0.1018, allocations: 4.079 MB / 423 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.1036, allocations: 1.009 MB / 424 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001984/0.1038, allocations: 8 kB / 424.1 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002386/0.104, allocations: 83.14 kB / 424.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003299/0.1044, allocations: 194.4 kB / 424.3 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004483/0.1048, allocations: 211.7 kB / 424.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008034/0.1056, allocations: 0.8017 MB / 425.3 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002368/0.1059, allocations: 120.9 kB / 425.5 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003772/0.1062, allocations: 318.9 kB / 425.8 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00044/0.1067, allocations: 358.6 kB / 426.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.1068, allocations: 80 kB / 426.2 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.1069, allocations: 84 kB / 426.3 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001535/0.1071, allocations: 155.5 kB / 426.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003199/0.1074, allocations: 342.4 kB / 426.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008385/0.1082, allocations: 0.8368 MB / 427.6 MB, free: 3.516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1082, allocations: 4 kB / 427.6 MB, free: 3.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1082, allocations: 0 / 427.6 MB, free: 3.512 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.1082, allocations: 0 / 427.6 MB, free: 3.512 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002633/0.1109, allocations: 1.038 MB / 428.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1109, allocations: 12.03 kB / 428.7 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.111, allocations: 60.56 kB / 428.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006246/0.1117, allocations: 430.1 kB / 429.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.036e-05/0.1117, allocations: 25.38 kB / 429.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.401e-05/0.1118, allocations: 40.38 kB / 429.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.1132, allocations: 0.5915 MB / 429.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1133, allocations: 7.938 kB / 429.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.568e-05/0.1133, allocations: 19.98 kB / 429.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1133, allocations: 8 kB / 429.8 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00193/0.1153, allocations: 0.6206 MB / 430.4 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003755/0.119, allocations: 2.153 MB / 432.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003833/0.1228, allocations: 0.808 MB / 433.4 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.1239, allocations: 365.3 kB / 433.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.233e-05/0.1239, allocations: 8.312 kB / 433.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001126/0.1251, allocations: 426.6 kB / 434.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.813e-06/0.1251, allocations: 0 / 434.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.01404/0.1391, allocations: 2.278 MB / 436.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.263e-05/0.1392, allocations: 97.05 kB / 436.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006165/0.1398, allocations: 402 kB / 436.9 MB, free: 9.855 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.532e-05/0.1399, allocations: 33.7 kB / 437 MB, free: 9.816 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002268/0.1401, allocations: 240.8 kB / 437.2 MB, free: 9.574 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.1403, allocations: 134.8 kB / 437.3 MB, free: 9.441 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001789/0.1405, allocations: 74.06 kB / 437.4 MB, free: 9.359 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.1407, allocations: 354.7 kB / 437.8 MB, free: 9.004 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000978/0.1416, allocations: 296.6 kB / 438.1 MB, free: 8.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009956/0.1426, allocations: 326.1 kB / 438.4 MB, free: 8.391 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001836/0.1445, allocations: 0.5835 MB / 439 MB, free: 7.793 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1445, allocations: 0 / 439 MB, free: 7.793 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003725/0.1482, allocations: 0.9668 MB / 439.9 MB, free: 6.812 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.53e-05/0.1483, allocations: 39.89 kB / 440 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.637e-06/0.1483, allocations: 4 kB / 440 MB, free: 6.766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/0.1496, allocations: 392.5 kB / 440.4 MB, free: 6.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005171/0.1501, allocations: 87.86 kB / 440.4 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00925/0.1594, allocations: 3.683 MB / 444.1 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007303/0.1601, allocations: 91.88 kB / 444.2 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.563e-05/0.1601, allocations: 12 kB / 444.2 MB, free: 2.367 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002839/0.1604, allocations: 185.7 kB / 444.4 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.821e-05/0.1605, allocations: 51.67 kB / 444.5 MB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.1606, allocations: 56.47 kB / 444.5 MB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.1607, allocations: 4 kB / 444.5 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.1607, allocations: 0 / 444.5 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.1607, allocations: 3.984 kB / 444.5 MB, free: 2.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008372/0.1615, allocations: 0.6068 MB / 445.1 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1615, allocations: 0 / 445.1 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005034/0.162, allocations: 87.86 kB / 445.2 MB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00126/0.1633, allocations: 395.8 kB / 445.6 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.577e-05/0.1633, allocations: 8 kB / 445.6 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1853/0.3486, allocations: 3.652 MB / 449.3 MB, free: 29.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3486, allocations: 0 / 449.3 MB, free: 29.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00545/0.3541, allocations: 1.451 MB / 450.7 MB, free: 29.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.3543, allocations: 179.3 kB / 450.9 MB, free: 29.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.246e-05/0.3544, allocations: 14.41 kB / 450.9 MB, free: 29.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005457/0.3549, allocations: 69.2 kB / 451 MB, free: 29.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.3551, allocations: 51.14 kB / 451 MB, free: 29.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.632e-05/0.3551, allocations: 15.36 kB / 451 MB, free: 29.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002798/0.3554, allocations: 291.5 kB / 451.3 MB, free: 29.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3554, allocations: 0.6562 kB / 451.3 MB, free: 29.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000578/0.356, allocations: 174.5 kB / 451.5 MB, free: 29.64 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001481/0.3561, allocations: 118.5 kB / 451.6 MB, free: 29.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002501/0.3586, allocations: 0.9033 MB / 452.5 MB, free: 29.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3586, allocations: 2.531 kB / 452.5 MB, free: 29.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001399/0.36, allocations: 0.547 MB / 453.1 MB, free: 29.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004375/0.3605, allocations: 87.83 kB / 453.1 MB, free: 29.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00302/0.3635, allocations: 1.23 MB / 454.4 MB, free: 28.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.3638, allocations: 0.8326 MB / 455.2 MB, free: 28.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.364, allocations: 39.48 kB / 455.2 MB, free: 28.01 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.364, allocations: 0.5312 kB / 455.2 MB, free: 28.01 MB / 366.1 MB Notification: Performance of Templates: time 0.01358/0.3776, allocations: 9.937 MB / 465.2 MB, free: 25.38 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.877860898151994]