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.001361/0.001361, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001508/0.001508, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.476/1.476, allocations: 230.6 MB / 257.5 MB, free: 7.973 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.001639/0.001639, allocations: 55.92 kB / 378.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2873, allocations: 53.36 MB / 431.6 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005947/0.2933, allocations: 4.134 MB / 435.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.2958, allocations: 1.063 MB / 436.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002524/0.2961, allocations: 8 kB / 436.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000261/0.2964, allocations: 87.12 kB / 436.9 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003547/0.2967, allocations: 198.4 kB / 437.1 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000544/0.2973, allocations: 227.6 kB / 437.3 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009962/0.2983, allocations: 0.825 MB / 438.2 MB, free: 368 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003161/0.2986, allocations: 123 kB / 438.3 MB, free: 240 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006574/0.2992, allocations: 323 kB / 438.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000507/0.2997, allocations: 358.6 kB / 439 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.2998, allocations: 84 kB / 439 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.3, allocations: 88 kB / 439.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.3002, allocations: 167.4 kB / 439.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003436/0.3005, allocations: 338.4 kB / 439.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001012/0.3015, allocations: 0.8599 MB / 440.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3015, allocations: 4 kB / 440.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3015, allocations: 0 / 440.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.3015, allocations: 3.938 kB / 440.5 MB, free: 14.04 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.002957/0.3045, allocations: 0.974 MB / 441.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.3045, allocations: 12.03 kB / 441.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002457/0.3048, allocations: 72.55 kB / 441.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006795/0.3055, allocations: 364.5 kB / 441.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.103e-05/0.3055, allocations: 29.38 kB / 441.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.867e-05/0.3056, allocations: 36.38 kB / 442 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.3071, allocations: 0.6031 MB / 442.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.3071, allocations: 0 / 442.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.772e-05/0.3072, allocations: 16 kB / 442.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.3072, allocations: 15.94 kB / 442.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001935/0.3091, allocations: 0.6362 MB / 443.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004011/0.3131, allocations: 2.13 MB / 445.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004031/0.3171, allocations: 0.8237 MB / 446.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001076/0.3182, allocations: 371 kB / 446.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.804e-05/0.3183, allocations: 8.328 kB / 446.6 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00117/0.3194, allocations: 438.5 kB / 447 MB, free: 7.328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.943e-06/0.3194, allocations: 0 / 447 MB, free: 7.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0153/0.3347, allocations: 2.305 MB / 449.3 MB, free: 5.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.813e-05/0.3348, allocations: 81.11 kB / 449.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006152/0.3354, allocations: 417.9 kB / 449.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.651e-05/0.3355, allocations: 33.7 kB / 449.8 MB, free: 4.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002533/0.3358, allocations: 240.8 kB / 450 MB, free: 4.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/0.3359, allocations: 142.8 kB / 450.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002233/0.3362, allocations: 74.06 kB / 450.3 MB, free: 3.992 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.3364, allocations: 358.7 kB / 450.6 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009339/0.3373, allocations: 300.6 kB / 450.9 MB, free: 3.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.3383, allocations: 338 kB / 451.2 MB, free: 3.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001812/0.3401, allocations: 0.599 MB / 451.8 MB, free: 2.391 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.3402, allocations: 4 kB / 451.8 MB, free: 2.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003774/0.3439, allocations: 0.9902 MB / 452.8 MB, free: 1.383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.456e-05/0.344, allocations: 41.69 kB / 452.9 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.344, allocations: 0 / 452.9 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001362/0.3454, allocations: 426.3 kB / 453.3 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005281/0.3459, allocations: 95.86 kB / 453.4 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009167/0.355, allocations: 3.706 MB / 457.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007303/0.3558, allocations: 95.73 kB / 457.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.013e-05/0.3558, allocations: 15.98 kB / 457.2 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.0002861/0.3561, allocations: 174.8 kB / 457.4 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.662e-05/0.3562, allocations: 51.67 kB / 457.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.3563, allocations: 56.53 kB / 457.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3563, allocations: 8 kB / 457.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3563, allocations: 3.984 kB / 457.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3564, allocations: 0 / 457.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007736/0.3571, allocations: 0.5939 MB / 458.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.3571, allocations: 4 kB / 458.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004757/0.3576, allocations: 87.86 kB / 458.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001277/0.3589, allocations: 432.5 kB / 458.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.151e-05/0.3589, allocations: 11.98 kB / 458.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008722/0.3676, allocations: 3.717 MB / 462.3 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.3677, allocations: 3.984 kB / 462.3 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005947/0.3736, allocations: 1.5 MB / 463.8 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003166/0.3739, allocations: 103.5 kB / 463.9 MB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.143e-05/0.374, allocations: 11.94 kB / 463.9 MB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005649/0.3746, allocations: 71.91 kB / 464 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.3747, allocations: 51.91 kB / 464.1 MB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.093e-05/0.3748, allocations: 15.98 kB / 464.1 MB, free: 5.836 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003888/0.3752, allocations: 291.2 kB / 464.4 MB, free: 5.555 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3752, allocations: 0 / 464.4 MB, free: 5.555 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007169/0.3759, allocations: 179.8 kB / 464.5 MB, free: 5.379 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.0002701/0.3762, allocations: 113.9 kB / 464.6 MB, free: 5.262 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002859/0.379, allocations: 0.9424 MB / 465.6 MB, free: 4.293 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.379, allocations: 0 / 465.6 MB, free: 4.293 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001622/0.3806, allocations: 0.5804 MB / 466.2 MB, free: 3.699 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004906/0.3811, allocations: 103.8 kB / 466.3 MB, free: 3.602 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/0.3846, allocations: 1.265 MB / 467.5 MB, free: 2.305 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005287/0.3852, allocations: 0.8433 MB / 468.4 MB, free: 1.434 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002103/0.3854, allocations: 43.39 kB / 468.4 MB, free: 1.387 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.3855, allocations: 35.42 kB / 468.4 MB, free: 1.352 MB / 366.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3855, allocations: 0 / 468.4 MB, free: 1.352 MB / 366.1 MB Notification: Performance of Templates: time 0.02434/0.4099, allocations: 14.41 MB / 482.9 MB, free: 3.023 MB / 382.1 MB " [Timeout remaining time 660] 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: 5.86442302307114]