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.001627/0.001627, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009612/0.0009611, allocations: 102.9 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.632e-05/1.643e-05, allocations: 4 kB / 343.7 MB, free: 8.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09579/0.09583, allocations: 51.49 MB / 395.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3161/0.4119, allocations: 83.09 MB / 478.3 MB, free: 9.895 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001518/0.4121, allocations: 69.95 kB / 478.3 MB, free: 9.871 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02311/0.4352, allocations: 9.272 MB / 487.6 MB, free: 2.301 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.4353, allocations: 0 / 487.6 MB, free: 2.301 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.945e-05/0.4353, allocations: 8 kB / 487.6 MB, free: 2.293 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.001627/0.4369, allocations: 0.8816 MB / 488.5 MB, free: 1.398 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.437, allocations: 8.031 kB / 488.5 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001844/0.4372, allocations: 67.33 kB / 488.6 MB, free: 1.324 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.4376, allocations: 412.9 kB / 489 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.4376, allocations: 19.61 kB / 489 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.353e-05/0.4377, allocations: 20 kB / 489 MB, free: 0.918 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000575/0.4383, allocations: 387.8 kB / 489.4 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006063/0.4389, allocations: 428.3 kB / 489.8 MB, free: 396 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.4389, allocations: 0 / 489.8 MB, free: 396 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.279e-05/0.4389, allocations: 0 / 489.8 MB, free: 396 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.439, allocations: 12 kB / 489.8 MB, free: 384 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003195/0.4422, allocations: 2.103 MB / 491.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002975/0.4451, allocations: 0.7236 MB / 492.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003564/0.4455, allocations: 258.8 kB / 492.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.906e-05/0.4456, allocations: 4.328 kB / 492.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004607/0.446, allocations: 300.4 kB / 493.2 MB, free: 13.74 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.683e-06/0.446, allocations: 2.156 kB / 493.2 MB, free: 13.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001091/0.4471, allocations: 0.5216 MB / 493.7 MB, free: 13.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.276e-05/0.4472, allocations: 89 kB / 493.8 MB, free: 13.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003257/0.4475, allocations: 335.1 kB / 494.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.281e-05/0.4476, allocations: 25.7 kB / 494.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.4477, allocations: 233.1 kB / 494.4 MB, free: 12.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.812e-05/0.4478, allocations: 130 kB / 494.5 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.4479, allocations: 0 / 494.5 MB, free: 12.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.448, allocations: 354.2 kB / 494.9 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.4483, allocations: 165.5 kB / 495 MB, free: 12.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.4485, allocations: 201.2 kB / 495.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.4488, allocations: 160 kB / 495.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4488, allocations: 0 / 495.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009728/0.4498, allocations: 0.5497 MB / 495.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.4498, allocations: 33.69 kB / 496 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.371e-06/0.4498, allocations: 64 / 496 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008156/0.4507, allocations: 339.2 kB / 496.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004756/0.4511, allocations: 100.7 kB / 496.4 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006224/0.4574, allocations: 3.001 MB / 499.4 MB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007279/0.4581, allocations: 107.7 kB / 499.5 MB, free: 8.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-05/0.4582, allocations: 23.75 kB / 499.5 MB, free: 8.738 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.0002033/0.4584, allocations: 109 kB / 499.6 MB, free: 8.625 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.897e-05/0.4585, allocations: 51.42 kB / 499.7 MB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.4586, allocations: 49.91 kB / 499.7 MB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.4586, allocations: 4 kB / 499.7 MB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.4586, allocations: 0 / 499.7 MB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.4586, allocations: 3.984 kB / 499.7 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005885/0.4592, allocations: 0.5562 MB / 0.4886 GB, free: 8.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.4593, allocations: 0 / 0.4886 GB, free: 8.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005055/0.4598, allocations: 99.8 kB / 0.4886 GB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007527/0.4605, allocations: 332.2 kB / 0.489 GB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.862e-05/0.4606, allocations: 3.984 kB / 0.489 GB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006159/0.4667, allocations: 3.01 MB / 0.4919 GB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4668, allocations: 0 / 0.4919 GB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.4683, allocations: 0.8282 MB / 0.4927 GB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.4685, allocations: 168.5 kB / 0.4929 GB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.394e-05/0.4686, allocations: 4 kB / 0.4929 GB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006367/0.4692, allocations: 91.91 kB / 0.493 GB, free: 4.262 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.4693, allocations: 55.88 kB / 0.493 GB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.776e-05/0.4694, allocations: 11.98 kB / 0.493 GB, free: 4.195 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002776/0.4697, allocations: 262.9 kB / 0.4933 GB, free: 3.941 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4697, allocations: 0 / 0.4933 GB, free: 3.941 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006107/0.4703, allocations: 161.5 kB / 0.4934 GB, free: 3.785 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.0001727/0.4705, allocations: 115.2 kB / 0.4936 GB, free: 3.664 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.4717, allocations: 0.639 MB / 0.4942 GB, free: 3.004 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.4718, allocations: 7.938 kB / 0.4942 GB, free: 2.996 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008431/0.4726, allocations: 423 kB / 0.4946 GB, free: 2.574 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.473, allocations: 64.12 kB / 0.4946 GB, free: 2.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.4753, allocations: 0.874 MB / 0.4955 GB, free: 1.613 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.4757, allocations: 0.8512 MB / 0.4963 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002339/0.4759, allocations: 47.25 kB / 0.4964 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.964e-05/0.4761, allocations: 27.44 kB / 0.4964 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4761, allocations: 0 / 0.4964 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of Templates: time 0.01568/0.4917, allocations: 10.04 MB / 0.5062 GB, free: 6.785 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