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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009221/0.0009221, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 221.5 MB / 230.3 MB, free: 7.609 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000819/0.000819, allocations: 95.3 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.534e-05/1.536e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08698/0.087, allocations: 50.42 MB / 387.5 MB, free: 7.594 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.309/0.396, allocations: 82.31 MB / 469.8 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/0.3963, allocations: 71.97 kB / 469.8 MB, free: 12.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02677/0.423, allocations: 9.196 MB / 479 MB, free: 3.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.4231, allocations: 0 / 479 MB, free: 3.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.449e-05/0.4231, allocations: 11.94 kB / 479.1 MB, free: 3.258 MB / 346.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.001939/0.4251, allocations: 0.8716 MB / 479.9 MB, free: 2.336 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.4251, allocations: 8.031 kB / 479.9 MB, free: 2.328 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.4252, allocations: 59.34 kB / 480 MB, free: 2.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000534/0.4258, allocations: 399.2 kB / 480.4 MB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.819e-05/0.4258, allocations: 12 kB / 480.4 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.651e-05/0.4259, allocations: 27.84 kB / 480.4 MB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007028/0.4266, allocations: 381.5 kB / 480.8 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007212/0.4273, allocations: 428.7 kB / 481.2 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.4274, allocations: 7.938 kB / 481.2 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.627e-05/0.4274, allocations: 0 / 481.2 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.4274, allocations: 12 kB / 481.2 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003469/0.4309, allocations: 2.112 MB / 483.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003076/0.434, allocations: 0.7069 MB / 484 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003967/0.4344, allocations: 265.8 kB / 484.3 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.299e-05/0.4345, allocations: 8.328 kB / 484.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004801/0.435, allocations: 295.1 kB / 484.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.214e-06/0.435, allocations: 0 / 484.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001172/0.4361, allocations: 0.5252 MB / 485.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/0.4362, allocations: 89.05 kB / 485.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003655/0.4366, allocations: 321.3 kB / 485.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.699e-05/0.4366, allocations: 33.64 kB / 485.6 MB, free: 12.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.4368, allocations: 240.5 kB / 485.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.4369, allocations: 122.1 kB / 485.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.074e-05/0.437, allocations: 4 kB / 485.9 MB, free: 12.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.4371, allocations: 354.8 kB / 486.3 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002645/0.4374, allocations: 164.8 kB / 486.4 MB, free: 11.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002865/0.4376, allocations: 201.9 kB / 486.6 MB, free: 11.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002657/0.4379, allocations: 161.9 kB / 486.8 MB, free: 11.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4379, allocations: 0 / 486.8 MB, free: 11.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001047/0.439, allocations: 0.5489 MB / 487.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.439, allocations: 33.7 kB / 487.4 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.439, allocations: 0 / 487.4 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008793/0.4399, allocations: 336.5 kB / 487.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005245/0.4405, allocations: 111.8 kB / 487.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00669/0.4472, allocations: 3.001 MB / 490.8 MB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008724/0.4481, allocations: 107.7 kB / 490.9 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.705e-05/0.4481, allocations: 15.98 kB / 490.9 MB, free: 6.941 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE(unit = "V" ) "Voltage between gate and cathode" type: Real 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 () * 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.0002124/0.4484, allocations: 108.9 kB / 491 MB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.028e-05/0.4485, allocations: 51.39 kB / 491.1 MB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001376/0.4486, allocations: 48.8 kB / 491.1 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/0.4486, allocations: 4 kB / 491.1 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.4486, allocations: 4 kB / 491.1 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.4486, allocations: 0 / 491.1 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006346/0.4493, allocations: 0.5526 MB / 491.7 MB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.4493, allocations: 0 / 491.7 MB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005/0.4498, allocations: 107.8 kB / 491.8 MB, free: 6.027 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007678/0.4506, allocations: 324.7 kB / 492.1 MB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.347e-05/0.4506, allocations: 7.984 kB / 492.1 MB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006484/0.4571, allocations: 2.993 MB / 495.1 MB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.4572, allocations: 4 kB / 495.1 MB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/0.4588, allocations: 0.8294 MB / 495.9 MB, free: 1.738 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.459, allocations: 184.5 kB / 496.1 MB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.257e-05/0.4591, allocations: 4 kB / 496.1 MB, free: 1.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006538/0.4598, allocations: 91.91 kB / 496.2 MB, free: 1.445 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.4599, allocations: 47.92 kB / 496.3 MB, free: 1.398 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.4599, allocations: 12.19 kB / 496.3 MB, free: 1.387 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002991/0.4603, allocations: 259 kB / 496.5 MB, free: 1.137 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4603, allocations: 0 / 496.5 MB, free: 1.137 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006431/0.4609, allocations: 163.7 kB / 496.7 MB, free: 0.9766 MB / 362.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) * 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.0002138/0.4611, allocations: 129.4 kB / 496.8 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001294/0.4624, allocations: 0.6376 MB / 497.5 MB, free: 188 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4625, allocations: 4 kB / 497.5 MB, free: 184 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008469/0.4633, allocations: 425.5 kB / 497.9 MB, free: 15.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003687/0.4637, allocations: 63.55 kB / 497.9 MB, free: 15.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.466, allocations: 0.8778 MB / 498.8 MB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/0.4664, allocations: 0.8434 MB / 499.7 MB, free: 13.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002372/0.4666, allocations: 43.27 kB / 499.7 MB, free: 13.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.4667, allocations: 31.42 kB / 499.7 MB, free: 13.84 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4667, allocations: 0 / 499.7 MB, free: 13.84 MB / 378.7 MB Notification: Performance of Templates: time 0.01514/0.4819, allocations: 10.05 MB / 0.4978 GB, free: 3.871 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches