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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001146/0.001146, allocations: 194.9 kB / 8.539 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008797/0.0008797, allocations: 91.59 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.727e-06/8.767e-06, allocations: 0 / 343.1 MB, free: 8.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09104/0.09107, allocations: 51.48 MB / 394.6 MB, free: 5.211 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2471/0.3382, allocations: 83.02 MB / 477.6 MB, free: 9.832 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001834/0.3384, allocations: 68.36 kB / 477.7 MB, free: 9.809 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02427/0.3627, allocations: 9.13 MB / 486.8 MB, free: 2.457 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.548e-05/0.3628, allocations: 8 kB / 486.9 MB, free: 2.449 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.001849/0.3646, allocations: 0.9103 MB / 487.8 MB, free: 1.527 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.3647, allocations: 8.031 kB / 487.8 MB, free: 1.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002185/0.3649, allocations: 71.33 kB / 487.8 MB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004975/0.3654, allocations: 400.7 kB / 488.2 MB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.3655, allocations: 15.81 kB / 488.2 MB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.023e-05/0.3655, allocations: 23.98 kB / 488.3 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006196/0.3662, allocations: 381.6 kB / 488.6 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000601/0.3668, allocations: 434.1 kB / 489.1 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.3668, allocations: 0 / 489.1 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.497e-05/0.3668, allocations: 7.844 kB / 489.1 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.3669, allocations: 12 kB / 489.1 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003484/0.3704, allocations: 2.136 MB / 491.2 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004123/0.3708, allocations: 249.7 kB / 491.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003801/0.3712, allocations: 255.2 kB / 491.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.292e-05/0.3712, allocations: 8.312 kB / 491.7 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004346/0.3717, allocations: 297.3 kB / 492 MB, free: 14.22 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.804e-06/0.3717, allocations: 0 / 492 MB, free: 14.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.00118/0.3729, allocations: 0.5215 MB / 492.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.3729, allocations: 89.09 kB / 492.6 MB, free: 13.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003365/0.3733, allocations: 322.4 kB / 492.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.538e-05/0.3733, allocations: 25.7 kB / 493 MB, free: 13.47 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.3734, allocations: 179.5 kB / 493.1 MB, free: 13.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.3735, allocations: 125.7 kB / 493.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.409e-05/0.3736, allocations: 0 / 493.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3737, allocations: 356.2 kB / 493.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002818/0.374, allocations: 166.9 kB / 493.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002949/0.3743, allocations: 205.4 kB / 494 MB, free: 12.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/0.3746, allocations: 159.3 kB / 494.1 MB, free: 12.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3746, allocations: 0 / 494.1 MB, free: 12.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001075/0.3757, allocations: 0.5434 MB / 494.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3757, allocations: 12.06 kB / 494.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3757, allocations: 0 / 494.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009176/0.3766, allocations: 327.4 kB / 495 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000563/0.3772, allocations: 118.8 kB / 495.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007213/0.3844, allocations: 2.839 MB / 498 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008728/0.3853, allocations: 121 kB / 498.1 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.001e-05/0.3854, allocations: 11.38 kB / 498.1 MB, free: 9.328 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.0001958/0.3856, allocations: 112.9 kB / 498.2 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.288e-05/0.3857, allocations: 50.94 kB / 498.2 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.3859, allocations: 44.88 kB / 498.3 MB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.3859, allocations: 4 kB / 498.3 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.3859, allocations: 1.781 kB / 498.3 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/0.3859, allocations: 7.984 kB / 498.3 MB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006905/0.3866, allocations: 0.5454 MB / 498.8 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.3866, allocations: 3.984 kB / 498.9 MB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005366/0.3871, allocations: 112 kB / 499 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008256/0.388, allocations: 330 kB / 499.3 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.581e-05/0.388, allocations: 5.234 kB / 499.3 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006938/0.395, allocations: 2.84 MB / 0.4904 GB, free: 5.977 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.395, allocations: 3.984 kB / 0.4904 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001548/0.3966, allocations: 0.8344 MB / 0.4912 GB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002346/0.3968, allocations: 175.8 kB / 0.4913 GB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.927e-05/0.3969, allocations: 3.375 kB / 0.4913 GB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007023/0.3976, allocations: 103.9 kB / 0.4914 GB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.3977, allocations: 40.28 kB / 0.4915 GB, free: 5.141 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.264e-05/0.3978, allocations: 15.42 kB / 0.4915 GB, free: 5.129 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002738/0.3981, allocations: 249.8 kB / 0.4917 GB, free: 4.945 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005863/0.3987, allocations: 167.7 kB / 0.4919 GB, free: 4.781 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.0001967/0.3989, allocations: 106.4 kB / 0.492 GB, free: 4.672 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001378/0.4003, allocations: 0.5825 MB / 0.4926 GB, free: 4.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4003, allocations: 0 / 0.4926 GB, free: 4.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008618/0.4011, allocations: 385.5 kB / 0.4929 GB, free: 3.965 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003685/0.4015, allocations: 61.91 kB / 0.493 GB, free: 3.926 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002881/0.4044, allocations: 0.9333 MB / 0.4939 GB, free: 3.039 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005134/0.4049, allocations: 0.8623 MB / 0.4948 GB, free: 2.148 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.405, allocations: 0 / 0.4948 GB, free: 2.148 MB / 362.7 MB Notification: Performance of Templates: time 0.01627/0.4212, allocations: 10.63 MB / 0.5051 GB, free: 7.672 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