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.001525/0.001525, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001548/0.001548, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.578/1.578, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 63.42 kB / 307 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1442, allocations: 50.54 MB / 357.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006938/0.1511, allocations: 4.094 MB / 361.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00294/0.1541, allocations: 1.063 MB / 362.7 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004819/0.1547, allocations: 11.94 kB / 362.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003206/0.155, allocations: 87.14 kB / 362.8 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004958/0.1555, allocations: 182.4 kB / 363 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007963/0.1564, allocations: 231.7 kB / 363.2 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001071/0.1574, allocations: 0.8134 MB / 364 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003487/0.1578, allocations: 177.2 kB / 364.2 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005206/0.1583, allocations: 315 kB / 364.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004776/0.1588, allocations: 362.5 kB / 364.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.1589, allocations: 80 kB / 364.9 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001916/0.1591, allocations: 95.98 kB / 365 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.1593, allocations: 163.4 kB / 365.2 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003749/0.1597, allocations: 334.5 kB / 365.5 MB, free: 6.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001138/0.1608, allocations: 0.8488 MB / 366.4 MB, free: 5.168 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1609, allocations: 4 kB / 366.4 MB, free: 5.164 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1609, allocations: 3.938 kB / 366.4 MB, free: 5.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.1609, allocations: 3.984 kB / 366.4 MB, free: 5.156 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.002919/0.1638, allocations: 1.03 MB / 367.4 MB, free: 4.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.1639, allocations: 15.97 kB / 367.4 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002794/0.1642, allocations: 72.19 kB / 367.5 MB, free: 3.984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006137/0.1648, allocations: 418 kB / 367.9 MB, free: 3.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.876e-05/0.1648, allocations: 29.38 kB / 367.9 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.09e-05/0.1649, allocations: 36.38 kB / 368 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.1665, allocations: 0.6071 MB / 368.6 MB, free: 2.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.1665, allocations: 0 / 368.6 MB, free: 2.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.8e-05/0.1665, allocations: 16 kB / 368.6 MB, free: 2.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.1666, allocations: 8 kB / 368.6 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001975/0.1685, allocations: 0.64 MB / 369.2 MB, free: 2.176 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2229/0.3914, allocations: 2.184 MB / 371.4 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00458/0.3961, allocations: 0.8513 MB / 372.3 MB, free: 19.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/0.3975, allocations: 405.9 kB / 372.7 MB, free: 19.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.051e-05/0.3976, allocations: 5.25 kB / 372.7 MB, free: 19.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001597/0.3992, allocations: 432.6 kB / 373.1 MB, free: 19.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 3.016e-06/0.3992, allocations: 3.188 kB / 373.1 MB, free: 19.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01528/0.4145, allocations: 2.386 MB / 375.5 MB, free: 19.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.294e-05/0.4146, allocations: 86 kB / 375.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008791/0.4155, allocations: 415.9 kB / 376 MB, free: 19.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.4156, allocations: 36.17 kB / 376 MB, free: 19.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002095/0.4159, allocations: 228.6 kB / 376.2 MB, free: 18.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/0.4161, allocations: 136.4 kB / 376.4 MB, free: 18.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002233/0.4163, allocations: 72.73 kB / 376.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.4164, allocations: 359.8 kB / 376.8 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.4175, allocations: 303.9 kB / 377.1 MB, free: 18.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.4186, allocations: 336.4 kB / 377.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001955/0.4205, allocations: 0.6 MB / 378 MB, free: 18.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.4205, allocations: 0 / 378 MB, free: 18.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003724/0.4243, allocations: 0.9928 MB / 379 MB, free: 17.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.202e-05/0.4244, allocations: 33.33 kB / 379 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.4244, allocations: 0 / 379 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/0.4259, allocations: 439.1 kB / 379.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006394/0.4265, allocations: 93.36 kB / 379.5 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009342/0.4359, allocations: 3.809 MB / 383.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008455/0.4368, allocations: 94.34 kB / 383.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.4369, allocations: 20.48 kB / 383.5 MB, free: 15.05 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.0003617/0.4373, allocations: 169.9 kB / 383.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/0.4375, allocations: 46.64 kB / 383.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001487/0.4376, allocations: 57.19 kB / 383.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.4376, allocations: 5.078 kB / 383.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.4376, allocations: 0 / 383.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.4377, allocations: 5 kB / 383.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000888/0.4386, allocations: 0.6191 MB / 384.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.4386, allocations: 0 / 384.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005153/0.4391, allocations: 80.48 kB / 384.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.4403, allocations: 442.9 kB / 384.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.573e-05/0.4404, allocations: 10.64 kB / 384.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008164/0.4486, allocations: 3.815 MB / 388.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4486, allocations: 0 / 388.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006129/0.4548, allocations: 1.498 MB / 390.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003765/0.4552, allocations: 176.6 kB / 390.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.4553, allocations: 10.92 kB / 390.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006368/0.456, allocations: 85.39 kB / 390.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.4562, allocations: 44.16 kB / 390.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.513e-05/0.4562, allocations: 11.69 kB / 390.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004259/0.4567, allocations: 295.2 kB / 390.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4567, allocations: 0 / 390.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001036/0.4577, allocations: 178 kB / 391 MB, free: 10.41 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.0002199/0.4579, allocations: 113.2 kB / 391.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003065/0.461, allocations: 0.9894 MB / 392.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.4611, allocations: 0 / 392.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001799/0.4629, allocations: 0.5864 MB / 392.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007174/0.4636, allocations: 82.25 kB / 392.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003819/0.4674, allocations: 1.261 MB / 394 MB, free: 8.559 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.4678, allocations: 0.8431 MB / 394.9 MB, free: 7.793 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002734/0.4681, allocations: 42.08 kB / 394.9 MB, free: 7.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.4682, allocations: 37.36 kB / 394.9 MB, free: 7.758 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4682, allocations: 4 kB / 394.9 MB, free: 7.754 MB / 302.1 MB Notification: Performance of Templates: time 0.02441/0.4927, allocations: 13.95 MB / 408.9 MB, free: 11.2 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.1.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