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.00156/0.00156, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 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.001591/0.001591, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 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.547/1.547, allocations: 225.6 MB / 250.8 MB, free: 13.38 MB / 206.1 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 0.001499/0.001499, allocations: 47.92 kB / 368.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2865, allocations: 52.13 MB / 420.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005658/0.2922, allocations: 4.098 MB / 425 MB, free: 11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.2942, allocations: 1.021 MB / 426 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002224/0.2944, allocations: 11.94 kB / 426 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002414/0.2947, allocations: 79.2 kB / 426.1 MB, free: 9.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003307/0.295, allocations: 190.4 kB / 426.3 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004807/0.2955, allocations: 215.7 kB / 426.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000815/0.2963, allocations: 0.8094 MB / 427.3 MB, free: 8.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002691/0.2966, allocations: 122.5 kB / 427.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003966/0.2969, allocations: 303 kB / 427.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004606/0.2974, allocations: 362.6 kB / 428.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.2975, allocations: 80 kB / 428.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.2976, allocations: 80 kB / 428.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.2978, allocations: 163.5 kB / 428.4 MB, free: 7.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003218/0.2981, allocations: 334.5 kB / 428.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008264/0.2989, allocations: 0.8404 MB / 429.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2989, allocations: 3.938 kB / 429.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2989, allocations: 0 / 429.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.301e-05/0.299, allocations: 0 / 429.5 MB, free: 6.41 MB / 334.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.002632/0.3016, allocations: 1.041 MB / 430.6 MB, free: 5.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.3016, allocations: 12.03 kB / 430.6 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.3018, allocations: 68.55 kB / 430.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006687/0.3024, allocations: 410.3 kB / 431.1 MB, free: 4.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.28e-05/0.3025, allocations: 29.38 kB / 431.1 MB, free: 4.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.609e-05/0.3026, allocations: 40.36 kB / 431.1 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.3041, allocations: 0.6032 MB / 431.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.3041, allocations: 0 / 431.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.417e-05/0.3041, allocations: 16 kB / 431.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.3041, allocations: 8 kB / 431.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001813/0.306, allocations: 0.6205 MB / 432.4 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00379/0.3098, allocations: 2.165 MB / 434.5 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003809/0.3136, allocations: 0.7925 MB / 435.3 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009797/0.3145, allocations: 372.3 kB / 435.7 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.688e-05/0.3146, allocations: 8.328 kB / 435.7 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.3157, allocations: 429.7 kB / 436.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.274e-06/0.3157, allocations: 4 kB / 436.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01446/0.3302, allocations: 2.281 MB / 438.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.454e-05/0.3303, allocations: 85.11 kB / 438.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006138/0.3309, allocations: 406 kB / 438.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.268e-05/0.331, allocations: 33.7 kB / 438.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00022/0.3312, allocations: 236.9 kB / 439.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.3313, allocations: 138.8 kB / 439.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002031/0.3315, allocations: 70.06 kB / 439.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.3317, allocations: 358.7 kB / 439.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009155/0.3326, allocations: 292.5 kB / 440 MB, free: 11.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009238/0.3336, allocations: 330.1 kB / 440.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001691/0.3353, allocations: 0.5834 MB / 440.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.3353, allocations: 0 / 440.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003574/0.3388, allocations: 0.9707 MB / 441.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.662e-05/0.3389, allocations: 33.7 kB / 441.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3389, allocations: 0 / 441.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.3401, allocations: 404.4 kB / 442.3 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004848/0.3406, allocations: 83.92 kB / 442.4 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009015/0.3496, allocations: 3.676 MB / 446.1 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007441/0.3504, allocations: 91.75 kB / 446.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.973e-05/0.3504, allocations: 15.98 kB / 446.2 MB, free: 5.266 MB / 350.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.000281/0.3507, allocations: 169.8 kB / 446.3 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.455e-05/0.3508, allocations: 55.61 kB / 446.4 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001272/0.3509, allocations: 64.45 kB / 446.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.3509, allocations: 4 kB / 446.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.3509, allocations: 0 / 446.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3509, allocations: 0 / 446.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007874/0.3517, allocations: 0.6145 MB / 447.1 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3517, allocations: 0 / 447.1 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004845/0.3522, allocations: 87.91 kB / 447.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001141/0.3534, allocations: 392.5 kB / 447.5 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.609e-05/0.3534, allocations: 19.92 kB / 447.6 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008471/0.3619, allocations: 3.661 MB / 451.2 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3619, allocations: 0 / 451.2 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005929/0.3678, allocations: 1.451 MB / 452.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002818/0.3681, allocations: 180.7 kB / 452.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.171e-05/0.3682, allocations: 15.94 kB / 452.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005841/0.3688, allocations: 75.91 kB / 452.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.3689, allocations: 47.94 kB / 453 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.511e-05/0.369, allocations: 15.98 kB / 453 MB, free: 14.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003439/0.3693, allocations: 287.2 kB / 453.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3693, allocations: 0 / 453.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006049/0.3699, allocations: 171.8 kB / 453.4 MB, free: 13.75 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.0001729/0.3701, allocations: 115.2 kB / 453.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002623/0.3727, allocations: 0.9036 MB / 454.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3727, allocations: 0 / 454.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001542/0.3742, allocations: 0.545 MB / 455 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.3747, allocations: 84.16 kB / 455.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00341/0.3781, allocations: 1.224 MB / 456.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005649/0.3787, allocations: 0.8433 MB / 457.2 MB, free: 9.938 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002616/0.379, allocations: 39.41 kB / 457.2 MB, free: 9.898 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.3791, allocations: 31.44 kB / 457.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of SimCode: time 1.113e-06/0.3791, allocations: 0 / 457.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of Templates: time 0.0249/0.404, allocations: 14.14 MB / 471.4 MB, free: 11.81 MB / 382.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] 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.865478973835707]