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.002529/0.002529, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.002648/0.002648, allocations: 153.5 kB / 24.27 MB, free: 168 kB / 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.571/1.571, allocations: 173.3 MB / 200.8 MB, free: 9.309 MB / 186.7 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 1.633e-06/1.633e-06, allocations: 0 / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.549e-05/2.712e-05, allocations: 2.312 kB / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00598/0.006007, allocations: 3.949 MB / 271.3 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002188/0.008196, allocations: 1.009 MB / 272.3 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002441/0.00844, allocations: 7.938 kB / 272.3 MB, free: 1.723 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002591/0.008699, allocations: 83.2 kB / 272.4 MB, free: 1.641 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006114/0.00931, allocations: 198.2 kB / 272.6 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005391/0.009849, allocations: 223.6 kB / 272.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009782/0.01083, allocations: 0.8287 MB / 273.6 MB, free: 404 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002583/0.01109, allocations: 117.5 kB / 273.7 MB, free: 280 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006791/0.01177, allocations: 459 kB / 274.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004824/0.01225, allocations: 287.2 kB / 274.5 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.01238, allocations: 80 kB / 274.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.01253, allocations: 80 kB / 274.6 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001958/0.01272, allocations: 171.4 kB / 274.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003224/0.01304, allocations: 235.5 kB / 275 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.01415, allocations: 0.8959 MB / 275.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.01416, allocations: 0 / 275.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.01416, allocations: 0 / 275.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.01417, allocations: 4 kB / 275.9 MB, free: 14.09 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.002671/0.01684, allocations: 1.042 MB / 276.9 MB, free: 13 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.01688, allocations: 8.922 kB / 277 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000208/0.01709, allocations: 96.5 kB / 277.1 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006704/0.01776, allocations: 366.5 kB / 277.4 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.623e-05/0.01781, allocations: 29.38 kB / 277.4 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.523e-05/0.01789, allocations: 36.38 kB / 277.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.01926, allocations: 0.6139 MB / 278.1 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.01928, allocations: 192 / 278.1 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.483e-05/0.01933, allocations: 12.38 kB / 278.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.01935, allocations: 11.94 kB / 278.1 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.02091, allocations: 0.5309 MB / 278.6 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004217/0.02513, allocations: 2.252 MB / 280.9 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003488/0.02861, allocations: 0.6955 MB / 281.6 MB, free: 8.184 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008955/0.02951, allocations: 331.1 kB / 281.9 MB, free: 7.859 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.419e-05/0.02956, allocations: 8.328 kB / 281.9 MB, free: 7.852 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001029/0.03059, allocations: 435.7 kB / 282.3 MB, free: 7.398 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.764e-06/0.03059, allocations: 0 / 282.3 MB, free: 7.398 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.01364/0.04424, allocations: 1.91 MB / 284.3 MB, free: 5.477 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.255e-05/0.04432, allocations: 85.05 kB / 284.3 MB, free: 5.375 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006908/0.04501, allocations: 0.5104 MB / 284.9 MB, free: 4.852 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.721e-05/0.04507, allocations: 29.7 kB / 284.9 MB, free: 4.816 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002868/0.04535, allocations: 303.5 kB / 285.2 MB, free: 4.512 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.04554, allocations: 154.8 kB / 285.3 MB, free: 4.359 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002131/0.04575, allocations: 91.72 kB / 285.4 MB, free: 4.258 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003403/0.04609, allocations: 0.547 MB / 286 MB, free: 3.699 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008156/0.04691, allocations: 274.4 kB / 286.2 MB, free: 3.426 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009672/0.04787, allocations: 362.2 kB / 286.6 MB, free: 3.047 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001685/0.04956, allocations: 0.5034 MB / 287.1 MB, free: 2.527 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.04957, allocations: 3.938 kB / 287.1 MB, free: 2.523 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003289/0.05285, allocations: 0.8972 MB / 288 MB, free: 1.605 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.031e-05/0.0529, allocations: 33.7 kB / 288 MB, free: 1.566 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.05291, allocations: 4 kB / 288 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001195/0.05411, allocations: 382.8 kB / 288.4 MB, free: 1.188 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004282/0.05453, allocations: 71.94 kB / 288.5 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1178/0.1724, allocations: 3.963 MB / 292.4 MB, free: 31.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005758/0.1729, allocations: 62.23 kB / 292.5 MB, free: 31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.765e-05/0.173, allocations: 15.22 kB / 292.5 MB, free: 31 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.0002229/0.1732, allocations: 225 kB / 292.7 MB, free: 30.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.739e-05/0.1733, allocations: 61.84 kB / 292.8 MB, free: 30.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.1734, allocations: 52.47 kB / 292.8 MB, free: 30.76 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.1734, allocations: 7.281 kB / 292.8 MB, free: 30.76 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.1735, allocations: 0 / 292.8 MB, free: 30.76 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.1735, allocations: 3.281 kB / 292.9 MB, free: 30.76 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005533/0.174, allocations: 0.498 MB / 293.3 MB, free: 30.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.174, allocations: 0.6562 kB / 293.4 MB, free: 30.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003943/0.1744, allocations: 67.31 kB / 293.4 MB, free: 30.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009902/0.1754, allocations: 373.8 kB / 293.8 MB, free: 30.36 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.197e-05/0.1754, allocations: 12.5 kB / 293.8 MB, free: 30.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006963/0.1824, allocations: 3.971 MB / 297.8 MB, free: 27.53 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1824, allocations: 1.797 kB / 297.8 MB, free: 27.53 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004894/0.1873, allocations: 1.294 MB / 299.1 MB, free: 27.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002306/0.1875, allocations: 99.45 kB / 299.2 MB, free: 27.03 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.695e-05/0.1876, allocations: 7.625 kB / 299.2 MB, free: 27.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004468/0.1881, allocations: 50.8 kB / 299.2 MB, free: 27.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.1882, allocations: 60.11 kB / 299.3 MB, free: 27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-05/0.1883, allocations: 9.953 kB / 299.3 MB, free: 27 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003079/0.1886, allocations: 347.8 kB / 299.6 MB, free: 26.8 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1886, allocations: 0 / 299.6 MB, free: 26.8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006129/0.1892, allocations: 179.6 kB / 299.8 MB, free: 26.77 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.0001525/0.1893, allocations: 111.1 kB / 299.9 MB, free: 26.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.1915, allocations: 0.9273 MB / 300.8 MB, free: 26.19 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1915, allocations: 0 / 300.8 MB, free: 26.19 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001238/0.1927, allocations: 0.5933 MB / 301.4 MB, free: 25.87 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.1932, allocations: 95.67 kB / 301.5 MB, free: 25.83 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002506/0.1957, allocations: 1.091 MB / 302.6 MB, free: 25.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.1959, allocations: 232.7 kB / 302.8 MB, free: 25.14 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001927/0.1961, allocations: 39.89 kB / 302.9 MB, free: 25.13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.1962, allocations: 42.05 kB / 302.9 MB, free: 25.11 MB / 266.7 MB Notification: Performance of SimCode: time 1.022e-06/0.1962, allocations: 1.375 kB / 302.9 MB, free: 25.11 MB / 266.7 MB Notification: Performance of Templates: time 0.017/0.2132, allocations: 13.71 MB / 316.6 MB, free: 13.53 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 5.781332080019638]