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.001359/0.001359, 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.001431/0.001431, allocations: 213.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 247.1 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 69.17 kB / 307.1 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09251/0.09436, allocations: 50.53 MB / 357.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005393/0.09979, allocations: 4.135 MB / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.1016, allocations: 1.056 MB / 362.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.1018, allocations: 4 kB / 362.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002068/0.102, allocations: 67.45 kB / 362.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003113/0.1023, allocations: 154.8 kB / 363.1 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.1028, allocations: 199.8 kB / 363.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000835/0.1036, allocations: 0.8212 MB / 364.1 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002997/0.1039, allocations: 177.2 kB / 364.3 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004231/0.1044, allocations: 314.9 kB / 364.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004167/0.1048, allocations: 362.6 kB / 364.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.1049, allocations: 84 kB / 365 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001488/0.1051, allocations: 88 kB / 365.1 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001409/0.1052, allocations: 163.4 kB / 365.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003212/0.1056, allocations: 334.5 kB / 365.6 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006628/0.1062, allocations: 0.6702 MB / 366.3 MB, free: 5.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1062, allocations: 0 / 366.3 MB, free: 5.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1062, allocations: 0 / 366.3 MB, free: 5.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.1063, allocations: 0 / 366.3 MB, free: 5.75 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.002708/0.109, allocations: 1.038 MB / 367.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.109, allocations: 12.03 kB / 367.3 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002335/0.1093, allocations: 72.17 kB / 367.4 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005472/0.1098, allocations: 410 kB / 367.8 MB, free: 4.133 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/0.1099, allocations: 33.36 kB / 367.8 MB, free: 4.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.441e-05/0.11, allocations: 40.38 kB / 367.9 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.1115, allocations: 0.6031 MB / 368.5 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.1115, allocations: 0 / 368.5 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.967e-05/0.1116, allocations: 19.98 kB / 368.5 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1116, allocations: 12 kB / 368.5 MB, free: 3.402 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001938/0.1135, allocations: 0.6362 MB / 369.1 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003876/0.1174, allocations: 2.192 MB / 371.3 MB, free: 484 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1458/0.2633, allocations: 0.8529 MB / 372.2 MB, free: 20.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.2644, allocations: 400.4 kB / 372.6 MB, free: 20.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.669e-05/0.2645, allocations: 8.109 kB / 372.6 MB, free: 20.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.2657, allocations: 432.2 kB / 373 MB, free: 20.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.264e-06/0.2657, allocations: 0 / 373 MB, free: 20.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01544/0.2811, allocations: 2.386 MB / 375.4 MB, free: 19.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.2812, allocations: 91.14 kB / 375.5 MB, free: 19.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004709/0.2817, allocations: 415.5 kB / 375.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.499e-05/0.2817, allocations: 35.39 kB / 375.9 MB, free: 19.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.2819, allocations: 229.2 kB / 376.1 MB, free: 19.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.282, allocations: 133.6 kB / 376.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.2822, allocations: 75.7 kB / 376.3 MB, free: 19.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.23e-05/0.2822, allocations: 354.8 kB / 376.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009468/0.2832, allocations: 299.5 kB / 377 MB, free: 18.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009206/0.2841, allocations: 339.5 kB / 377.3 MB, free: 18.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001699/0.2858, allocations: 0.5967 MB / 377.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.2859, allocations: 3.938 kB / 377.9 MB, free: 18.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003636/0.2895, allocations: 1.001 MB / 378.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/0.2895, allocations: 35.77 kB / 378.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.2896, allocations: 0 / 378.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00127/0.2908, allocations: 440.5 kB / 379.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004839/0.2913, allocations: 90.47 kB / 379.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008071/0.2994, allocations: 3.813 MB / 383.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007038/0.3001, allocations: 97.78 kB / 383.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-05/0.3002, allocations: 14.53 kB / 383.4 MB, free: 15.57 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.0002229/0.3004, allocations: 169.4 kB / 383.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.162e-05/0.3005, allocations: 54.83 kB / 383.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001165/0.3006, allocations: 61.67 kB / 383.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.3006, allocations: 7.812 kB / 383.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3006, allocations: 1.375 kB / 383.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3007, allocations: 1.875 kB / 383.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006266/0.3013, allocations: 0.6108 MB / 384.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.3013, allocations: 4.547 kB / 384.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004968/0.3018, allocations: 80 kB / 384.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001161/0.303, allocations: 438.8 kB / 384.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.33e-05/0.303, allocations: 10.81 kB / 384.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007846/0.3109, allocations: 3.809 MB / 388.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3109, allocations: 0 / 388.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005864/0.3168, allocations: 1.501 MB / 390.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/0.317, allocations: 181.3 kB / 390.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.657e-05/0.3171, allocations: 5.844 kB / 390.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005824/0.3177, allocations: 82.69 kB / 390.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.3178, allocations: 46.36 kB / 390.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.003e-05/0.3179, allocations: 19.78 kB / 390.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002903/0.3182, allocations: 296 kB / 390.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3182, allocations: 0 / 390.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006699/0.3189, allocations: 185 kB / 390.9 MB, free: 11 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.0001376/0.319, allocations: 109.6 kB / 391 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002604/0.3216, allocations: 0.9803 MB / 392 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3216, allocations: 3.938 kB / 392 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001506/0.3232, allocations: 0.5901 MB / 392.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004641/0.3236, allocations: 83.56 kB / 392.7 MB, free: 9.926 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.3266, allocations: 1.456 MB / 394.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.3269, allocations: 0.8431 MB / 395 MB, free: 8.188 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.327, allocations: 33.56 kB / 395 MB, free: 8.18 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.327, allocations: 0 / 395 MB, free: 8.18 MB / 302.1 MB Notification: Performance of Templates: time 0.009969/0.337, allocations: 9.963 MB / 405 MB, free: 15.76 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.1.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