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.001009/0.001009, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 227.2 MB / 245 MB, free: 7.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008125/0.0008124, allocations: 101 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002006/0.0002006, allocations: 8 kB / 357.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.185, allocations: 51.48 MB / 409.4 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09206/0.2771, allocations: 83.82 MB / 493.2 MB, free: 6.809 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001667/0.2773, allocations: 71.95 kB / 493.3 MB, free: 6.738 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02644/0.3038, allocations: 9.361 MB / 0.4909 GB, free: 13.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3038, allocations: 4 kB / 0.4909 GB, free: 13.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.787e-05/0.3038, allocations: 12 kB / 0.4909 GB, free: 13.32 MB / 378.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.002264/0.3061, allocations: 0.961 MB / 0.4919 GB, free: 12.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.3061, allocations: 8.031 kB / 0.4919 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002464/0.3064, allocations: 67.33 kB / 0.4919 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005747/0.307, allocations: 404.9 kB / 0.4923 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.195e-05/0.307, allocations: 29 kB / 0.4923 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.592e-05/0.3071, allocations: 47.89 kB / 0.4924 GB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.3086, allocations: 0.6302 MB / 0.493 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.3086, allocations: 0 / 0.493 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.239e-05/0.3087, allocations: 16 kB / 0.493 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.3087, allocations: 8 kB / 0.493 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/0.3106, allocations: 0.7065 MB / 0.4937 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003697/0.3143, allocations: 2.192 MB / 0.4959 GB, free: 8.039 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004444/0.3187, allocations: 1.02 MB / 0.4968 GB, free: 7.004 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.317e-05/0.3188, allocations: 4.328 kB / 0.4969 GB, free: 7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.3199, allocations: 475.2 kB / 0.4973 GB, free: 6.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 3.747e-06/0.3199, allocations: 3.984 kB / 0.4973 GB, free: 6.516 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.01097/0.3309, allocations: 2.251 MB / 0.4995 GB, free: 4.234 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.331, allocations: 88.98 kB / 0.4996 GB, free: 4.129 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004599/0.3315, allocations: 361.2 kB / 0.4999 GB, free: 3.773 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.56e-05/0.3315, allocations: 37.7 kB / 0.5 GB, free: 3.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.3317, allocations: 228.6 kB / 0.5002 GB, free: 3.504 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.3318, allocations: 126.1 kB / 0.5003 GB, free: 3.379 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.816e-05/0.3319, allocations: 12 kB / 0.5003 GB, free: 3.367 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.332, allocations: 354.8 kB / 0.5007 GB, free: 3.012 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009045/0.3329, allocations: 328.6 kB / 0.501 GB, free: 2.688 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009031/0.3338, allocations: 374.1 kB / 0.5013 GB, free: 2.312 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008932/0.3347, allocations: 355.6 kB / 0.5017 GB, free: 1.961 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.3347, allocations: 0 / 0.5017 GB, free: 1.961 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002469/0.3372, allocations: 0.9678 MB / 0.5026 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.602e-05/0.3373, allocations: 33.64 kB / 0.5026 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.3373, allocations: 4 kB / 0.5026 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001192/0.3385, allocations: 424.5 kB / 0.5031 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004933/0.339, allocations: 103.9 kB / 0.5032 GB, free: 424 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1658/0.5047, allocations: 3.597 MB / 0.5067 GB, free: 93.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008556/0.5056, allocations: 120.1 kB / 0.5068 GB, free: 93.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-05/0.5057, allocations: 13.55 kB / 0.5068 GB, free: 93.35 MB / 378.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 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002936/0.506, allocations: 176.9 kB / 0.507 GB, free: 93.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.5062, allocations: 43.72 kB / 0.507 GB, free: 93.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001309/0.5063, allocations: 56.56 kB / 0.5071 GB, free: 93.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.5063, allocations: 8.812 kB / 0.5071 GB, free: 93.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.5063, allocations: 3.953 kB / 0.5071 GB, free: 93.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.5063, allocations: 1.969 kB / 0.5071 GB, free: 93.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007536/0.5071, allocations: 0.6085 MB / 0.5077 GB, free: 93.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.5071, allocations: 1.219 kB / 0.5077 GB, free: 93.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005206/0.5076, allocations: 99.31 kB / 0.5078 GB, free: 93.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.5088, allocations: 424.5 kB / 0.5082 GB, free: 93.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.257e-05/0.5088, allocations: 9.188 kB / 0.5082 GB, free: 93.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008415/0.5172, allocations: 3.614 MB / 0.5117 GB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.5173, allocations: 0 / 0.5117 GB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003129/0.5204, allocations: 1.379 MB / 0.5131 GB, free: 90.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002215/0.5206, allocations: 185 kB / 0.5132 GB, free: 90.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.495e-05/0.5207, allocations: 10.47 kB / 0.5132 GB, free: 90.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000659/0.5214, allocations: 98.53 kB / 0.5133 GB, free: 90.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.5215, allocations: 47.31 kB / 0.5134 GB, free: 90.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.763e-05/0.5216, allocations: 14.69 kB / 0.5134 GB, free: 90.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002767/0.5219, allocations: 289.9 kB / 0.5137 GB, free: 90.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.5219, allocations: 0 / 0.5137 GB, free: 90.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005984/0.5225, allocations: 179.3 kB / 0.5138 GB, free: 90.5 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001693/0.5227, allocations: 122.7 kB / 0.514 GB, free: 90.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002383/0.5251, allocations: 1.003 MB / 0.5149 GB, free: 89.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.5251, allocations: 0 / 0.5149 GB, free: 89.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001344/0.5264, allocations: 0.5923 MB / 0.5155 GB, free: 89.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003549/0.5268, allocations: 77.81 kB / 0.5156 GB, free: 89.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002823/0.5296, allocations: 1.437 MB / 0.517 GB, free: 88.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.5298, allocations: 0.8441 MB / 0.5178 GB, free: 88.22 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002338/0.5301, allocations: 46.05 kB / 0.5179 GB, free: 88.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.764e-05/0.5302, allocations: 30.44 kB / 0.5179 GB, free: 88.2 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5302, allocations: 0 / 0.5179 GB, free: 88.2 MB / 378.7 MB Notification: Performance of Templates: time 0.0142/0.5444, allocations: 11.25 MB / 0.5289 GB, free: 80.07 MB / 378.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/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