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.001231/0.001231, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001651/0.001651, allocations: 152 kB / 24.81 MB, free: 9.281 MB / 18.57 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.031/1.031, allocations: 173.4 MB / 201.4 MB, free: 9.242 MB / 186.7 MB " [Timeout remaining time 179] 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 1.432e-06/1.432e-06, allocations: 0 / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.308e-05/1.452e-05, allocations: 6.25 kB / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003561/0.003576, allocations: 3.944 MB / 272.4 MB, free: 2.258 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.004929, allocations: 0.9932 MB / 273.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/0.005127, allocations: 11.94 kB / 273.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001752/0.005302, allocations: 83.14 kB / 273.4 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002393/0.005541, allocations: 202.2 kB / 273.6 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006139/0.006155, allocations: 223.5 kB / 273.9 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005761/0.006731, allocations: 0.8325 MB / 274.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001817/0.006913, allocations: 117.5 kB / 274.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000376/0.007289, allocations: 459.1 kB / 275.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.007544, allocations: 283.2 kB / 275.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.479e-05/0.007618, allocations: 79.98 kB / 275.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.604e-05/0.007694, allocations: 80 kB / 275.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.529e-05/0.00778, allocations: 147.5 kB / 275.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001506/0.00793, allocations: 239.4 kB / 276.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003868/0.008317, allocations: 0.5101 MB / 276.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.00832, allocations: 3.984 kB / 276.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.00832, allocations: 3.938 kB / 276.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.008325, allocations: 0 / 276.6 MB, free: 14.01 MB / 266.7 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.001136/0.009461, allocations: 0.9881 MB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.009497, allocations: 12.92 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.009598, allocations: 92.5 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.009901, allocations: 354.5 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.691e-05/0.009928, allocations: 29.38 kB / 278 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.897e-05/0.009977, allocations: 40.38 kB / 278.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005209/0.0105, allocations: 441.3 kB / 278.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.01051, allocations: 192 / 278.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.95e-05/0.01054, allocations: 20.38 kB / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.01054, allocations: 11.94 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002234/0.01077, allocations: 154.8 kB / 278.7 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.01242, allocations: 1.884 MB / 280.6 MB, free: 9.809 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008935/0.01331, allocations: 376.3 kB / 281 MB, free: 9.426 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/0.01349, allocations: 139 kB / 281.1 MB, free: 9.289 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.01352, allocations: 8.328 kB / 281.1 MB, free: 9.281 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002443/0.01377, allocations: 239.7 kB / 281.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.332e-06/0.01377, allocations: 0 / 281.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.003326/0.01709, allocations: 1.102 MB / 282.4 MB, free: 7.906 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.01713, allocations: 85.05 kB / 282.5 MB, free: 7.805 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002484/0.01738, allocations: 398.5 kB / 282.9 MB, free: 7.398 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.01742, allocations: 33.7 kB / 282.9 MB, free: 7.359 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.01754, allocations: 275.5 kB / 283.2 MB, free: 7.086 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.119e-05/0.01762, allocations: 146.8 kB / 283.4 MB, free: 6.941 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.01773, allocations: 79.69 kB / 283.4 MB, free: 6.852 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.01787, allocations: 0.5312 MB / 284 MB, free: 6.309 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.01799, allocations: 82.53 kB / 284 MB, free: 6.223 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.01813, allocations: 174.2 kB / 284.2 MB, free: 6.027 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002298/0.01836, allocations: 183.7 kB / 284.4 MB, free: 5.832 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.01837, allocations: 4 kB / 284.4 MB, free: 5.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007435/0.01911, allocations: 470.9 kB / 284.9 MB, free: 5.348 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.01913, allocations: 37.73 kB / 284.9 MB, free: 5.305 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.01914, allocations: 0 / 284.9 MB, free: 5.305 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003839/0.01952, allocations: 210.8 kB / 285.1 MB, free: 5.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001846/0.01971, allocations: 71.95 kB / 285.2 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002694/0.0224, allocations: 2.729 MB / 287.9 MB, free: 2.191 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002104/0.02261, allocations: 63.73 kB / 288 MB, free: 2.129 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.02264, allocations: 12 kB / 288 MB, free: 2.117 MB / 266.7 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.0001306/0.02277, allocations: 188.5 kB / 288.2 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.356e-05/0.02283, allocations: 55.72 kB / 288.2 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.483e-05/0.02288, allocations: 52.38 kB / 288.3 MB, free: 1.816 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.02289, allocations: 7.938 kB / 288.3 MB, free: 1.809 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.02289, allocations: 0 / 288.3 MB, free: 1.809 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.0229, allocations: 3.984 kB / 288.3 MB, free: 1.805 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000301/0.0232, allocations: 321.3 kB / 288.6 MB, free: 1.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.0232, allocations: 0 / 288.6 MB, free: 1.461 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.02338, allocations: 63.95 kB / 288.6 MB, free: 1.398 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003583/0.02374, allocations: 206.6 kB / 288.8 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.596e-05/0.02376, allocations: 11.98 kB / 288.9 MB, free: 1.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1315/0.1553, allocations: 2.704 MB / 291.6 MB, free: 28.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1553, allocations: 1.219 kB / 291.6 MB, free: 28.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/0.1568, allocations: 0.587 MB / 292.2 MB, free: 28.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.157, allocations: 99.67 kB / 292.3 MB, free: 28.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.471e-05/0.1571, allocations: 14.16 kB / 292.3 MB, free: 28.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.1573, allocations: 43.5 kB / 292.3 MB, free: 28.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.1575, allocations: 56.28 kB / 292.4 MB, free: 28.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.1575, allocations: 14.23 kB / 292.4 MB, free: 28.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002321/0.1577, allocations: 267.6 kB / 292.6 MB, free: 28.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1577, allocations: 0 / 292.6 MB, free: 28.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005458/0.1583, allocations: 165.6 kB / 292.8 MB, free: 28.21 MB / 266.7 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.0001408/0.1584, allocations: 107.3 kB / 292.9 MB, free: 28.12 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007978/0.1592, allocations: 0.5683 MB / 293.5 MB, free: 27.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1592, allocations: 0 / 293.5 MB, free: 27.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004655/0.1597, allocations: 418.3 kB / 293.9 MB, free: 27.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.16, allocations: 91.38 kB / 294 MB, free: 27.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.1619, allocations: 0.9517 MB / 294.9 MB, free: 27.18 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.162, allocations: 123.7 kB / 295 MB, free: 27.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001543/0.1621, allocations: 43.67 kB / 295.1 MB, free: 27.09 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.1624, allocations: 158.3 kB / 295.2 MB, free: 27.03 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.1624, allocations: 1.094 kB / 295.2 MB, free: 27.03 MB / 266.7 MB Notification: Performance of Templates: time 0.01732/0.1797, allocations: 13.27 MB / 308.5 MB, free: 20.76 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6206068648025393]