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.001443/0.001443, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 247.5 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 62.62 kB / 307.7 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09147/0.09333, allocations: 50.54 MB / 358.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005411/0.09878, allocations: 4.093 MB / 362.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.1007, allocations: 1.067 MB / 363.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002119/0.101, allocations: 4 kB / 363.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000212/0.1012, allocations: 91.12 kB / 363.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003443/0.1016, allocations: 178.4 kB / 363.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004894/0.1021, allocations: 231.6 kB / 363.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008193/0.1029, allocations: 0.8174 MB / 364.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002982/0.1032, allocations: 169.2 kB / 364.8 MB, free: 7.426 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004382/0.1037, allocations: 326.9 kB / 365.1 MB, free: 7.105 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004216/0.1041, allocations: 362.6 kB / 365.5 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.1042, allocations: 87.94 kB / 365.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001605/0.1044, allocations: 88 kB / 365.7 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001528/0.1045, allocations: 163.4 kB / 365.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003226/0.1049, allocations: 334.5 kB / 366.2 MB, free: 6.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008411/0.1057, allocations: 0.8528 MB / 367 MB, free: 5.234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1057, allocations: 0 / 367 MB, free: 5.234 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1057, allocations: 0 / 367 MB, free: 5.234 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1058, allocations: 4 kB / 367 MB, free: 5.23 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.002655/0.1084, allocations: 1.042 MB / 368.1 MB, free: 4.133 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.1085, allocations: 8.031 kB / 368.1 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002317/0.1087, allocations: 72.17 kB / 368.1 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005526/0.1093, allocations: 417.9 kB / 368.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.674e-05/0.1093, allocations: 29.38 kB / 368.6 MB, free: 3.578 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.02e-05/0.1094, allocations: 36.38 kB / 368.6 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.1109, allocations: 0.6071 MB / 369.2 MB, free: 2.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.1109, allocations: 3.938 kB / 369.2 MB, free: 2.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.103e-05/0.111, allocations: 12 kB / 369.2 MB, free: 2.891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.111, allocations: 12 kB / 369.2 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001958/0.1129, allocations: 0.6401 MB / 369.9 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1526/0.2656, allocations: 2.177 MB / 372.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004314/0.2699, allocations: 0.8563 MB / 372.9 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/0.2711, allocations: 398.5 kB / 373.3 MB, free: 19.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.538e-05/0.2712, allocations: 7.984 kB / 373.3 MB, free: 19.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/0.2724, allocations: 440.4 kB / 373.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.873e-06/0.2724, allocations: 0 / 373.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.0147/0.2871, allocations: 2.39 MB / 376.1 MB, free: 19.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.2872, allocations: 82.05 kB / 376.2 MB, free: 19.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005304/0.2877, allocations: 416.7 kB / 376.6 MB, free: 19.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.002e-05/0.2878, allocations: 33.2 kB / 376.7 MB, free: 19.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.288, allocations: 234.6 kB / 376.9 MB, free: 18.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.2881, allocations: 129.9 kB / 377 MB, free: 18.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.2883, allocations: 74.58 kB / 377.1 MB, free: 18.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.936e-05/0.2884, allocations: 358.9 kB / 377.4 MB, free: 18.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000966/0.2893, allocations: 295.3 kB / 377.7 MB, free: 18.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009341/0.2903, allocations: 342 kB / 378.1 MB, free: 18.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001741/0.292, allocations: 0.5962 MB / 378.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.292, allocations: 0 / 378.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003509/0.2955, allocations: 1.001 MB / 379.6 MB, free: 17.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.138e-05/0.2956, allocations: 32.91 kB / 379.7 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.2956, allocations: 1.406 kB / 379.7 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.2969, allocations: 443.1 kB / 380.1 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005107/0.2974, allocations: 85.31 kB / 380.2 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008095/0.3055, allocations: 3.817 MB / 384 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007917/0.3063, allocations: 92.56 kB / 384.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-05/0.3064, allocations: 15.77 kB / 384.1 MB, free: 15.12 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.0002869/0.3067, allocations: 174.6 kB / 384.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.547e-05/0.3068, allocations: 45.91 kB / 384.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.3069, allocations: 57.78 kB / 384.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.3069, allocations: 4.406 kB / 384.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.307, allocations: 2.406 kB / 384.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.495e-06/0.307, allocations: 1.969 kB / 384.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007169/0.3077, allocations: 0.6154 MB / 385 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3077, allocations: 0 / 385 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000488/0.3082, allocations: 89.62 kB / 385.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001161/0.3094, allocations: 437.2 kB / 385.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.271e-05/0.3094, allocations: 11.97 kB / 385.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007763/0.3172, allocations: 3.806 MB / 389.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3172, allocations: 4.031 kB / 389.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005672/0.3229, allocations: 1.501 MB / 390.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002748/0.3232, allocations: 173 kB / 391 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.555e-05/0.3233, allocations: 15.36 kB / 391 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005408/0.3239, allocations: 77.38 kB / 391.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.324, allocations: 47.19 kB / 391.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.891e-05/0.3241, allocations: 11.69 kB / 391.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003305/0.3244, allocations: 299.6 kB / 391.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3244, allocations: 7.719 kB / 391.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007129/0.3251, allocations: 178.2 kB / 391.6 MB, free: 10.49 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.0001738/0.3253, allocations: 109.2 kB / 391.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0027/0.328, allocations: 0.9745 MB / 392.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3281, allocations: 0 / 392.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.3296, allocations: 0.5906 MB / 393.3 MB, free: 9.461 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005101/0.3301, allocations: 96.69 kB / 393.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003119/0.3332, allocations: 1.284 MB / 394.7 MB, free: 8.605 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.3335, allocations: 0.84 MB / 395.5 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.3336, allocations: 30.66 kB / 395.6 MB, free: 7.836 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3336, allocations: 0 / 395.6 MB, free: 7.836 MB / 302.1 MB Notification: Performance of Templates: time 0.01118/0.3448, allocations: 9.979 MB / 405.5 MB, free: 15.23 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