Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002168/0.002168, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 226.7 MB / 245.5 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001053/0.001053, allocations: 101.3 kB / 296.7 MB, free: 6.441 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 47.92 kB / 356.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3091, allocations: 50.45 MB / 407.1 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004586/0.3138, allocations: 4.099 MB / 411.2 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.3157, allocations: 1.04 MB / 412.2 MB, free: 22.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002844/0.3161, allocations: 8 kB / 412.2 MB, free: 22.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002284/0.3163, allocations: 67.45 kB / 412.3 MB, free: 22.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002837/0.3166, allocations: 154.8 kB / 412.4 MB, free: 22.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004103/0.317, allocations: 195.8 kB / 412.6 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005237/0.3176, allocations: 0.7549 MB / 413.4 MB, free: 21.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002249/0.3178, allocations: 147 kB / 413.5 MB, free: 21.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003161/0.3181, allocations: 274.9 kB / 413.8 MB, free: 21.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000289/0.3184, allocations: 330.6 kB / 414.1 MB, free: 20.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7e-05/0.3185, allocations: 40 kB / 414.1 MB, free: 20.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.3186, allocations: 44 kB / 414.2 MB, free: 20.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.714e-05/0.3187, allocations: 115.5 kB / 414.3 MB, free: 20.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002104/0.3189, allocations: 290.5 kB / 414.6 MB, free: 20.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005138/0.3194, allocations: 0.7981 MB / 415.4 MB, free: 19.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3195, allocations: 0 / 415.4 MB, free: 19.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3195, allocations: 0 / 415.4 MB, free: 19.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.3195, allocations: 0 / 415.4 MB, free: 19.43 MB / 298.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.002394/0.3219, allocations: 1.026 MB / 416.4 MB, free: 18.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3219, allocations: 8.031 kB / 416.4 MB, free: 18.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.3221, allocations: 68.28 kB / 416.5 MB, free: 18.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004365/0.3226, allocations: 410 kB / 416.9 MB, free: 17.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.3226, allocations: 33.31 kB / 416.9 MB, free: 17.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.912e-05/0.3227, allocations: 36.38 kB / 416.9 MB, free: 17.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.3239, allocations: 0.5954 MB / 417.5 MB, free: 17.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.324, allocations: 4 kB / 417.5 MB, free: 17.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.521e-05/0.324, allocations: 16 kB / 417.6 MB, free: 17.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.324, allocations: 11.94 kB / 417.6 MB, free: 17.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.3257, allocations: 0.6245 MB / 418.2 MB, free: 16.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003145/0.3289, allocations: 2.168 MB / 420.4 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003491/0.3324, allocations: 0.8365 MB / 421.2 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009387/0.3334, allocations: 396.3 kB / 421.6 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.802e-05/0.3334, allocations: 4.328 kB / 421.6 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001114/0.3345, allocations: 422.3 kB / 422 MB, free: 12.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 3.096e-06/0.3345, allocations: 0 / 422 MB, free: 12.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.01302/0.3476, allocations: 2.285 MB / 424.3 MB, free: 10.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.3477, allocations: 89.03 kB / 424.4 MB, free: 10.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000498/0.3482, allocations: 413.9 kB / 424.8 MB, free: 9.727 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.168e-05/0.3482, allocations: 33.7 kB / 424.8 MB, free: 9.688 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.3484, allocations: 232.6 kB / 425 MB, free: 9.453 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.509e-05/0.3485, allocations: 130.1 kB / 425.2 MB, free: 9.324 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/0.3486, allocations: 74.05 kB / 425.2 MB, free: 9.242 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.034e-05/0.3487, allocations: 358.7 kB / 425.6 MB, free: 8.883 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008313/0.3496, allocations: 292.6 kB / 425.9 MB, free: 8.598 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008269/0.3504, allocations: 330.1 kB / 426.2 MB, free: 8.266 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001596/0.352, allocations: 0.5835 MB / 426.8 MB, free: 7.668 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.352, allocations: 0 / 426.8 MB, free: 7.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003246/0.3553, allocations: 0.9821 MB / 427.8 MB, free: 6.672 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.139e-05/0.3553, allocations: 32.52 kB / 427.8 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3554, allocations: 0 / 427.8 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.3565, allocations: 399.3 kB / 428.2 MB, free: 6.246 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004545/0.357, allocations: 91.86 kB / 428.3 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006761/0.3637, allocations: 3.302 MB / 431.6 MB, free: 2.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007271/0.3645, allocations: 95.64 kB / 431.7 MB, free: 2.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.389e-05/0.3645, allocations: 12 kB / 431.7 MB, free: 2.617 MB / 298.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.0002372/0.3648, allocations: 175.3 kB / 431.9 MB, free: 2.438 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.861e-05/0.3649, allocations: 55.36 kB / 431.9 MB, free: 2.383 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000109/0.365, allocations: 56.47 kB / 432 MB, free: 2.328 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.365, allocations: 4 kB / 432 MB, free: 2.324 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.365, allocations: 0 / 432 MB, free: 2.324 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.365, allocations: 8.078 kB / 432 MB, free: 2.316 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005107/0.3655, allocations: 0.6028 MB / 432.6 MB, free: 1.664 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3655, allocations: 3.984 kB / 432.6 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004529/0.366, allocations: 87.86 kB / 432.7 MB, free: 1.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00101/0.367, allocations: 400.5 kB / 433.1 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.65e-05/0.3671, allocations: 8 kB / 433.1 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007444/0.3745, allocations: 3.31 MB / 436.4 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.3746, allocations: 4 kB / 436.4 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04741/0.422, allocations: 12.57 MB / 448.9 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002303/0.4223, allocations: 176.4 kB / 449.1 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.349e-05/0.4223, allocations: 15.92 kB / 449.1 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005603/0.4229, allocations: 71.92 kB / 449.2 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/0.4231, allocations: 47.92 kB / 449.3 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.916e-05/0.4231, allocations: 19.92 kB / 449.3 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003421/0.4235, allocations: 291.2 kB / 449.6 MB, free: 236 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4235, allocations: 0 / 449.6 MB, free: 236 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009853/0.4245, allocations: 255.9 kB / 449.8 MB, free: 15.98 MB / 330.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.0002144/0.4247, allocations: 121.6 kB / 449.9 MB, free: 15.85 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002749/0.4275, allocations: 0.9189 MB / 450.8 MB, free: 14.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4275, allocations: 0 / 450.8 MB, free: 14.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.4291, allocations: 0.5568 MB / 451.4 MB, free: 14.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005837/0.4297, allocations: 81.45 kB / 451.5 MB, free: 14.26 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004061/0.4337, allocations: 1.844 MB / 453.3 MB, free: 12.36 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004925/0.4343, allocations: 0.847 MB / 454.2 MB, free: 11.48 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003476/0.4346, allocations: 47.39 kB / 454.2 MB, free: 11.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.4348, allocations: 27.44 kB / 454.2 MB, free: 11.41 MB / 330.7 MB Notification: Performance of SimCode: time 1.012e-06/0.4348, allocations: 0 / 454.2 MB, free: 11.41 MB / 330.7 MB Notification: Performance of Templates: time 0.02886/0.4636, allocations: 19.23 MB / 473.5 MB, free: 8.215 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches