Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.707/1.707, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 51.92 kB / 373.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1205, allocations: 53.34 MB / 426.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006498/0.127, allocations: 4.114 MB / 430.9 MB, free: 132 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2626/0.3895, allocations: 1.048 MB / 432 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003874/0.3899, allocations: 14.67 kB / 432 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002867/0.3902, allocations: 88.7 kB / 432.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003762/0.3906, allocations: 187.7 kB / 432.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000582/0.3912, allocations: 232.7 kB / 432.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008459/0.392, allocations: 0.8177 MB / 433.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.3923, allocations: 120.4 kB / 433.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004654/0.3927, allocations: 327 kB / 433.7 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003885/0.3931, allocations: 362.4 kB / 434.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001136/0.3932, allocations: 84.44 kB / 434.2 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.3934, allocations: 84.12 kB / 434.3 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.3935, allocations: 167.2 kB / 434.4 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002913/0.3938, allocations: 337.8 kB / 434.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001013/0.3948, allocations: 0.8642 MB / 435.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3948, allocations: 1.031 kB / 435.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3948, allocations: 0 / 435.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.524e-05/0.3949, allocations: 0 / 435.6 MB, free: 7.367 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.002855/0.3977, allocations: 1.054 MB / 436.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.807e-05/0.3978, allocations: 9.75 kB / 436.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002652/0.398, allocations: 71.67 kB / 436.8 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005843/0.3986, allocations: 427.5 kB / 437.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.072e-05/0.3987, allocations: 29.41 kB / 437.2 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.521e-05/0.3988, allocations: 37.64 kB / 437.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.4003, allocations: 0.6047 MB / 437.8 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.4003, allocations: 5.953 kB / 437.9 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.551e-05/0.4004, allocations: 14.94 kB / 437.9 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.4004, allocations: 11.81 kB / 437.9 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002092/0.4025, allocations: 0.6364 MB / 438.5 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00382/0.4063, allocations: 2.169 MB / 440.7 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003961/0.4103, allocations: 0.8318 MB / 441.5 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001103/0.4114, allocations: 370.7 kB / 441.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.735e-05/0.4114, allocations: 16.62 kB / 441.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001297/0.4127, allocations: 432.6 kB / 442.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.914e-06/0.4127, allocations: 0 / 442.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01675/0.4295, allocations: 2.377 MB / 444.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.4295, allocations: 82.75 kB / 444.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005766/0.4301, allocations: 417.3 kB / 445.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.073e-05/0.4302, allocations: 36.58 kB / 445.2 MB, free: 3.016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.4303, allocations: 234.5 kB / 445.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.4304, allocations: 138.8 kB / 445.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001827/0.4306, allocations: 74.45 kB / 445.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.093e-05/0.4307, allocations: 359.5 kB / 446 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009985/0.4317, allocations: 298.9 kB / 446.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/0.4327, allocations: 345.7 kB / 446.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/0.4346, allocations: 0.5952 MB / 447.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.4346, allocations: 1.562 kB / 447.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003918/0.4385, allocations: 0.9986 MB / 448.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.697e-05/0.4386, allocations: 32.55 kB / 448.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.4386, allocations: 0 / 448.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001348/0.4399, allocations: 433.4 kB / 448.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005178/0.4404, allocations: 90.56 kB / 448.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008716/0.4492, allocations: 3.817 MB / 452.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009004/0.4501, allocations: 97.27 kB / 452.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.504e-05/0.4501, allocations: 13.94 kB / 452.7 MB, free: 14.78 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.0003458/0.4505, allocations: 172.2 kB / 452.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.4506, allocations: 57.69 kB / 452.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.4507, allocations: 56.12 kB / 453 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.4507, allocations: 3.469 kB / 453 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.4507, allocations: 5.219 kB / 453 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.4507, allocations: 3.984 kB / 453 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009346/0.4517, allocations: 0.6191 MB / 453.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.4517, allocations: 5.391 kB / 453.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005479/0.4522, allocations: 83.92 kB / 453.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001341/0.4536, allocations: 431.5 kB / 454.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.296e-05/0.4536, allocations: 20.48 kB / 454.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00924/0.4628, allocations: 3.801 MB / 457.9 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4628, allocations: 0 / 457.9 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006594/0.4694, allocations: 1.489 MB / 459.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005225/0.47, allocations: 177.4 kB / 459.6 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/0.4702, allocations: 14.31 kB / 459.6 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007168/0.4709, allocations: 74.88 kB / 459.7 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000207/0.4711, allocations: 50.55 kB / 459.7 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.163e-05/0.4711, allocations: 8.969 kB / 459.7 MB, free: 9.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004997/0.4716, allocations: 299.3 kB / 460 MB, free: 9.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4716, allocations: 0 / 460 MB, free: 9.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008537/0.4725, allocations: 177.7 kB / 460.2 MB, free: 9.703 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.0002007/0.4727, allocations: 120.4 kB / 460.3 MB, free: 9.598 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004485/0.4772, allocations: 0.9548 MB / 461.3 MB, free: 9.027 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.4772, allocations: 5 kB / 461.3 MB, free: 9.023 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002763/0.48, allocations: 0.5735 MB / 461.9 MB, free: 8.672 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009688/0.4809, allocations: 86 kB / 461.9 MB, free: 8.625 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006358/0.4873, allocations: 1.269 MB / 463.2 MB, free: 7.848 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007811/0.4881, allocations: 0.8388 MB / 464.1 MB, free: 7.082 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004658/0.4885, allocations: 50.02 kB / 464.1 MB, free: 7.051 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.4887, allocations: 32.47 kB / 464.1 MB, free: 7.039 MB / 366.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4887, allocations: 0 / 464.1 MB, free: 7.039 MB / 366.1 MB Notification: Performance of Templates: time 0.04033/0.5291, allocations: 14.13 MB / 478.3 MB, free: 11.59 MB / 382.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.223162829875946]