Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001326/0.001326, allocations: 109 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00156/0.00156, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001366, allocations: 64.48 kB / 306.3 MB, free: 1.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1247, allocations: 50.55 MB / 356.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.008536/0.1333, allocations: 4.124 MB / 360.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003393/0.1367, allocations: 1.06 MB / 362 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007008/0.1375, allocations: 4 kB / 362 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004661/0.138, allocations: 67.45 kB / 362.1 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007693/0.1388, allocations: 158.7 kB / 362.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009225/0.1398, allocations: 191.8 kB / 362.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.141, allocations: 0.7704 MB / 363.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004616/0.1415, allocations: 145.8 kB / 363.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007457/0.1423, allocations: 282.9 kB / 363.6 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006014/0.1429, allocations: 318.6 kB / 363.9 MB, free: 7.367 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.143, allocations: 43.94 kB / 363.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.1432, allocations: 44 kB / 364 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001827/0.1434, allocations: 123.5 kB / 364.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004469/0.1439, allocations: 290.5 kB / 364.4 MB, free: 6.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001089/0.145, allocations: 0.8059 MB / 365.2 MB, free: 6.066 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/0.145, allocations: 4 kB / 365.2 MB, free: 6.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.145, allocations: 0 / 365.2 MB, free: 6.062 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.719e-05/0.145, allocations: 0 / 365.2 MB, free: 6.062 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.004307/0.1494, allocations: 1.042 MB / 366.2 MB, free: 4.961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.036e-05/0.1495, allocations: 8.031 kB / 366.3 MB, free: 4.953 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004153/0.1499, allocations: 76.11 kB / 366.3 MB, free: 4.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00088/0.1508, allocations: 417.9 kB / 366.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.088e-05/0.1509, allocations: 29.38 kB / 366.8 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.151, allocations: 40.31 kB / 366.8 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002293/0.1533, allocations: 0.6071 MB / 367.4 MB, free: 3.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.1533, allocations: 0 / 367.4 MB, free: 3.734 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-05/0.1534, allocations: 12 kB / 367.4 MB, free: 3.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.1535, allocations: 8 kB / 367.4 MB, free: 3.715 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002838/0.1563, allocations: 0.6518 MB / 368.1 MB, free: 3.059 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005969/0.1623, allocations: 2.18 MB / 370.3 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2333/0.3956, allocations: 0.8557 MB / 371.1 MB, free: 20.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/0.397, allocations: 395.6 kB / 371.5 MB, free: 20.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.546e-05/0.3971, allocations: 8.25 kB / 371.5 MB, free: 20.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001263/0.3984, allocations: 436.3 kB / 371.9 MB, free: 20.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.635e-06/0.3984, allocations: 0 / 371.9 MB, free: 20.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01607/0.4145, allocations: 2.379 MB / 374.3 MB, free: 20.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.42e-05/0.4146, allocations: 88.75 kB / 374.4 MB, free: 19.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006017/0.4152, allocations: 421.4 kB / 374.8 MB, free: 19.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.954e-05/0.4153, allocations: 32.45 kB / 374.9 MB, free: 19.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.4154, allocations: 233.2 kB / 375.1 MB, free: 19.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.4155, allocations: 131.6 kB / 375.2 MB, free: 19.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.4157, allocations: 73.97 kB / 375.3 MB, free: 19.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.411e-05/0.4158, allocations: 355.8 kB / 375.6 MB, free: 19.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009574/0.4168, allocations: 298.4 kB / 375.9 MB, free: 19.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009562/0.4178, allocations: 341.8 kB / 376.3 MB, free: 18.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001841/0.4196, allocations: 0.6006 MB / 376.9 MB, free: 18.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.4196, allocations: 0 / 376.9 MB, free: 18.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003928/0.4236, allocations: 0.9974 MB / 377.8 MB, free: 18.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.389e-05/0.4236, allocations: 36.59 kB / 377.9 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.4236, allocations: 0.6562 kB / 377.9 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001378/0.425, allocations: 432.7 kB / 378.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005289/0.4256, allocations: 89.73 kB / 378.4 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008915/0.4345, allocations: 3.454 MB / 381.9 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008036/0.4353, allocations: 93.41 kB / 381.9 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.941e-05/0.4354, allocations: 17.06 kB / 382 MB, free: 16.02 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.0002711/0.4357, allocations: 170 kB / 382.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.807e-05/0.4358, allocations: 50.84 kB / 382.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.4359, allocations: 57.62 kB / 382.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.4359, allocations: 8.578 kB / 382.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.4359, allocations: 0 / 382.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.4359, allocations: 4.484 kB / 382.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008168/0.4367, allocations: 0.6088 MB / 382.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4367, allocations: 0 / 382.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005225/0.4373, allocations: 84.52 kB / 382.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001317/0.4386, allocations: 437.8 kB / 383.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.229e-05/0.4387, allocations: 12.84 kB / 383.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007987/0.4466, allocations: 3.45 MB / 386.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.4467, allocations: 0 / 386.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00639/0.4531, allocations: 1.497 MB / 388.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003067/0.4534, allocations: 185.6 kB / 388.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.604e-05/0.4535, allocations: 10.06 kB / 388.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005919/0.4541, allocations: 69.94 kB / 388.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001877/0.4543, allocations: 56.84 kB / 388.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-05/0.4544, allocations: 12.7 kB / 388.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003657/0.4548, allocations: 295 kB / 388.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4548, allocations: 0 / 388.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008349/0.4556, allocations: 169.7 kB / 389.1 MB, free: 11.83 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.0001857/0.4558, allocations: 123.4 kB / 389.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002715/0.4585, allocations: 0.9548 MB / 390.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.4585, allocations: 0 / 390.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001598/0.4601, allocations: 0.5831 MB / 390.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006441/0.4608, allocations: 91.61 kB / 390.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003821/0.4646, allocations: 1.442 MB / 392.3 MB, free: 9.812 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.465, allocations: 0.8424 MB / 393.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003212/0.4654, allocations: 43.61 kB / 393.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.4655, allocations: 30.77 kB / 393.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4655, allocations: 0.9375 kB / 393.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of Templates: time 0.02051/0.486, allocations: 12.92 MB / 406.1 MB, free: 14.06 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches