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.0009853/0.0009853, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.001427/0.001427, allocations: 177 kB / 17.56 MB, free: 6.18 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.569/1.569, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003034, allocations: 8.594 kB / 301.4 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1376, allocations: 50.4 MB / 351.8 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00402/0.1417, allocations: 3.693 MB / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001844/0.1435, allocations: 0.9856 MB / 356.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.1438, allocations: 8 kB / 356.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002221/0.144, allocations: 67.45 kB / 356.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003097/0.1443, allocations: 154.8 kB / 356.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004248/0.1447, allocations: 191.8 kB / 356.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006837/0.1454, allocations: 0.7509 MB / 357.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000311/0.1458, allocations: 153.7 kB / 357.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003848/0.1462, allocations: 259 kB / 358.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004123/0.1466, allocations: 302.7 kB / 358.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.265e-05/0.1467, allocations: 36 kB / 358.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.769e-05/0.1467, allocations: 36 kB / 358.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001117/0.1469, allocations: 115.4 kB / 358.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003032/0.1472, allocations: 304.2 kB / 358.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007584/0.1479, allocations: 0.7744 MB / 359.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1479, allocations: 0 / 359.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.148, allocations: 0 / 359.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.148, allocations: 8 kB / 359.6 MB, free: 11.61 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.00256/0.1505, allocations: 0.9877 MB / 360.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.1506, allocations: 8.031 kB / 360.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.1507, allocations: 60.22 kB / 360.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005675/0.1513, allocations: 413.9 kB / 361.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.262e-05/0.1514, allocations: 29.38 kB / 361.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.93e-05/0.1514, allocations: 36.38 kB / 361.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.1531, allocations: 0.6461 MB / 361.8 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.1531, allocations: 0 / 361.8 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.288e-05/0.1532, allocations: 16 kB / 361.8 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.1532, allocations: 8 kB / 361.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001989/0.1552, allocations: 0.7026 MB / 362.5 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003641/0.1588, allocations: 2.211 MB / 364.7 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003983/0.1628, allocations: 0.9916 MB / 365.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001085/0.1639, allocations: 436.3 kB / 366.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.792e-05/0.164, allocations: 12.25 kB / 366.2 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001241/0.1652, allocations: 470.7 kB / 366.6 MB, free: 4.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.795e-06/0.1653, allocations: 4 kB / 366.6 MB, free: 4.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01459/0.1799, allocations: 2.648 MB / 369.3 MB, free: 1.684 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.146e-05/0.18, allocations: 85.11 kB / 369.4 MB, free: 1.582 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005766/0.1806, allocations: 406 kB / 369.8 MB, free: 1.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.296e-05/0.1806, allocations: 33.7 kB / 369.8 MB, free: 1.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.1808, allocations: 236.6 kB / 370 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.181, allocations: 134.1 kB / 370.2 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.386e-05/0.1811, allocations: 37.7 kB / 370.2 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1812, allocations: 358.7 kB / 370.6 MB, free: 376 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.1822, allocations: 332.6 kB / 370.9 MB, free: 40 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2543/0.4366, allocations: 372.4 kB / 371.2 MB, free: 24.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002289/0.4389, allocations: 0.6699 MB / 371.9 MB, free: 24.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.439, allocations: 0 / 371.9 MB, free: 24.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004253/0.4432, allocations: 1.111 MB / 373 MB, free: 24.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.142e-05/0.4433, allocations: 33.45 kB / 373.1 MB, free: 24.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.4433, allocations: 0 / 373.1 MB, free: 24.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00149/0.4448, allocations: 423.5 kB / 373.5 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000571/0.4454, allocations: 105.5 kB / 373.6 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009425/0.4548, allocations: 3.502 MB / 377.1 MB, free: 22.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009375/0.4558, allocations: 111.2 kB / 377.2 MB, free: 22.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-05/0.4559, allocations: 13.84 kB / 377.2 MB, free: 22.91 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.0003278/0.4562, allocations: 175 kB / 377.4 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.881e-05/0.4563, allocations: 50.44 kB / 377.4 MB, free: 22.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001357/0.4565, allocations: 57.55 kB / 377.5 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.4565, allocations: 3.062 kB / 377.5 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.4565, allocations: 1.531 kB / 377.5 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.4565, allocations: 2.625 kB / 377.5 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009803/0.4575, allocations: 0.6038 MB / 378.1 MB, free: 22.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.4575, allocations: 3.938 kB / 378.1 MB, free: 22.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005235/0.458, allocations: 98.47 kB / 378.2 MB, free: 22.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001262/0.4593, allocations: 430.8 kB / 378.6 MB, free: 22.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/0.4594, allocations: 9.406 kB / 378.6 MB, free: 22.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008358/0.4677, allocations: 3.485 MB / 382.1 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.4678, allocations: 5.031 kB / 382.1 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006864/0.4747, allocations: 1.655 MB / 383.8 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003212/0.475, allocations: 180.5 kB / 383.9 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.238e-05/0.4751, allocations: 6.906 kB / 383.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006603/0.4758, allocations: 99.59 kB / 384 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.476, allocations: 49.72 kB / 384.1 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.256e-05/0.4761, allocations: 13.95 kB / 384.1 MB, free: 19.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004509/0.4765, allocations: 294.9 kB / 384.4 MB, free: 19.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4765, allocations: 0 / 384.4 MB, free: 19.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009095/0.4774, allocations: 171.8 kB / 384.6 MB, free: 19.16 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.0002176/0.4777, allocations: 115 kB / 384.7 MB, free: 19.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003342/0.481, allocations: 1.003 MB / 385.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.4811, allocations: 1.438 kB / 385.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/0.4829, allocations: 0.5976 MB / 386.3 MB, free: 18.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007045/0.4836, allocations: 84.12 kB / 386.4 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003843/0.4875, allocations: 1.467 MB / 387.8 MB, free: 17.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.4879, allocations: 0.8423 MB / 388.7 MB, free: 16.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003213/0.4882, allocations: 44.19 kB / 388.7 MB, free: 16.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.4884, allocations: 30.73 kB / 388.7 MB, free: 16.79 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4884, allocations: 0 / 388.7 MB, free: 16.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01992/0.5083, allocations: 12.69 MB / 401.4 MB, free: 6.844 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