Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.001654/0.001659, allocations: 181.2 kB / 8.151 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.682/1.682, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001307/0.001306, allocations: 96.28 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.27e-05/1.284e-05, allocations: 0 / 314.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2456, allocations: 47.57 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1232/0.3689, allocations: 79.6 MB / 441.4 MB, free: 6.445 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.3693, allocations: 72.45 kB / 441.5 MB, free: 6.375 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.04231/0.4116, allocations: 8.31 MB / 449.8 MB, free: 14.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.513e-05/0.4117, allocations: 19.98 kB / 449.8 MB, free: 14.05 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003319/0.415, allocations: 0.8558 MB / 450.7 MB, free: 13.15 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.4151, allocations: 12.03 kB / 450.7 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001966/0.4153, allocations: 59.25 kB / 450.8 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008337/0.4162, allocations: 379.5 kB / 451.1 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.4162, allocations: 12 kB / 451.1 MB, free: 12.65 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.4163, allocations: 28 kB / 451.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001256/0.4176, allocations: 361.5 kB / 451.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.4188, allocations: 411.9 kB / 451.9 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.4188, allocations: 4 kB / 451.9 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.203e-05/0.4189, allocations: 3.938 kB / 451.9 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.4189, allocations: 11.98 kB / 452 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006225/0.4252, allocations: 1.989 MB / 453.9 MB, free: 9.762 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007265/0.426, allocations: 241 kB / 454.2 MB, free: 9.523 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006792/0.4266, allocations: 249.2 kB / 454.4 MB, free: 9.277 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.299e-05/0.4267, allocations: 4 kB / 454.4 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007066/0.4274, allocations: 271.6 kB / 454.7 MB, free: 8.992 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 4.909e-06/0.4275, allocations: 0 / 454.7 MB, free: 8.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.002197/0.4297, allocations: 0.5181 MB / 455.2 MB, free: 8.465 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.4297, allocations: 89.09 kB / 455.3 MB, free: 8.359 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005813/0.4303, allocations: 306 kB / 455.6 MB, free: 8.055 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.424e-05/0.4304, allocations: 25.7 kB / 455.6 MB, free: 8.023 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.4306, allocations: 223 kB / 455.8 MB, free: 7.805 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.4308, allocations: 122.2 kB / 456 MB, free: 7.684 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-05/0.4308, allocations: 0.6562 kB / 456 MB, free: 7.684 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.431, allocations: 322.8 kB / 456.3 MB, free: 7.359 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005276/0.4315, allocations: 156.8 kB / 456.4 MB, free: 7.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005942/0.4321, allocations: 197.9 kB / 456.6 MB, free: 7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004975/0.4326, allocations: 157.9 kB / 456.8 MB, free: 6.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.4327, allocations: 0 / 456.8 MB, free: 6.848 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001935/0.4346, allocations: 0.5022 MB / 457.3 MB, free: 6.336 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.4346, allocations: 5.969 kB / 457.3 MB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.4347, allocations: 7.938 kB / 457.3 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001509/0.4362, allocations: 340.2 kB / 457.6 MB, free: 5.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009421/0.4371, allocations: 99.92 kB / 457.7 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01281/0.45, allocations: 2.807 MB / 460.5 MB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.4512, allocations: 115.7 kB / 460.6 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.712e-05/0.4513, allocations: 12 kB / 460.6 MB, free: 2.848 MB / 346.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.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.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.0002247/0.4515, allocations: 40.98 kB / 460.7 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.4517, allocations: 39.53 kB / 460.7 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002052/0.4519, allocations: 56.33 kB / 460.8 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.4519, allocations: 7.984 kB / 460.8 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.452, allocations: 0 / 460.8 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.452, allocations: 0 / 460.8 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/0.453, allocations: 0.5253 MB / 461.3 MB, free: 2.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.453, allocations: 0 / 461.3 MB, free: 2.141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009016/0.4539, allocations: 95.88 kB / 461.4 MB, free: 2.047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001515/0.4555, allocations: 336.5 kB / 461.7 MB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.693e-05/0.4555, allocations: 0 / 461.7 MB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01294/0.4685, allocations: 2.846 MB / 464.6 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.4685, allocations: 0 / 464.6 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002942/0.4715, allocations: 0.8059 MB / 465.4 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004192/0.472, allocations: 169.4 kB / 465.6 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/0.4721, allocations: 4 kB / 465.6 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.4734, allocations: 87.92 kB / 465.6 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.4736, allocations: 35.94 kB / 465.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.288e-05/0.4737, allocations: 8 kB / 465.7 MB, free: 13.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0004342/0.4741, allocations: 244.6 kB / 465.9 MB, free: 13.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007412/0.4749, allocations: 147.7 kB / 466.1 MB, free: 13.23 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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.0002496/0.4751, allocations: 116 kB / 466.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002318/0.4775, allocations: 0.5565 MB / 466.7 MB, free: 12.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/0.4775, allocations: 8.062 kB / 466.7 MB, free: 12.53 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.4791, allocations: 377.2 kB / 467.1 MB, free: 12.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006678/0.4798, allocations: 60.3 kB / 467.2 MB, free: 12.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005026/0.4849, allocations: 0.9277 MB / 468.1 MB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007514/0.4857, allocations: 0.8701 MB / 469 MB, free: 10.22 MB / 362.7 MB Notification: Performance of SimCode: time 1.353e-06/0.4857, allocations: 0 / 469 MB, free: 10.22 MB / 362.7 MB Notification: Performance of Templates: time 0.01854/0.5042, allocations: 8.557 MB / 477.5 MB, free: 1.707 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches