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.001216/0.001216, allocations: 103.5 kB / 17.98 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 209.8 kB / 18.92 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 247.1 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 65.39 kB / 307.1 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09817/0.09955, allocations: 50.53 MB / 357.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005302/0.1049, allocations: 4.127 MB / 361.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.107, allocations: 1.044 MB / 362.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004209/0.1075, allocations: 15.94 kB / 362.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003034/0.1078, allocations: 59.52 kB / 362.9 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004838/0.1083, allocations: 154.7 kB / 363 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006328/0.109, allocations: 207.7 kB / 363.2 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009642/0.11, allocations: 0.8134 MB / 364.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002983/0.1103, allocations: 169.2 kB / 364.2 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005291/0.1108, allocations: 318.9 kB / 364.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004755/0.1113, allocations: 362.6 kB / 364.9 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000145/0.1115, allocations: 83.94 kB / 365 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.1116, allocations: 88 kB / 365.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.1118, allocations: 167.4 kB / 365.2 MB, free: 6.793 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003601/0.1122, allocations: 330.5 kB / 365.5 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006556/0.1128, allocations: 0.6741 MB / 366.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1128, allocations: 0 / 366.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.1128, allocations: 0 / 366.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.241e-05/0.1129, allocations: 0 / 366.2 MB, free: 5.793 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.00291/0.1158, allocations: 1.034 MB / 367.3 MB, free: 4.703 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.1158, allocations: 12.03 kB / 367.3 MB, free: 4.691 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002791/0.1161, allocations: 68.19 kB / 367.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005703/0.1167, allocations: 421.9 kB / 367.7 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.963e-05/0.1168, allocations: 33.36 kB / 367.8 MB, free: 4.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.152e-05/0.1169, allocations: 36.38 kB / 367.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.1184, allocations: 0.6031 MB / 368.4 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.1184, allocations: 4 kB / 368.4 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.405e-05/0.1185, allocations: 15.98 kB / 368.4 MB, free: 3.457 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.1185, allocations: 12 kB / 368.4 MB, free: 3.445 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001928/0.1204, allocations: 0.6362 MB / 369.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004079/0.1245, allocations: 2.192 MB / 371.3 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1643/0.2888, allocations: 0.8584 MB / 372.1 MB, free: 20.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001189/0.29, allocations: 402.1 kB / 372.5 MB, free: 20.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.684e-05/0.2901, allocations: 5.266 kB / 372.5 MB, free: 20.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001266/0.2914, allocations: 434.1 kB / 373 MB, free: 20.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.933e-06/0.2914, allocations: 0 / 373 MB, free: 20.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01577/0.3072, allocations: 2.384 MB / 375.3 MB, free: 20.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.3073, allocations: 86.41 kB / 375.4 MB, free: 20.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005331/0.3078, allocations: 415.1 kB / 375.8 MB, free: 19.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.753e-05/0.3079, allocations: 37.58 kB / 375.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000153/0.308, allocations: 228.7 kB / 376.1 MB, free: 19.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.3082, allocations: 140.4 kB / 376.2 MB, free: 19.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.3083, allocations: 69.14 kB / 376.3 MB, free: 19.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.2e-05/0.3084, allocations: 356.5 kB / 376.6 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009338/0.3094, allocations: 299.7 kB / 376.9 MB, free: 19.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009889/0.3104, allocations: 341.6 kB / 377.3 MB, free: 19.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001784/0.3122, allocations: 0.5934 MB / 377.9 MB, free: 18.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3122, allocations: 3.938 kB / 377.9 MB, free: 18.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003771/0.316, allocations: 0.9978 MB / 378.9 MB, free: 18.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.644e-05/0.316, allocations: 33.78 kB / 378.9 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.316, allocations: 1.094 kB / 378.9 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001314/0.3174, allocations: 439.5 kB / 379.3 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005095/0.3179, allocations: 90.66 kB / 379.4 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008539/0.3264, allocations: 3.815 MB / 383.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007768/0.3273, allocations: 97.45 kB / 383.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.957e-05/0.3273, allocations: 15.28 kB / 383.3 MB, free: 15.83 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.0002707/0.3276, allocations: 173.6 kB / 383.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.144e-05/0.3277, allocations: 54.09 kB / 383.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.3278, allocations: 58.86 kB / 383.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.3278, allocations: 4.281 kB / 383.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3278, allocations: 0 / 383.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.3278, allocations: 1.5 kB / 383.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006811/0.3285, allocations: 0.6148 MB / 384.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.3285, allocations: 5.062 kB / 384.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004986/0.329, allocations: 84.17 kB / 384.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001181/0.3302, allocations: 437.3 kB / 384.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.441e-05/0.3303, allocations: 10.67 kB / 384.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008131/0.3384, allocations: 3.8 MB / 388.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.3385, allocations: 1.281 kB / 388.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005974/0.3444, allocations: 1.5 MB / 390.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000273/0.3448, allocations: 181.1 kB / 390.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.566e-05/0.3448, allocations: 6.344 kB / 390.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005844/0.3454, allocations: 79.34 kB / 390.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/0.3456, allocations: 48.3 kB / 390.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.442e-05/0.3457, allocations: 18.62 kB / 390.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003201/0.346, allocations: 299.7 kB / 390.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.346, allocations: 0 / 390.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006944/0.3467, allocations: 181.8 kB / 390.9 MB, free: 11.24 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.0001674/0.3469, allocations: 113 kB / 391 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002668/0.3496, allocations: 0.9836 MB / 392 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3496, allocations: 0 / 392 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001496/0.3511, allocations: 0.59 MB / 392.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005249/0.3516, allocations: 84.34 kB / 392.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003126/0.3548, allocations: 1.464 MB / 394.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000252/0.3551, allocations: 0.842 MB / 394.9 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001531/0.3552, allocations: 34.12 kB / 395 MB, free: 8.406 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3552, allocations: 0 / 395 MB, free: 8.406 MB / 302.1 MB Notification: Performance of Templates: time 0.01037/0.3656, allocations: 9.966 MB / 404.9 MB, free: 15.98 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/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