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.001411/0.001411, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001395/0.001395, allocations: 193.2 kB / 23.71 MB, free: 4.406 MB / 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.497/1.497, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.001605/0.001605, allocations: 51.86 kB / 370.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2695, allocations: 52.17 MB / 423.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005297/0.2748, allocations: 3.678 MB / 426.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001858/0.2767, allocations: 0.9841 MB / 427.7 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002187/0.2769, allocations: 7.938 kB / 427.7 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002394/0.2772, allocations: 91.12 kB / 427.8 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003409/0.2775, allocations: 186.5 kB / 428 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004828/0.278, allocations: 223.6 kB / 428.2 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008393/0.2788, allocations: 0.8017 MB / 429 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002622/0.2791, allocations: 117.4 kB / 429.1 MB, free: 8.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004188/0.2795, allocations: 315 kB / 429.4 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000457/0.28, allocations: 322.6 kB / 429.8 MB, free: 7.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001338/0.2801, allocations: 80 kB / 429.8 MB, free: 7.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.2802, allocations: 80 kB / 429.9 MB, free: 7.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001804/0.2804, allocations: 163.4 kB / 430.1 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003107/0.2807, allocations: 282.8 kB / 430.4 MB, free: 7.176 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008915/0.2816, allocations: 0.8443 MB / 431.2 MB, free: 6.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2816, allocations: 7.984 kB / 431.2 MB, free: 6.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2816, allocations: 0 / 431.2 MB, free: 6.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.2816, allocations: 0 / 431.2 MB, free: 6.324 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.002653/0.2843, allocations: 0.9612 MB / 432.2 MB, free: 5.328 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.2843, allocations: 8.031 kB / 432.2 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/0.2845, allocations: 60.56 kB / 432.2 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007033/0.2852, allocations: 364.4 kB / 432.6 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.214e-05/0.2852, allocations: 33.38 kB / 432.6 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.953e-05/0.2853, allocations: 40.36 kB / 432.7 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.2868, allocations: 0.6205 MB / 433.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.2868, allocations: 0 / 433.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.177e-05/0.2868, allocations: 19.98 kB / 433.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.2868, allocations: 8 kB / 433.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001967/0.2888, allocations: 0.6284 MB / 433.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003783/0.2926, allocations: 1.885 MB / 435.8 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003799/0.2964, allocations: 0.8003 MB / 436.6 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.2974, allocations: 367 kB / 437 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.2975, allocations: 4.328 kB / 437 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001192/0.2986, allocations: 452.3 kB / 437.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 4.178e-06/0.2987, allocations: 3.984 kB / 437.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01383/0.3125, allocations: 2.195 MB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.96e-05/0.3126, allocations: 97.03 kB / 439.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006025/0.3132, allocations: 385.6 kB / 440.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.401e-05/0.3132, allocations: 33.7 kB / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002446/0.3135, allocations: 244.7 kB / 440.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.3137, allocations: 134.8 kB / 440.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/0.3138, allocations: 78.02 kB / 440.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.314, allocations: 354.7 kB / 440.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009754/0.315, allocations: 326.2 kB / 441.2 MB, free: 12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009865/0.316, allocations: 389.2 kB / 441.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001777/0.3178, allocations: 0.572 MB / 442.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3178, allocations: 0 / 442.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003581/0.3214, allocations: 0.9997 MB / 443.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.355e-05/0.3214, allocations: 40.5 kB / 443.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.3214, allocations: 4 kB / 443.2 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001263/0.3227, allocations: 392.5 kB / 443.6 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005011/0.3232, allocations: 95.84 kB / 443.7 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008342/0.3315, allocations: 3.46 MB / 447.2 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007015/0.3322, allocations: 87.77 kB / 447.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.833e-05/0.3323, allocations: 15.98 kB / 447.3 MB, free: 5.809 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.0002918/0.3326, allocations: 173.7 kB / 447.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.294e-05/0.3327, allocations: 47.72 kB / 447.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.3328, allocations: 52.38 kB / 447.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.3328, allocations: 7.984 kB / 447.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.3328, allocations: 0 / 447.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.3328, allocations: 0 / 447.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000604/0.3334, allocations: 437.1 kB / 448 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.3334, allocations: 3.938 kB / 448 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004949/0.3339, allocations: 87.86 kB / 448.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001147/0.335, allocations: 396.6 kB / 448.5 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.333e-05/0.3351, allocations: 11.98 kB / 448.5 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008204/0.3433, allocations: 3.462 MB / 451.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.3433, allocations: 0 / 451.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005823/0.3491, allocations: 1.446 MB / 453.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002964/0.3494, allocations: 103.7 kB / 453.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.651e-05/0.3495, allocations: 8 kB / 453.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005674/0.3501, allocations: 75.91 kB / 453.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.3502, allocations: 47.92 kB / 453.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.024e-05/0.3503, allocations: 11.98 kB / 453.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003467/0.3506, allocations: 279.2 kB / 453.9 MB, free: 15.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3506, allocations: 3.938 kB / 453.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006511/0.3513, allocations: 183.8 kB / 454.1 MB, free: 14.84 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.0001775/0.3514, allocations: 103.2 kB / 454.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002773/0.3542, allocations: 0.9401 MB / 455.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3542, allocations: 0 / 455.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/0.3558, allocations: 0.5414 MB / 455.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004637/0.3562, allocations: 73.64 kB / 455.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003208/0.3594, allocations: 1.209 MB / 456.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002511/0.3597, allocations: 232.8 kB / 457.2 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002123/0.3599, allocations: 47.25 kB / 457.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.36, allocations: 31.44 kB / 457.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.36, allocations: 0 / 457.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of Templates: time 0.02326/0.3833, allocations: 13.76 MB / 471 MB, free: 13.94 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: 6.0268883761018515]