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.001092/0.001092, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001531/0.002623, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0009456/0.0009456, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001249/0.002195, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9135/0.9135, allocations: 173.4 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08938/1.003, allocations: 52.5 MB / 238.3 MB, free: 4.426 MB / 234.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.252e-06/1.252e-06, allocations: 0 / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.965e-05/2.09e-05, allocations: 2.875 kB / 239.6 MB, free: 3.164 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003647/0.003668, allocations: 3.994 MB / 243.6 MB, free: 15.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.005397, allocations: 1.043 MB / 244.6 MB, free: 14.11 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001984/0.005596, allocations: 7.938 kB / 244.6 MB, free: 14.1 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.005745, allocations: 87.14 kB / 244.7 MB, free: 14.01 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.005997, allocations: 202.2 kB / 244.9 MB, free: 13.81 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003587/0.006356, allocations: 215.6 kB / 245.1 MB, free: 13.6 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006703/0.007026, allocations: 0.8247 MB / 245.9 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.007214, allocations: 122.2 kB / 246 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005845/0.007799, allocations: 0.5369 MB / 246.6 MB, free: 12.11 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002904/0.008089, allocations: 279.3 kB / 246.9 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.777e-05/0.008167, allocations: 76 kB / 246.9 MB, free: 11.76 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.221e-05/0.008239, allocations: 79.94 kB / 247 MB, free: 11.68 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.191e-05/0.008311, allocations: 111.7 kB / 247.1 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.008459, allocations: 187.7 kB / 247.3 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000422/0.008881, allocations: 474.4 kB / 247.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.668e-05/0.008897, allocations: 0 / 247.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.008899, allocations: 4 kB / 247.8 MB, free: 10.92 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.51e-05/0.008924, allocations: 0 / 247.8 MB, free: 10.92 MB / 250.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.001286/0.01021, allocations: 0.9646 MB / 248.7 MB, free: 9.926 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.79e-05/0.01024, allocations: 8.031 kB / 248.7 MB, free: 9.918 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.341e-05/0.01033, allocations: 72.88 kB / 248.8 MB, free: 9.848 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003268/0.01066, allocations: 275.8 kB / 249.1 MB, free: 9.551 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.01069, allocations: 29.36 kB / 249.1 MB, free: 9.523 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.613e-05/0.01073, allocations: 40.38 kB / 249.1 MB, free: 9.484 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005175/0.01125, allocations: 436.3 kB / 249.6 MB, free: 9.023 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.01126, allocations: 192 / 249.6 MB, free: 9.023 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.889e-05/0.01129, allocations: 20.36 kB / 249.6 MB, free: 9.004 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.0113, allocations: 15.94 kB / 249.6 MB, free: 8.988 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002118/0.01151, allocations: 130.8 kB / 249.7 MB, free: 8.863 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.01302, allocations: 1.363 MB / 251.1 MB, free: 7.434 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007761/0.0138, allocations: 338.5 kB / 251.4 MB, free: 7.094 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.01395, allocations: 125.4 kB / 251.5 MB, free: 6.969 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.01399, allocations: 8.328 kB / 251.6 MB, free: 6.961 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002525/0.01424, allocations: 244.3 kB / 251.8 MB, free: 6.699 MB / 250.7 MB Notification: Performance of pre-optimization done (n=40): time 2.023e-06/0.01424, allocations: 4 kB / 251.8 MB, free: 6.695 MB / 250.7 MB Notification: Performance of matching and sorting (n=40): time 0.002915/0.01716, allocations: 1.009 MB / 252.8 MB, free: 5.676 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.01719, allocations: 63.41 kB / 252.9 MB, free: 5.602 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/0.01741, allocations: 331.3 kB / 253.2 MB, free: 5.266 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.236e-05/0.01744, allocations: 33.7 kB / 253.2 MB, free: 5.227 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.067e-05/0.01753, allocations: 189.8 kB / 253.4 MB, free: 5.039 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.969e-05/0.01761, allocations: 146.8 kB / 253.6 MB, free: 4.895 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-05/0.0177, allocations: 66.03 kB / 253.6 MB, free: 4.824 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.046e-05/0.01779, allocations: 362.7 kB / 254 MB, free: 4.461 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.01789, allocations: 78.56 kB / 254.1 MB, free: 4.379 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.01801, allocations: 149.8 kB / 254.2 MB, free: 4.211 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.0182, allocations: 192.1 kB / 254.4 MB, free: 4.012 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.01821, allocations: 0 / 254.4 MB, free: 4.012 MB / 250.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005979/0.01881, allocations: 388.9 kB / 254.8 MB, free: 3.609 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.976e-05/0.01885, allocations: 41.69 kB / 254.8 MB, free: 3.562 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.01885, allocations: 0 / 254.8 MB, free: 3.562 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003584/0.01921, allocations: 192.6 kB / 255 MB, free: 3.371 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.01943, allocations: 87.12 kB / 255.1 MB, free: 3.289 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002151/0.02158, allocations: 2.019 MB / 257.1 MB, free: 1.18 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/0.0218, allocations: 59.8 kB / 257.2 MB, free: 1.121 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.02182, allocations: 15.98 kB / 257.2 MB, free: 1.105 MB / 250.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.0001132/0.02193, allocations: 129.8 kB / 257.3 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.924e-05/0.02198, allocations: 39.97 kB / 257.3 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.489e-05/0.02204, allocations: 56.36 kB / 257.4 MB, free: 0.875 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.02204, allocations: 4 kB / 257.4 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.02205, allocations: 3.938 kB / 257.4 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.02205, allocations: 0 / 257.4 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.02233, allocations: 297.9 kB / 257.7 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.02233, allocations: 4 kB / 257.7 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000202/0.02253, allocations: 71.88 kB / 257.8 MB, free: 492 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.02264, allocations: 51.66 kB / 257.8 MB, free: 440 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003182/0.02296, allocations: 188.7 kB / 258 MB, free: 248 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.02298, allocations: 11.98 kB / 258 MB, free: 236 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002006/0.02499, allocations: 1.999 MB / 260 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.02499, allocations: 0 / 260 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009829/0.02597, allocations: 0.5052 MB / 260.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/0.02601, allocations: 12 kB / 260.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.02617, allocations: 47.89 kB / 260.6 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.094e-05/0.02626, allocations: 55.84 kB / 260.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.02628, allocations: 8 kB / 260.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001146/0.02639, allocations: 148.7 kB / 260.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.02639, allocations: 0 / 260.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006857/0.02708, allocations: 167.9 kB / 260.9 MB, free: 13.19 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.0001764/0.02726, allocations: 91.88 kB / 261 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006543/0.02791, allocations: 0.4927 MB / 261.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.436e-05/0.02792, allocations: 7.938 kB / 261.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.02828, allocations: 343.2 kB / 261.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002505/0.02853, allocations: 117.5 kB / 262 MB, free: 12.1 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.0318, allocations: 0.9404 MB / 262.9 MB, free: 11.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.877e-05/0.03188, allocations: 125.6 kB / 263.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.03201, allocations: 47.28 kB / 263.1 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/0.03219, allocations: 127.3 kB / 263.2 MB, free: 10.81 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.03219, allocations: 7.938 kB / 263.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of Templates: time 0.1529/0.1851, allocations: 13.34 MB / 276.6 MB, free: 27.94 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 -ignoreHideResult -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.388615198433399]