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.001559/0.001559, allocations: 117.7 kB / 18.46 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002053/0.002053, allocations: 204.9 kB / 19.4 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.592/2.592, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002323/0.002323, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4058/0.4081, allocations: 50.54 MB / 409.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.0096/0.4178, allocations: 4.088 MB / 414 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00347/0.4213, allocations: 1.075 MB / 415.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005193/0.4219, allocations: 4 kB / 415.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003823/0.4223, allocations: 87.14 kB / 415.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006909/0.4231, allocations: 186.4 kB / 415.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.4241, allocations: 223.7 kB / 415.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001547/0.4257, allocations: 0.8212 MB / 416.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005205/0.4262, allocations: 172.9 kB / 416.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008353/0.4271, allocations: 318.9 kB / 416.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007769/0.4279, allocations: 358.6 kB / 417.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001849/0.4281, allocations: 84 kB / 417.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002375/0.4283, allocations: 92 kB / 417.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002146/0.4286, allocations: 167.4 kB / 417.6 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006022/0.4292, allocations: 330.5 kB / 417.9 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001415/0.4306, allocations: 0.8578 MB / 418.8 MB, free: 8.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4307, allocations: 0 / 418.8 MB, free: 8.762 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4307, allocations: 0 / 418.8 MB, free: 8.762 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.303e-05/0.4307, allocations: 0 / 418.8 MB, free: 8.762 MB / 334.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.005048/0.4358, allocations: 1.034 MB / 419.8 MB, free: 7.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.674e-05/0.4359, allocations: 12.03 kB / 419.8 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000417/0.4363, allocations: 72.27 kB / 419.9 MB, free: 7.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.4375, allocations: 433.8 kB / 420.3 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.393e-05/0.4376, allocations: 37.31 kB / 420.3 MB, free: 7.086 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.4378, allocations: 36.38 kB / 420.4 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002681/0.4405, allocations: 0.5993 MB / 421 MB, free: 6.426 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.4405, allocations: 0 / 421 MB, free: 6.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-05/0.4406, allocations: 16 kB / 421 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.974e-05/0.4406, allocations: 15.94 kB / 421 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003563/0.4442, allocations: 0.6362 MB / 421.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006706/0.451, allocations: 2.157 MB / 423.8 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007143/0.4582, allocations: 0.8588 MB / 424.7 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002291/0.4605, allocations: 404.3 kB / 425 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.651e-05/0.4606, allocations: 8.312 kB / 425.1 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002258/0.4629, allocations: 426.7 kB / 425.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 4.469e-06/0.4629, allocations: 4 kB / 425.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.02692/0.4899, allocations: 2.39 MB / 427.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.49, allocations: 85.11 kB / 428 MB, free: 15.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009882/0.491, allocations: 433.7 kB / 428.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001381/0.4912, allocations: 29.7 kB / 428.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002953/0.4915, allocations: 228.7 kB / 428.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002417/0.4918, allocations: 138 kB / 428.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003126/0.4921, allocations: 70.06 kB / 428.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002258/0.4924, allocations: 362.7 kB / 429.2 MB, free: 14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002015/0.4944, allocations: 296.6 kB / 429.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002095/0.4965, allocations: 338.1 kB / 429.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004014/0.5006, allocations: 0.5952 MB / 430.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/0.5006, allocations: 0 / 430.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.007015/0.5077, allocations: 1.006 MB / 431.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.289e-05/0.5078, allocations: 29.7 kB / 431.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.5078, allocations: 0 / 431.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002358/0.5102, allocations: 436.5 kB / 431.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009628/0.5112, allocations: 87.8 kB / 431.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01677/0.528, allocations: 3.817 MB / 435.8 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.5294, allocations: 87.7 kB / 435.8 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-05/0.5296, allocations: 20 kB / 435.9 MB, free: 7.137 MB / 350.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.0004906/0.5301, allocations: 181.7 kB / 436 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/0.5303, allocations: 43.53 kB / 436.1 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002272/0.5305, allocations: 60.5 kB / 436.1 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.5306, allocations: 4 kB / 436.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.5306, allocations: 0 / 436.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.337e-05/0.5306, allocations: 3.984 kB / 436.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.532, allocations: 0.6222 MB / 436.8 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.532, allocations: 0 / 436.8 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.5331, allocations: 87.84 kB / 436.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002447/0.5355, allocations: 428.5 kB / 437.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001055/0.5357, allocations: 11.98 kB / 437.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01528/0.551, allocations: 3.799 MB / 441.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.551, allocations: 0 / 441.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01252/0.5636, allocations: 1.505 MB / 442.6 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006166/0.5643, allocations: 180.5 kB / 442.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001634/0.5645, allocations: 15.94 kB / 442.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.5656, allocations: 71.84 kB / 442.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.5659, allocations: 55.88 kB / 442.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.745e-05/0.566, allocations: 19.92 kB / 442.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006364/0.5667, allocations: 295.1 kB / 443.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5667, allocations: 0 / 443.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001153/0.5678, allocations: 171.8 kB / 443.4 MB, free: 15.38 MB / 366.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.0002712/0.5681, allocations: 109.8 kB / 443.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005022/0.5732, allocations: 0.9776 MB / 444.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.5732, allocations: 4.062 kB / 444.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002956/0.5762, allocations: 0.5879 MB / 445.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009658/0.5772, allocations: 89.39 kB / 445.2 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005819/0.5831, allocations: 1.282 MB / 446.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006197/0.5837, allocations: 0.8394 MB / 447.3 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003158/0.5841, allocations: 35.42 kB / 447.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5841, allocations: 4 kB / 447.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of Templates: time 0.02557/0.6097, allocations: 10.07 MB / 457.4 MB, free: 1.309 MB / 366.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/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_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches