Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00131/0.00131, allocations: 176.1 kB / 8.476 MB, free: 1.883 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.232/1.232, allocations: 205.2 MB / 214.1 MB, free: 5.102 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009231/0.0009232, allocations: 83.33 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.482e-06/6.592e-06, allocations: 0 / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07613/0.07616, allocations: 47.58 MB / 362.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2515/0.3277, allocations: 79.59 MB / 442.1 MB, free: 10.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000197/0.328, allocations: 71.97 kB / 442.2 MB, free: 10.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02327/0.3512, allocations: 8.316 MB / 450.5 MB, free: 8.719 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.373e-05/0.3513, allocations: 13.8 kB / 450.5 MB, free: 8.715 MB / 314.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.001754/0.353, allocations: 0.862 MB / 451.4 MB, free: 8.098 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3531, allocations: 7.688 kB / 451.4 MB, free: 8.098 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.3532, allocations: 58.03 kB / 451.5 MB, free: 8.066 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004604/0.3537, allocations: 384.3 kB / 451.8 MB, free: 7.785 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.3537, allocations: 11.56 kB / 451.9 MB, free: 7.785 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.764e-05/0.3538, allocations: 19.28 kB / 451.9 MB, free: 7.785 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006189/0.3544, allocations: 365.4 kB / 452.2 MB, free: 7.777 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005849/0.355, allocations: 412.8 kB / 452.6 MB, free: 7.629 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.355, allocations: 0 / 452.6 MB, free: 7.629 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.459e-05/0.3551, allocations: 0 / 452.6 MB, free: 7.629 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.3551, allocations: 14.91 kB / 452.6 MB, free: 7.625 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002997/0.3581, allocations: 1.991 MB / 454.6 MB, free: 6.504 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000351/0.3585, allocations: 242.1 kB / 454.9 MB, free: 6.473 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000332/0.3588, allocations: 241.6 kB / 455.1 MB, free: 6.465 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.25e-05/0.3589, allocations: 14.5 kB / 455.1 MB, free: 6.461 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003652/0.3593, allocations: 272.7 kB / 455.4 MB, free: 6.355 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 1.703e-06/0.3593, allocations: 0 / 455.4 MB, free: 6.355 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.001272/0.3605, allocations: 0.5133 MB / 455.9 MB, free: 6.234 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.3606, allocations: 88.77 kB / 456 MB, free: 6.137 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003314/0.3609, allocations: 310.4 kB / 456.3 MB, free: 6.008 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.396e-05/0.361, allocations: 25.7 kB / 456.3 MB, free: 5.977 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.141e-05/0.3611, allocations: 176.8 kB / 456.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.185e-05/0.3612, allocations: 116.9 kB / 456.6 MB, free: 5.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.191e-05/0.3612, allocations: 3.969 kB / 456.6 MB, free: 5.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.592e-05/0.3613, allocations: 352.2 kB / 457 MB, free: 5.422 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002512/0.3616, allocations: 158.6 kB / 457.1 MB, free: 5.414 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002613/0.3618, allocations: 200.5 kB / 457.3 MB, free: 5.375 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002376/0.3621, allocations: 153.8 kB / 457.5 MB, free: 5.355 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3621, allocations: 0 / 457.5 MB, free: 5.355 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009496/0.363, allocations: 0.5387 MB / 458 MB, free: 5.242 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.3631, allocations: 3.812 kB / 458 MB, free: 5.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3631, allocations: 0 / 458 MB, free: 5.242 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008605/0.3639, allocations: 339.5 kB / 458.3 MB, free: 5.156 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004975/0.3644, allocations: 103.5 kB / 458.4 MB, free: 5.129 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006944/0.3714, allocations: 2.839 MB / 461.3 MB, free: 3.582 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007839/0.3722, allocations: 105.1 kB / 461.4 MB, free: 3.539 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.804e-05/0.3723, allocations: 16.48 kB / 461.4 MB, free: 3.535 MB / 314.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.0001654/0.3724, allocations: 114.1 kB / 461.5 MB, free: 3.422 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.604e-05/0.3725, allocations: 43 kB / 461.5 MB, free: 3.398 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001248/0.3727, allocations: 44.78 kB / 461.6 MB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3727, allocations: 4 kB / 461.6 MB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3727, allocations: 1.312 kB / 461.6 MB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3727, allocations: 3.984 kB / 461.6 MB, free: 3.383 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005447/0.3732, allocations: 0.5262 MB / 462.1 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.3733, allocations: 0 / 462.1 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004813/0.3737, allocations: 96.45 kB / 462.2 MB, free: 3.059 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008455/0.3746, allocations: 331.5 kB / 462.5 MB, free: 2.98 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.059e-05/0.3746, allocations: 6.578 kB / 462.5 MB, free: 2.977 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006965/0.3816, allocations: 2.85 MB / 465.4 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.3816, allocations: 4.484 kB / 465.4 MB, free: 1.426 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001754/0.3834, allocations: 0.7927 MB / 466.2 MB, free: 1.266 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002736/0.3837, allocations: 166.8 kB / 466.4 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.247e-05/0.3838, allocations: 2.781 kB / 466.4 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007098/0.3845, allocations: 93.05 kB / 466.4 MB, free: 1.098 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.3847, allocations: 41.67 kB / 466.5 MB, free: 1.078 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.604e-05/0.3847, allocations: 12 kB / 466.5 MB, free: 1.078 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.000368/0.3851, allocations: 234 kB / 466.7 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008495/0.386, allocations: 156 kB / 466.9 MB, free: 0.9688 MB / 314.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.0002356/0.3862, allocations: 113.2 kB / 467 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001407/0.3876, allocations: 0.5657 MB / 467.6 MB, free: 16.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3876, allocations: 0 / 467.6 MB, free: 16.7 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008765/0.3885, allocations: 375.9 kB / 467.9 MB, free: 16.56 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.3889, allocations: 72.98 kB / 468 MB, free: 16.53 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002897/0.3918, allocations: 0.8838 MB / 468.9 MB, free: 16.08 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005215/0.3924, allocations: 0.8643 MB / 469.7 MB, free: 15.3 MB / 330.7 MB Notification: Performance of SimCode: time 9.21e-07/0.3924, allocations: 0 / 469.7 MB, free: 15.3 MB / 330.7 MB Notification: Performance of Templates: time 0.01743/0.4098, allocations: 10.21 MB / 480 MB, free: 8.434 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches