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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002107/0.002107, allocations: 113.1 kB / 16.51 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002586/0.002586, allocations: 198.7 kB / 17.43 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 222.9 MB / 241.1 MB, free: 15.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 51.31 kB / 299.9 MB, free: 6.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1338, allocations: 49.44 MB / 349.4 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006375/0.1402, allocations: 4.08 MB / 353.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.1428, allocations: 1.005 MB / 354.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006562/0.1434, allocations: 7.938 kB / 354.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004132/0.1439, allocations: 63.52 kB / 354.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007574/0.1447, allocations: 154.8 kB / 354.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006337/0.1454, allocations: 195.8 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009689/0.1464, allocations: 0.7509 MB / 355.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003912/0.1468, allocations: 157.7 kB / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004374/0.1472, allocations: 266.9 kB / 356.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003961/0.1476, allocations: 322.7 kB / 356.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.019e-05/0.1477, allocations: 40 kB / 356.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.1478, allocations: 40 kB / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.148, allocations: 123.4 kB / 356.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003408/0.1483, allocations: 286.5 kB / 356.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007797/0.1491, allocations: 0.7981 MB / 357.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1491, allocations: 0 / 357.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1491, allocations: 3.938 kB / 357.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.1492, allocations: 0 / 357.6 MB, free: 12.53 MB / 302.1 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.002873/0.152, allocations: 1.019 MB / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/0.1521, allocations: 8.031 kB / 358.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.1523, allocations: 64.22 kB / 358.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006301/0.1529, allocations: 417.8 kB / 359.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.153, allocations: 29.38 kB / 359.2 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.719e-05/0.1531, allocations: 36.38 kB / 359.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.1545, allocations: 0.5993 MB / 359.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.1546, allocations: 3.938 kB / 359.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.582e-05/0.1546, allocations: 16 kB / 359.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.1546, allocations: 8 kB / 359.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00186/0.1565, allocations: 0.6206 MB / 360.5 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003931/0.1605, allocations: 2.16 MB / 362.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003957/0.1644, allocations: 0.8417 MB / 363.5 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.1655, allocations: 397.3 kB / 363.8 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.967e-05/0.1656, allocations: 4.328 kB / 363.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001244/0.1668, allocations: 418.3 kB / 364.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.635e-06/0.1668, allocations: 0 / 364.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01525/0.1821, allocations: 2.293 MB / 366.6 MB, free: 3.348 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.468e-05/0.1822, allocations: 85.09 kB / 366.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006719/0.1829, allocations: 406 kB / 367 MB, free: 2.844 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001061/0.183, allocations: 33.7 kB / 367.1 MB, free: 2.805 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002744/0.1833, allocations: 236.6 kB / 367.3 MB, free: 2.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002079/0.1835, allocations: 130.1 kB / 367.4 MB, free: 2.438 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.1838, allocations: 74.05 kB / 367.5 MB, free: 2.355 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002306/0.184, allocations: 358.7 kB / 367.8 MB, free: 1.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009648/0.185, allocations: 288.6 kB / 368.1 MB, free: 1.715 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009537/0.186, allocations: 330.1 kB / 368.4 MB, free: 1.387 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001741/0.1877, allocations: 0.5835 MB / 369 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.1877, allocations: 0 / 369 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.2145/0.4023, allocations: 0.9713 MB / 370 MB, free: 25.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.504e-05/0.4024, allocations: 32.42 kB / 370 MB, free: 25.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.4024, allocations: 0.75 kB / 370 MB, free: 25.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001472/0.4039, allocations: 394.7 kB / 370.4 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006492/0.4045, allocations: 92.23 kB / 370.5 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0087/0.4132, allocations: 3.317 MB / 373.8 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008759/0.4141, allocations: 91.3 kB / 373.9 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.868e-05/0.4142, allocations: 15.97 kB / 373.9 MB, free: 24.22 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002933/0.4145, allocations: 167.1 kB / 374.1 MB, free: 24.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.577e-05/0.4146, allocations: 48.25 kB / 374.1 MB, free: 24.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.4147, allocations: 60.91 kB / 374.2 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.4148, allocations: 4.875 kB / 374.2 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4148, allocations: 1.375 kB / 374.2 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.4148, allocations: 1.875 kB / 374.2 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008574/0.4156, allocations: 0.6015 MB / 374.8 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.4157, allocations: 0.7969 kB / 374.8 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004902/0.4162, allocations: 91.58 kB / 374.9 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/0.4173, allocations: 403.3 kB / 375.3 MB, free: 23.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.052e-05/0.4174, allocations: 12.84 kB / 375.3 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008011/0.4254, allocations: 3.307 MB / 378.6 MB, free: 21.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4255, allocations: 1.781 kB / 378.6 MB, free: 21.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00689/0.4324, allocations: 1.458 MB / 380.1 MB, free: 20.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005346/0.433, allocations: 179.9 kB / 380.3 MB, free: 20.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.4331, allocations: 7.719 kB / 380.3 MB, free: 20.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006845/0.4338, allocations: 75.09 kB / 380.3 MB, free: 20.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/0.4341, allocations: 50.58 kB / 380.4 MB, free: 20.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.134e-05/0.4342, allocations: 13.66 kB / 380.4 MB, free: 20.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005725/0.4348, allocations: 290.1 kB / 380.7 MB, free: 20.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.4348, allocations: 1.125 kB / 380.7 MB, free: 20.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009749/0.4358, allocations: 166.8 kB / 380.8 MB, free: 20.59 MB / 302.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002372/0.436, allocations: 117 kB / 381 MB, free: 20.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002905/0.4389, allocations: 0.9203 MB / 381.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4389, allocations: 0 / 381.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/0.4406, allocations: 0.55 MB / 382.4 MB, free: 19.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006604/0.4413, allocations: 92.56 kB / 382.5 MB, free: 19.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003656/0.445, allocations: 1.363 MB / 383.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.4454, allocations: 0.8384 MB / 384.7 MB, free: 18.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003017/0.4457, allocations: 45.86 kB / 384.8 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.4458, allocations: 28.06 kB / 384.8 MB, free: 18.25 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4458, allocations: 1 kB / 384.8 MB, free: 18.25 MB / 302.1 MB Notification: Performance of Templates: time 0.02081/0.4666, allocations: 12.81 MB / 397.6 MB, free: 10.32 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches