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.001633/0.001633, allocations: 103.2 kB / 17.59 MB, free: 5.43 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.001941/0.001941, allocations: 191.3 kB / 18.52 MB, free: 4.508 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.355/1.355, allocations: 222.9 MB / 242.2 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 47.62 kB / 301.3 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09313/0.09435, allocations: 49.44 MB / 350.7 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005446/0.09984, allocations: 4.053 MB / 354.8 MB, free: 288 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00206/0.1019, allocations: 1.009 MB / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004744/0.1025, allocations: 12 kB / 355.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003255/0.1028, allocations: 83.14 kB / 355.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005858/0.1034, allocations: 174.5 kB / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005828/0.104, allocations: 219.6 kB / 356.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.1051, allocations: 0.8095 MB / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003548/0.1054, allocations: 181.1 kB / 357.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005355/0.106, allocations: 311 kB / 357.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005537/0.1065, allocations: 350.7 kB / 357.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000185/0.1067, allocations: 84 kB / 358 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001841/0.1069, allocations: 80 kB / 358.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.1071, allocations: 171.4 kB / 358.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004176/0.1075, allocations: 326.5 kB / 358.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007754/0.1083, allocations: 0.841 MB / 359.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1083, allocations: 0 / 359.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1083, allocations: 0 / 359.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.597e-05/0.1084, allocations: 0 / 359.4 MB, free: 11.65 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.002899/0.1113, allocations: 1.019 MB / 360.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.1113, allocations: 12.03 kB / 360.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.1115, allocations: 60.28 kB / 360.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005541/0.112, allocations: 413.9 kB / 360.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.964e-05/0.1121, allocations: 29.38 kB / 360.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.289e-05/0.1122, allocations: 36.38 kB / 360.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.1137, allocations: 0.5954 MB / 361.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.1137, allocations: 0 / 361.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.697e-05/0.1138, allocations: 16 kB / 361.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.1138, allocations: 8 kB / 361.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002/0.1158, allocations: 0.6245 MB / 362.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003867/0.1197, allocations: 2.16 MB / 364.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003904/0.1236, allocations: 0.8393 MB / 365.2 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.1247, allocations: 389.3 kB / 365.6 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.037e-05/0.1248, allocations: 12.27 kB / 365.6 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/0.1261, allocations: 422.3 kB / 366 MB, free: 4.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.885e-06/0.1261, allocations: 0 / 366 MB, free: 4.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01429/0.1404, allocations: 2.289 MB / 368.3 MB, free: 2.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.352e-05/0.1405, allocations: 89.09 kB / 368.4 MB, free: 2.367 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005721/0.1411, allocations: 406 kB / 368.8 MB, free: 1.965 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.953e-05/0.1412, allocations: 29.7 kB / 368.8 MB, free: 1.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002062/0.1414, allocations: 236.6 kB / 369 MB, free: 1.691 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.1415, allocations: 130.1 kB / 369.2 MB, free: 1.562 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001853/0.1417, allocations: 81.98 kB / 369.2 MB, free: 1.473 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.1419, allocations: 354.7 kB / 369.6 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009723/0.1429, allocations: 292.6 kB / 369.9 MB, free: 0.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009834/0.1439, allocations: 330 kB / 370.2 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1649/0.3088, allocations: 0.5826 MB / 370.8 MB, free: 26.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.3088, allocations: 0.8438 kB / 370.8 MB, free: 26.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004228/0.3131, allocations: 0.9674 MB / 371.7 MB, free: 26.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.241e-05/0.3131, allocations: 36.91 kB / 371.8 MB, free: 26.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.3132, allocations: 5.062 kB / 371.8 MB, free: 26.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001362/0.3145, allocations: 394.3 kB / 372.2 MB, free: 26.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005618/0.3151, allocations: 89.03 kB / 372.3 MB, free: 26.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008616/0.3238, allocations: 3.668 MB / 375.9 MB, free: 23.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007817/0.3246, allocations: 87.23 kB / 376 MB, free: 23.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.387e-05/0.3247, allocations: 16.53 kB / 376 MB, free: 23.82 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.000288/0.325, allocations: 177 kB / 376.2 MB, free: 23.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.3251, allocations: 45.28 kB / 376.2 MB, free: 23.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001402/0.3252, allocations: 60.02 kB / 376.3 MB, free: 23.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.3252, allocations: 5.5 kB / 376.3 MB, free: 23.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3252, allocations: 0.7969 kB / 376.3 MB, free: 23.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3253, allocations: 2.969 kB / 376.3 MB, free: 23.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000749/0.326, allocations: 0.6125 MB / 376.9 MB, free: 23.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.326, allocations: 0.75 kB / 376.9 MB, free: 23.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005483/0.3266, allocations: 88.39 kB / 377 MB, free: 23.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.3278, allocations: 399 kB / 377.4 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.14e-05/0.3279, allocations: 9.188 kB / 377.4 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008003/0.3359, allocations: 3.664 MB / 381.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3359, allocations: 0.7812 kB / 381.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006058/0.342, allocations: 1.458 MB / 382.5 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.3423, allocations: 177.1 kB / 382.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.3425, allocations: 7.359 kB / 382.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006343/0.3431, allocations: 79.92 kB / 382.8 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.3433, allocations: 48 kB / 382.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.079e-05/0.3434, allocations: 10.59 kB / 382.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003545/0.3437, allocations: 290.8 kB / 383.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3437, allocations: 0 / 383.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000715/0.3444, allocations: 178.9 kB / 383.3 MB, free: 19.86 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.0001619/0.3446, allocations: 109.7 kB / 383.4 MB, free: 19.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002848/0.3475, allocations: 0.941 MB / 384.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3475, allocations: 0 / 384.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00159/0.3491, allocations: 0.5579 MB / 384.9 MB, free: 19.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006113/0.3497, allocations: 82.52 kB / 385 MB, free: 19.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003281/0.353, allocations: 1.249 MB / 386.2 MB, free: 18.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.3533, allocations: 0.8388 MB / 387.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001556/0.3535, allocations: 33.94 kB / 387.1 MB, free: 17.65 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3535, allocations: 0 / 387.1 MB, free: 17.65 MB / 302.1 MB Notification: Performance of Templates: time 0.0128/0.3663, allocations: 9.854 MB / 397 MB, free: 11.85 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/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