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.001986/0.001985, allocations: 196.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 226.5 MB / 245.4 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008885/0.0008886, allocations: 91.98 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003098/0.0003099, allocations: 8 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2909, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1198/0.4107, allocations: 83.79 MB / 493.2 MB, free: 7.699 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/0.4111, allocations: 72.59 kB / 493.2 MB, free: 7.629 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.027/0.4381, allocations: 9.385 MB / 0.4908 GB, free: 14.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.2e-06/0.4381, allocations: 3.984 kB / 0.4909 GB, free: 14.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.916e-05/0.4381, allocations: 12 kB / 0.4909 GB, free: 14.19 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.002111/0.4403, allocations: 0.9456 MB / 0.4918 GB, free: 13.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.4403, allocations: 8.031 kB / 0.4918 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002356/0.4406, allocations: 76.27 kB / 0.4919 GB, free: 13.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006275/0.4412, allocations: 410 kB / 0.4923 GB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.936e-05/0.4413, allocations: 29.38 kB / 0.4923 GB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.081e-05/0.4413, allocations: 36.38 kB / 0.4923 GB, free: 12.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.4428, allocations: 0.6347 MB / 0.4929 GB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.4429, allocations: 4.188 kB / 0.4929 GB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.308e-05/0.4429, allocations: 23.92 kB / 0.493 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.4429, allocations: 8 kB / 0.493 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001827/0.4448, allocations: 0.7104 MB / 0.4937 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003761/0.4486, allocations: 2.196 MB / 0.4958 GB, free: 8.898 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004101/0.4527, allocations: 1.02 MB / 0.4968 GB, free: 7.867 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.4538, allocations: 437.2 kB / 0.4972 GB, free: 7.441 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.842e-05/0.4538, allocations: 4.328 kB / 0.4972 GB, free: 7.438 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001152/0.455, allocations: 466.7 kB / 0.4977 GB, free: 6.965 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 2.695e-06/0.455, allocations: 0 / 0.4977 GB, free: 6.965 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.01048/0.4655, allocations: 2.274 MB / 0.4999 GB, free: 4.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.361e-05/0.4656, allocations: 81.11 kB / 0.5 GB, free: 4.562 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005933/0.4662, allocations: 402 kB / 0.5004 GB, free: 4.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.927e-05/0.4663, allocations: 41.7 kB / 0.5004 GB, free: 4.113 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.4665, allocations: 236.6 kB / 0.5006 GB, free: 3.879 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/0.4667, allocations: 130.1 kB / 0.5007 GB, free: 3.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.954e-05/0.4667, allocations: 11.94 kB / 0.5008 GB, free: 3.738 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.4669, allocations: 350.8 kB / 0.5011 GB, free: 3.387 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000922/0.4678, allocations: 340.6 kB / 0.5014 GB, free: 3.051 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008988/0.4687, allocations: 370.1 kB / 0.5018 GB, free: 2.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001709/0.4704, allocations: 0.6693 MB / 0.5024 GB, free: 2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.4704, allocations: 4 kB / 0.5024 GB, free: 1.996 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002595/0.473, allocations: 0.9671 MB / 0.5034 GB, free: 1.012 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.058e-05/0.4731, allocations: 37.7 kB / 0.5034 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.4731, allocations: 7.984 kB / 0.5034 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/0.4744, allocations: 416.5 kB / 0.5038 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.4749, allocations: 107.9 kB / 0.5039 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2901/0.765, allocations: 3.478 MB / 0.5073 GB, free: 94.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009788/0.766, allocations: 116.4 kB / 0.5074 GB, free: 94.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.012e-05/0.7661, allocations: 17.67 kB / 0.5074 GB, free: 94.19 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.0003207/0.7664, allocations: 171.8 kB / 0.5076 GB, free: 94.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-05/0.7665, allocations: 46.86 kB / 0.5076 GB, free: 94.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001231/0.7666, allocations: 58.5 kB / 0.5077 GB, free: 94.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.7666, allocations: 4.344 kB / 0.5077 GB, free: 94.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.7667, allocations: 0 / 0.5077 GB, free: 94.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.7667, allocations: 3.734 kB / 0.5077 GB, free: 94.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009436/0.7676, allocations: 0.613 MB / 0.5083 GB, free: 93.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.7676, allocations: 0 / 0.5083 GB, free: 93.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005187/0.7682, allocations: 100.9 kB / 0.5084 GB, free: 93.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001262/0.7694, allocations: 419.7 kB / 0.5088 GB, free: 93.87 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.939e-05/0.7695, allocations: 11.97 kB / 0.5088 GB, free: 93.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008678/0.7782, allocations: 3.488 MB / 0.5122 GB, free: 92.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.7782, allocations: 0 / 0.5122 GB, free: 92.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003431/0.7817, allocations: 1.378 MB / 0.5136 GB, free: 91.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002839/0.782, allocations: 180.6 kB / 0.5137 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.316e-05/0.7821, allocations: 10.03 kB / 0.5138 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005814/0.7827, allocations: 97.48 kB / 0.5138 GB, free: 91.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.7828, allocations: 47.3 kB / 0.5139 GB, free: 91.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-05/0.7829, allocations: 10.31 kB / 0.5139 GB, free: 91.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003221/0.7832, allocations: 292 kB / 0.5142 GB, free: 91.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7832, allocations: 6.594 kB / 0.5142 GB, free: 91.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007092/0.7839, allocations: 180.6 kB / 0.5144 GB, free: 91.43 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.0002041/0.7841, allocations: 117.5 kB / 0.5145 GB, free: 91.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002455/0.7866, allocations: 1.003 MB / 0.5154 GB, free: 90.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.7866, allocations: 0 / 0.5154 GB, free: 90.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001377/0.788, allocations: 0.6034 MB / 0.516 GB, free: 90.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004929/0.7885, allocations: 83.34 kB / 0.5161 GB, free: 90.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002933/0.7914, allocations: 1.423 MB / 0.5175 GB, free: 89.87 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.7917, allocations: 0.8385 MB / 0.5183 GB, free: 89.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002475/0.792, allocations: 40.09 kB / 0.5184 GB, free: 89.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.37e-05/0.7921, allocations: 31.17 kB / 0.5184 GB, free: 89.14 MB / 378.7 MB Notification: Performance of SimCode: time 1.262e-06/0.7921, allocations: 0 / 0.5184 GB, free: 89.14 MB / 378.7 MB Notification: Performance of Templates: time 0.01547/0.8076, allocations: 11.34 MB / 0.5295 GB, free: 80.96 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/jenkins1/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