Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00155/0.00155, allocations: 113 kB / 21.18 MB, free: 0.5898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001703/0.001703, allocations: 209.7 kB / 24.47 MB, free: 3.996 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.423/1.423, allocations: 230.5 MB / 258.1 MB, free: 8.145 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 67.84 kB / 378.7 MB, free: 2.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2694, allocations: 53.32 MB / 432.1 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005731/0.2751, allocations: 4.139 MB / 436.2 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001979/0.2771, allocations: 1.071 MB / 437.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002039/0.2773, allocations: 11.94 kB / 437.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002531/0.2775, allocations: 91.12 kB / 437.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003284/0.2779, allocations: 182.4 kB / 437.5 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005233/0.2784, allocations: 231.7 kB / 437.8 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009007/0.2793, allocations: 0.825 MB / 438.6 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002604/0.2796, allocations: 118.9 kB / 438.7 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004569/0.28, allocations: 311 kB / 439 MB, free: 384 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004668/0.2805, allocations: 362.6 kB / 439.4 MB, free: 20 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.2806, allocations: 88.03 kB / 439.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.2808, allocations: 88 kB / 439.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.2809, allocations: 163.3 kB / 439.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003213/0.2812, allocations: 334.5 kB / 440 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009112/0.2821, allocations: 0.8641 MB / 440.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2821, allocations: 4 kB / 440.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2821, allocations: 0 / 440.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.2822, allocations: 3.938 kB / 440.9 MB, free: 14.48 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.002739/0.2849, allocations: 1.045 MB / 441.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.2849, allocations: 16.03 kB / 442 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002343/0.2852, allocations: 72.55 kB / 442 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006565/0.2858, allocations: 422.3 kB / 442.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.323e-05/0.2859, allocations: 29.38 kB / 442.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.464e-05/0.286, allocations: 36.38 kB / 442.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.2875, allocations: 0.6071 MB / 443.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.2875, allocations: 0 / 443.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.613e-05/0.2875, allocations: 15.98 kB / 443.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.2875, allocations: 12 kB / 443.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001954/0.2895, allocations: 0.644 MB / 443.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004254/0.2938, allocations: 2.173 MB / 446 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003957/0.2977, allocations: 0.8237 MB / 446.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001144/0.2989, allocations: 373.3 kB / 447.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.029e-05/0.2989, allocations: 4.328 kB / 447.2 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00127/0.3002, allocations: 430.7 kB / 447.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.414e-06/0.3002, allocations: 0 / 447.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01475/0.3149, allocations: 2.383 MB / 450 MB, free: 5.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.315, allocations: 89.09 kB / 450 MB, free: 5.043 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006097/0.3157, allocations: 413.9 kB / 450.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.831e-05/0.3157, allocations: 33.7 kB / 450.5 MB, free: 4.594 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002385/0.316, allocations: 240.9 kB / 450.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001714/0.3162, allocations: 142.8 kB / 450.9 MB, free: 4.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.3163, allocations: 70.06 kB / 450.9 MB, free: 4.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.3165, allocations: 358.7 kB / 451.3 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009921/0.3175, allocations: 296.6 kB / 451.6 MB, free: 3.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/0.3185, allocations: 350 kB / 451.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001923/0.3205, allocations: 0.5913 MB / 452.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3205, allocations: 4 kB / 452.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003748/0.3242, allocations: 0.9979 MB / 453.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/0.3243, allocations: 33.7 kB / 453.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.3243, allocations: 0 / 453.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001344/0.3256, allocations: 428.5 kB / 454 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005123/0.3261, allocations: 99.84 kB / 454 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009131/0.3353, allocations: 3.804 MB / 457.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007283/0.336, allocations: 99.73 kB / 458 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.331e-05/0.336, allocations: 15.98 kB / 458 MB, free: 12.9 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.0002924/0.3363, allocations: 174.2 kB / 458.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.229e-05/0.3364, allocations: 51.67 kB / 458.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001286/0.3365, allocations: 64.52 kB / 458.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.3365, allocations: 4 kB / 458.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3366, allocations: 0 / 458.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3366, allocations: 0 / 458.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007629/0.3373, allocations: 0.626 MB / 458.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.3373, allocations: 0 / 458.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005062/0.3378, allocations: 87.86 kB / 459 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001273/0.3391, allocations: 436.5 kB / 459.4 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.433e-05/0.3391, allocations: 8 kB / 459.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008663/0.3478, allocations: 3.81 MB / 463.2 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3478, allocations: 0 / 463.2 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005945/0.3538, allocations: 1.505 MB / 464.7 MB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002783/0.354, allocations: 176.7 kB / 464.9 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.731e-05/0.3541, allocations: 15.94 kB / 464.9 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005894/0.3547, allocations: 79.84 kB / 465 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.3549, allocations: 43.94 kB / 465 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.3549, allocations: 11.98 kB / 465 MB, free: 5.594 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003567/0.3553, allocations: 295.2 kB / 465.3 MB, free: 5.305 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3553, allocations: 4 kB / 465.3 MB, free: 5.301 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000612/0.3559, allocations: 179.8 kB / 465.5 MB, free: 5.125 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.0001791/0.356, allocations: 122.1 kB / 465.6 MB, free: 5.004 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002828/0.3589, allocations: 0.9346 MB / 466.6 MB, free: 4.043 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.3589, allocations: 0 / 466.6 MB, free: 4.043 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001662/0.3605, allocations: 0.5801 MB / 467.1 MB, free: 3.449 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004609/0.361, allocations: 81.45 kB / 467.2 MB, free: 3.367 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00334/0.3643, allocations: 1.309 MB / 468.5 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004918/0.3648, allocations: 0.8433 MB / 469.4 MB, free: 1.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.365, allocations: 35.44 kB / 469.4 MB, free: 1.117 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.365, allocations: 0 / 469.4 MB, free: 1.117 MB / 366.1 MB Notification: Performance of Templates: time 0.01458/0.3795, allocations: 10.02 MB / 479.4 MB, free: 7.141 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 8.281973735895008]