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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009415/0.0009415, allocations: 98.03 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 43.95 kB / 350 MB, free: 64 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3802, allocations: 49.43 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004969/0.3852, allocations: 4.071 MB / 403.5 MB, free: 29.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001839/0.3871, allocations: 1.009 MB / 404.6 MB, free: 28.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002372/0.3874, allocations: 4 kB / 404.6 MB, free: 28.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002265/0.3876, allocations: 71.44 kB / 404.6 MB, free: 28.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.3879, allocations: 154.8 kB / 404.8 MB, free: 28.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004665/0.3884, allocations: 187.8 kB / 405 MB, free: 27.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005938/0.389, allocations: 0.7588 MB / 405.7 MB, free: 27.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002864/0.3893, allocations: 166.9 kB / 405.9 MB, free: 26.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003282/0.3896, allocations: 267 kB / 406.1 MB, free: 26.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003046/0.3899, allocations: 326.6 kB / 406.5 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.861e-05/0.39, allocations: 40 kB / 406.5 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.772e-05/0.3901, allocations: 43.94 kB / 406.6 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.845e-05/0.3902, allocations: 119.5 kB / 406.7 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002201/0.3904, allocations: 286.5 kB / 406.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005092/0.391, allocations: 0.7943 MB / 407.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.391, allocations: 0 / 407.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.391, allocations: 0 / 407.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.391, allocations: 3.938 kB / 407.7 MB, free: 25.07 MB / 298.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.00236/0.3934, allocations: 1.015 MB / 408.8 MB, free: 24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.3934, allocations: 12.03 kB / 408.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.3935, allocations: 60.19 kB / 408.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004578/0.394, allocations: 410 kB / 409.2 MB, free: 23.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.413e-05/0.3941, allocations: 29.38 kB / 409.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.477e-05/0.3941, allocations: 36.38 kB / 409.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.3954, allocations: 0.5993 MB / 409.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.3954, allocations: 0 / 409.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.714e-05/0.3955, allocations: 16 kB / 409.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.3955, allocations: 8 kB / 409.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.3971, allocations: 0.6283 MB / 410.5 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003047/0.4002, allocations: 2.16 MB / 412.7 MB, free: 19.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003386/0.4036, allocations: 0.84 MB / 413.5 MB, free: 19.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008958/0.4045, allocations: 389.3 kB / 413.9 MB, free: 18.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.668e-05/0.4046, allocations: 4.328 kB / 413.9 MB, free: 18.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001063/0.4057, allocations: 422.3 kB / 414.3 MB, free: 18.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 3.005e-06/0.4057, allocations: 0 / 414.3 MB, free: 18.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.0125/0.4182, allocations: 2.281 MB / 416.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.51e-05/0.4183, allocations: 81.11 kB / 416.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004135/0.4187, allocations: 417.9 kB / 417.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.797e-05/0.4187, allocations: 33.7 kB / 417.1 MB, free: 15.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.4189, allocations: 228.6 kB / 417.4 MB, free: 15.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.159e-05/0.419, allocations: 134 kB / 417.5 MB, free: 15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.4191, allocations: 70.06 kB / 417.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.011e-05/0.4192, allocations: 362.7 kB / 417.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008117/0.42, allocations: 284.6 kB / 418.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008142/0.4208, allocations: 338.1 kB / 418.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001527/0.4224, allocations: 0.5795 MB / 419.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4224, allocations: 4 kB / 419.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003098/0.4255, allocations: 0.9821 MB / 420.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.962e-05/0.4255, allocations: 33.69 kB / 420.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.4256, allocations: 3.938 kB / 420.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.4266, allocations: 395.3 kB / 420.5 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004316/0.4271, allocations: 95.84 kB / 420.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006502/0.4336, allocations: 3.318 MB / 423.9 MB, free: 8.375 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007107/0.4343, allocations: 91.64 kB / 424 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.476e-05/0.4344, allocations: 12 kB / 424 MB, free: 8.273 MB / 298.7 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.0002393/0.4346, allocations: 165.8 kB / 424.2 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.161e-05/0.4347, allocations: 51.38 kB / 424.2 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.4348, allocations: 56.45 kB / 424.3 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.4348, allocations: 8 kB / 424.3 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.4349, allocations: 0 / 424.3 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.4349, allocations: 4 kB / 424.3 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005195/0.4354, allocations: 0.6029 MB / 424.9 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.4354, allocations: 7.984 kB / 424.9 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004326/0.4358, allocations: 87.86 kB / 425 MB, free: 7.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009895/0.4368, allocations: 389.5 kB / 425.4 MB, free: 6.852 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.572e-05/0.4369, allocations: 11.98 kB / 425.4 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0066/0.4435, allocations: 3.311 MB / 428.7 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4436, allocations: 4 kB / 428.7 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04664/0.4902, allocations: 12.57 MB / 441.3 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002468/0.4905, allocations: 180.4 kB / 441.5 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.441e-05/0.4906, allocations: 11.94 kB / 441.5 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006076/0.4912, allocations: 75.91 kB / 441.5 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.4915, allocations: 47.92 kB / 441.6 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.186e-05/0.4915, allocations: 12 kB / 441.6 MB, free: 6.191 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003822/0.4919, allocations: 291.1 kB / 441.9 MB, free: 5.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4919, allocations: 4 kB / 441.9 MB, free: 5.906 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009381/0.4929, allocations: 259.8 kB / 442.1 MB, free: 5.652 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,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.000237/0.4931, allocations: 118.7 kB / 442.3 MB, free: 5.527 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002772/0.4959, allocations: 0.9188 MB / 443.2 MB, free: 4.582 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.4959, allocations: 4 kB / 443.2 MB, free: 4.578 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001549/0.4975, allocations: 0.553 MB / 443.7 MB, free: 4.012 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000538/0.498, allocations: 73.47 kB / 443.8 MB, free: 3.941 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004111/0.5021, allocations: 1.857 MB / 445.7 MB, free: 2.031 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000454/0.5026, allocations: 0.855 MB / 446.5 MB, free: 1.148 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003008/0.5029, allocations: 51.38 kB / 446.6 MB, free: 1.098 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.5031, allocations: 27.44 kB / 446.6 MB, free: 1.07 MB / 314.7 MB Notification: Performance of SimCode: time 7.61e-07/0.5031, allocations: 0 / 446.6 MB, free: 1.07 MB / 314.7 MB Notification: Performance of Templates: time 0.03185/0.5349, allocations: 19.23 MB / 465.8 MB, free: 13.89 MB / 346.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@2/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