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") [: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 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 182 kB / 8.136 MB, free: 2.207 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.173/1.173, allocations: 221.4 MB / 229.9 MB, free: 3.004 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.0008828/0.0008828, allocations: 93.72 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.624e-06/7.654e-06, allocations: 4 kB / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.182, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08599/0.268, allocations: 82.24 MB / 469.1 MB, free: 4.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.2683, allocations: 75.94 kB / 469.2 MB, free: 4.496 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02693/0.2952, allocations: 9.055 MB / 478.3 MB, free: 11.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.527e-05/0.2952, allocations: 12 kB / 478.3 MB, free: 11.43 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.002024/0.2973, allocations: 0.8982 MB / 479.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.2973, allocations: 8.031 kB / 479.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.2974, allocations: 68.09 kB / 479.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005302/0.298, allocations: 404.9 kB / 479.7 MB, free: 9.973 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.598e-05/0.298, allocations: 12 kB / 479.7 MB, free: 9.961 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.284e-05/0.2981, allocations: 20 kB / 479.7 MB, free: 9.941 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007638/0.2989, allocations: 381.5 kB / 480.1 MB, free: 9.566 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00072/0.2996, allocations: 432.7 kB / 480.5 MB, free: 9.121 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.2996, allocations: 0 / 480.5 MB, free: 9.121 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.535e-05/0.2997, allocations: 0 / 480.5 MB, free: 9.121 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.2997, allocations: 16.94 kB / 480.5 MB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00378/0.3035, allocations: 2.139 MB / 482.6 MB, free: 6.879 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004271/0.3039, allocations: 246.7 kB / 482.9 MB, free: 6.633 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004046/0.3043, allocations: 257.9 kB / 483.1 MB, free: 6.375 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.385e-05/0.3044, allocations: 8.312 kB / 483.1 MB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004457/0.3048, allocations: 287.1 kB / 483.4 MB, free: 6.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.723e-06/0.3049, allocations: 0 / 483.4 MB, free: 6.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001215/0.3061, allocations: 0.5251 MB / 483.9 MB, free: 5.535 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.086e-05/0.3061, allocations: 85.09 kB / 484 MB, free: 5.434 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003596/0.3065, allocations: 320.9 kB / 484.3 MB, free: 5.117 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.446e-05/0.3066, allocations: 25.7 kB / 484.4 MB, free: 5.086 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.3067, allocations: 184.4 kB / 484.5 MB, free: 4.898 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.3068, allocations: 130.1 kB / 484.7 MB, free: 4.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.184e-05/0.3068, allocations: 0 / 484.7 MB, free: 4.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.307, allocations: 358.8 kB / 485 MB, free: 4.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003045/0.3073, allocations: 160.8 kB / 485.2 MB, free: 4.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003472/0.3076, allocations: 201.9 kB / 485.4 MB, free: 4.043 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002832/0.3079, allocations: 158 kB / 485.5 MB, free: 3.891 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3079, allocations: 3.938 kB / 485.5 MB, free: 3.887 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001125/0.3091, allocations: 0.5489 MB / 486.1 MB, free: 3.328 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.3091, allocations: 7.906 kB / 486.1 MB, free: 3.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.3091, allocations: 0 / 486.1 MB, free: 3.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009332/0.31, allocations: 336.6 kB / 486.4 MB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005528/0.3106, allocations: 111.9 kB / 486.5 MB, free: 2.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007266/0.3179, allocations: 2.848 MB / 489.4 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000832/0.3187, allocations: 115.7 kB / 489.5 MB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.719e-05/0.3188, allocations: 8 kB / 489.5 MB, free: 15.79 MB / 378.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.0001813/0.319, allocations: 118.3 kB / 489.6 MB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.965e-05/0.3191, allocations: 47.44 kB / 489.7 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.3192, allocations: 44.36 kB / 489.7 MB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.3192, allocations: 4 kB / 489.7 MB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.3192, allocations: 0 / 489.7 MB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3192, allocations: 8 kB / 489.7 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006141/0.3199, allocations: 0.5525 MB / 490.3 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3199, allocations: 0 / 490.3 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000548/0.3204, allocations: 107.9 kB / 490.4 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008619/0.3213, allocations: 328.7 kB / 490.7 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.346e-05/0.3214, allocations: 4 kB / 490.7 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007103/0.3285, allocations: 2.846 MB / 493.5 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.3285, allocations: 4 kB / 493.5 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001665/0.3302, allocations: 0.8367 MB / 494.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002764/0.3305, allocations: 172.6 kB / 494.6 MB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.3306, allocations: 3.984 kB / 494.6 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007468/0.3313, allocations: 99.92 kB / 494.7 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.3315, allocations: 43.83 kB / 494.7 MB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.433e-05/0.3315, allocations: 12 kB / 494.7 MB, free: 10.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003327/0.3319, allocations: 255.2 kB / 495 MB, free: 10.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000592/0.3325, allocations: 167.8 kB / 495.1 MB, free: 9.98 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) * 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.0001902/0.3327, allocations: 103.2 kB / 495.2 MB, free: 9.871 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.3341, allocations: 0.5856 MB / 495.8 MB, free: 9.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3341, allocations: 0 / 495.8 MB, free: 9.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009028/0.335, allocations: 393.7 kB / 496.2 MB, free: 8.875 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.3354, allocations: 60.05 kB / 496.3 MB, free: 8.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.3383, allocations: 0.9293 MB / 497.2 MB, free: 7.863 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005361/0.3389, allocations: 0.8741 MB / 498.1 MB, free: 6.961 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3389, allocations: 0 / 498.1 MB, free: 6.961 MB / 378.7 MB Notification: Performance of Templates: time 0.1088/0.4477, allocations: 10.65 MB / 0.4968 GB, free: 137.3 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