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.001496/0.001496, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009067/0.0009067, allocations: 94.38 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000272/0.000272, allocations: 11.92 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2938, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1159/0.4098, allocations: 83.03 MB / 484.5 MB, free: 13.44 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.4101, allocations: 79.89 kB / 484.6 MB, free: 13.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02789/0.438, allocations: 9.288 MB / 493.9 MB, free: 4.023 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.438, allocations: 0 / 493.9 MB, free: 4.023 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.862e-05/0.4381, allocations: 12 kB / 493.9 MB, free: 4.012 MB / 362.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.00259/0.4407, allocations: 0.9455 MB / 494.9 MB, free: 3.008 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.4407, allocations: 12.03 kB / 494.9 MB, free: 2.996 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/0.4409, allocations: 59.34 kB / 494.9 MB, free: 2.938 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000717/0.4417, allocations: 400.9 kB / 495.3 MB, free: 2.508 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.389e-05/0.4417, allocations: 25 kB / 495.3 MB, free: 2.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.291e-05/0.4418, allocations: 43.91 kB / 495.4 MB, free: 2.438 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.4434, allocations: 0.638 MB / 496 MB, free: 1.777 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.4435, allocations: 3.953 kB / 496 MB, free: 1.773 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.609e-05/0.4436, allocations: 16 kB / 496 MB, free: 1.758 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.4436, allocations: 8 kB / 496.1 MB, free: 1.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/0.4454, allocations: 0.6987 MB / 496.8 MB, free: 1.047 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003887/0.4493, allocations: 2.204 MB / 499 MB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004413/0.4538, allocations: 1.012 MB / 500 MB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.497e-05/0.4539, allocations: 8.328 kB / 500 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001325/0.4552, allocations: 468.1 kB / 0.4887 GB, free: 13.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 2.245e-06/0.4552, allocations: 0 / 0.4887 GB, free: 13.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.01153/0.4667, allocations: 2.243 MB / 0.4909 GB, free: 10.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/0.4669, allocations: 89.03 kB / 0.491 GB, free: 10.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005314/0.4674, allocations: 357.2 kB / 0.4913 GB, free: 10.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.474e-05/0.4675, allocations: 33.7 kB / 0.4914 GB, free: 10.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002042/0.4677, allocations: 232.6 kB / 0.4916 GB, free: 10.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.4678, allocations: 134.1 kB / 0.4917 GB, free: 10.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.012e-05/0.4679, allocations: 4 kB / 0.4917 GB, free: 10.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.4681, allocations: 354.8 kB / 0.492 GB, free: 9.746 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009044/0.469, allocations: 340.6 kB / 0.4924 GB, free: 9.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009204/0.4699, allocations: 378 kB / 0.4927 GB, free: 9.031 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009081/0.4708, allocations: 343.6 kB / 0.4931 GB, free: 8.691 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.4708, allocations: 0 / 0.4931 GB, free: 8.691 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00249/0.4733, allocations: 0.9678 MB / 0.494 GB, free: 7.707 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.495e-05/0.4734, allocations: 37.7 kB / 0.494 GB, free: 7.664 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.4734, allocations: 7.891 kB / 0.494 GB, free: 7.656 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001206/0.4746, allocations: 424 kB / 0.4944 GB, free: 7.242 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005008/0.4752, allocations: 107.8 kB / 0.4946 GB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009244/0.4844, allocations: 3.61 MB / 0.4981 GB, free: 3.395 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009296/0.4854, allocations: 119.6 kB / 0.4982 GB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.131e-05/0.4854, allocations: 12 kB / 0.4982 GB, free: 3.266 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.0003927/0.4858, allocations: 181.7 kB / 0.4984 GB, free: 3.078 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.394e-05/0.4859, allocations: 43.44 kB / 0.4984 GB, free: 3.035 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.4861, allocations: 52.47 kB / 0.4985 GB, free: 2.984 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.8e-06/0.4861, allocations: 4 kB / 0.4985 GB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.4861, allocations: 0 / 0.4985 GB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.4861, allocations: 3.984 kB / 0.4985 GB, free: 2.977 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007833/0.4869, allocations: 0.6145 MB / 0.4991 GB, free: 2.312 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.4869, allocations: 4 kB / 0.4991 GB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005139/0.4874, allocations: 99.86 kB / 0.4992 GB, free: 2.211 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.4886, allocations: 423.8 kB / 0.4996 GB, free: 1.797 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.628e-05/0.4886, allocations: 11.98 kB / 0.4996 GB, free: 1.785 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2716/0.7603, allocations: 3.59 MB / 0.5031 GB, free: 98.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.7603, allocations: 0 / 0.5031 GB, free: 98.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003917/0.7642, allocations: 1.371 MB / 0.5044 GB, free: 98.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000289/0.7645, allocations: 182.4 kB / 0.5046 GB, free: 98.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.626e-05/0.7646, allocations: 9.797 kB / 0.5046 GB, free: 98.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000708/0.7653, allocations: 94.3 kB / 0.5047 GB, free: 98.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/0.7655, allocations: 60.11 kB / 0.5048 GB, free: 98.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.346e-05/0.7656, allocations: 12.59 kB / 0.5048 GB, free: 98.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003399/0.7659, allocations: 290.4 kB / 0.5051 GB, free: 98.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7659, allocations: 0 / 0.5051 GB, free: 98.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000695/0.7666, allocations: 173.4 kB / 0.5052 GB, free: 98.12 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.0002115/0.7669, allocations: 123.1 kB / 0.5053 GB, free: 98.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002729/0.7696, allocations: 0.9982 MB / 0.5063 GB, free: 97.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.7696, allocations: 0 / 0.5063 GB, free: 97.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.771, allocations: 0.596 MB / 0.5069 GB, free: 97.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004061/0.7714, allocations: 85.02 kB / 0.507 GB, free: 97.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.7742, allocations: 1.43 MB / 0.5084 GB, free: 97.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.7745, allocations: 0.8469 MB / 0.5092 GB, free: 96.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002288/0.7747, allocations: 45.19 kB / 0.5092 GB, free: 96.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.731e-05/0.7748, allocations: 29.12 kB / 0.5093 GB, free: 96.4 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.7748, allocations: 3.312 kB / 0.5093 GB, free: 96.4 MB / 378.7 MB Notification: Performance of Templates: time 0.01357/0.7884, allocations: 11.26 MB / 0.5203 GB, free: 91.04 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