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.001144/0.001144, allocations: 112.5 kB / 17.7 MB, free: 5.426 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.001261/0.001262, allocations: 183 kB / 18.62 MB, free: 4.5 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.373/1.373, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001099, allocations: 50.31 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.101, allocations: 49.44 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004848/0.1059, allocations: 4.041 MB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001824/0.1078, allocations: 1.013 MB / 356.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002398/0.108, allocations: 8 kB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002388/0.1083, allocations: 83.14 kB / 356.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003123/0.1086, allocations: 182.4 kB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000456/0.1091, allocations: 215.6 kB / 357 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007313/0.1098, allocations: 0.8056 MB / 357.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002865/0.1101, allocations: 176.8 kB / 358 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000359/0.1105, allocations: 318.9 kB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003966/0.1109, allocations: 362.5 kB / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.111, allocations: 84 kB / 358.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.1111, allocations: 83.94 kB / 358.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.1113, allocations: 155.5 kB / 359 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002837/0.1116, allocations: 330.5 kB / 359.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007244/0.1123, allocations: 0.8411 MB / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.1123, allocations: 0 / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1123, allocations: 0 / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.1123, allocations: 0 / 360.2 MB, free: 10.98 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.00278/0.1151, allocations: 1.022 MB / 361.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1152, allocations: 11.89 kB / 361.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.1153, allocations: 60.28 kB / 361.3 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006455/0.116, allocations: 417.9 kB / 361.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.116, allocations: 29.38 kB / 361.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.067e-05/0.1161, allocations: 40.38 kB / 361.7 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.1175, allocations: 0.5953 MB / 362.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.1176, allocations: 0 / 362.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.224e-05/0.1176, allocations: 19.98 kB / 362.3 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.1176, allocations: 19.94 kB / 362.4 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001837/0.1195, allocations: 0.6205 MB / 363 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004006/0.1235, allocations: 2.149 MB / 365.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00389/0.1274, allocations: 0.8354 MB / 366 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.1285, allocations: 392.2 kB / 366.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.378e-05/0.1285, allocations: 16.31 kB / 366.4 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001097/0.1297, allocations: 422.7 kB / 366.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.274e-06/0.1297, allocations: 0 / 366.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01426/0.1439, allocations: 2.289 MB / 369.1 MB, free: 1.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/0.144, allocations: 85.11 kB / 369.2 MB, free: 1.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005447/0.1446, allocations: 402 kB / 369.5 MB, free: 1.285 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.835e-05/0.1447, allocations: 33.7 kB / 369.6 MB, free: 1.246 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.1449, allocations: 236.6 kB / 369.8 MB, free: 1.008 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.145, allocations: 134.1 kB / 369.9 MB, free: 0.875 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.1452, allocations: 74 kB / 370 MB, free: 0.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1454, allocations: 358.7 kB / 370.4 MB, free: 444 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00091/0.1463, allocations: 292.6 kB / 370.7 MB, free: 152 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1674/0.3137, allocations: 324.8 kB / 371 MB, free: 25.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002018/0.3157, allocations: 0.5796 MB / 371.5 MB, free: 25.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3158, allocations: 0.625 kB / 371.5 MB, free: 25.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003762/0.3195, allocations: 0.9767 MB / 372.5 MB, free: 25.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.279e-05/0.3196, allocations: 33 kB / 372.6 MB, free: 25.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.3196, allocations: 1.188 kB / 372.6 MB, free: 25.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00131/0.3209, allocations: 402.2 kB / 373 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005081/0.3215, allocations: 80.61 kB / 373 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00824/0.3297, allocations: 3.669 MB / 376.7 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000712/0.3304, allocations: 88.66 kB / 376.8 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.256e-05/0.3305, allocations: 15.81 kB / 376.8 MB, free: 23.39 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.0002382/0.3308, allocations: 175.5 kB / 377 MB, free: 23.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.964e-05/0.3309, allocations: 45.09 kB / 377 MB, free: 23.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.331, allocations: 57.7 kB / 377.1 MB, free: 23.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.331, allocations: 6.75 kB / 377.1 MB, free: 23.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.331, allocations: 1.469 kB / 377.1 MB, free: 23.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.331, allocations: 1.875 kB / 377.1 MB, free: 23.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007706/0.3318, allocations: 0.6086 MB / 377.7 MB, free: 22.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.3318, allocations: 0 / 377.7 MB, free: 22.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004971/0.3323, allocations: 84.73 kB / 377.8 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001177/0.3335, allocations: 400.9 kB / 378.2 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.773e-05/0.3336, allocations: 12.41 kB / 378.2 MB, free: 22.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007885/0.3415, allocations: 3.662 MB / 381.8 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3415, allocations: 5.875 kB / 381.8 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006031/0.3476, allocations: 1.446 MB / 383.3 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002889/0.3479, allocations: 180.2 kB / 383.5 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.348, allocations: 19.62 kB / 383.5 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006426/0.3486, allocations: 69.53 kB / 383.6 MB, free: 19.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002268/0.3489, allocations: 50.2 kB / 383.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.649e-05/0.349, allocations: 20.48 kB / 383.6 MB, free: 19.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005633/0.3495, allocations: 290.9 kB / 383.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3495, allocations: 0 / 383.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009831/0.3505, allocations: 171.1 kB / 384.1 MB, free: 19.44 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.0002113/0.3508, allocations: 113.5 kB / 384.2 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002996/0.3538, allocations: 0.9215 MB / 385.1 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.3538, allocations: 1.188 kB / 385.1 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001547/0.3553, allocations: 0.555 MB / 385.7 MB, free: 18.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005185/0.3559, allocations: 86.03 kB / 385.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.3593, allocations: 1.21 MB / 387 MB, free: 18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.3596, allocations: 0.8328 MB / 387.8 MB, free: 17.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002929/0.3599, allocations: 46.05 kB / 387.8 MB, free: 17.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.3601, allocations: 36.72 kB / 387.9 MB, free: 17.26 MB / 302.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3601, allocations: 0 / 387.9 MB, free: 17.26 MB / 302.1 MB Notification: Performance of Templates: time 0.431/0.7911, allocations: 13.76 MB / 401.6 MB, free: 7.082 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 -s gbode -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