Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001355/0.001355, 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.001277/0.001277, 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 4.1.0-beta.om/package.mo): time 1.466/1.466, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 67.58 kB / 307.9 MB, free: 492 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09579/0.09773, allocations: 50.55 MB / 358.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005905/0.1037, allocations: 4.09 MB / 362.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.1059, allocations: 1.059 MB / 363.6 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002342/0.1062, allocations: 11.94 kB / 363.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002461/0.1064, allocations: 83.14 kB / 363.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000337/0.1068, allocations: 182.4 kB / 363.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005684/0.1074, allocations: 227.7 kB / 364.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008698/0.1082, allocations: 0.8173 MB / 364.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003324/0.1086, allocations: 173.2 kB / 365.1 MB, free: 7.242 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004839/0.1091, allocations: 315 kB / 365.4 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004837/0.1096, allocations: 362.6 kB / 365.7 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000122/0.1097, allocations: 80 kB / 365.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001647/0.1099, allocations: 103.9 kB / 365.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.11, allocations: 159.4 kB / 366.1 MB, free: 6.242 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003461/0.1104, allocations: 334.5 kB / 366.4 MB, free: 5.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008876/0.1113, allocations: 0.8567 MB / 367.2 MB, free: 5.055 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1113, allocations: 0 / 367.2 MB, free: 5.055 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1113, allocations: 0 / 367.2 MB, free: 5.055 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.1113, allocations: 0 / 367.2 MB, free: 5.055 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.002811/0.1142, allocations: 1.042 MB / 368.3 MB, free: 3.957 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.1142, allocations: 8.031 kB / 368.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002402/0.1145, allocations: 80.17 kB / 368.4 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005808/0.115, allocations: 410 kB / 368.8 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.037e-05/0.1151, allocations: 29.38 kB / 368.8 MB, free: 3.402 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.374e-05/0.1152, allocations: 36.38 kB / 368.8 MB, free: 3.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.1167, allocations: 0.611 MB / 369.5 MB, free: 2.727 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.1168, allocations: 0 / 369.5 MB, free: 2.727 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.447e-05/0.1168, allocations: 12 kB / 369.5 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.1168, allocations: 8 kB / 369.5 MB, free: 2.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002042/0.1189, allocations: 0.644 MB / 370.1 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1563/0.2752, allocations: 2.174 MB / 372.3 MB, free: 19.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004295/0.2795, allocations: 0.8551 MB / 373.1 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.2807, allocations: 394.1 kB / 373.5 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.293e-05/0.2808, allocations: 11.7 kB / 373.5 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001274/0.2821, allocations: 432.7 kB / 374 MB, free: 19.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.274e-06/0.2821, allocations: 4.344 kB / 374 MB, free: 19.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01456/0.2966, allocations: 2.379 MB / 376.3 MB, free: 19.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.2967, allocations: 90.47 kB / 376.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005834/0.2973, allocations: 423.6 kB / 376.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.102e-05/0.2974, allocations: 31.86 kB / 376.9 MB, free: 18.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001597/0.2976, allocations: 232.2 kB / 377.1 MB, free: 18.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.2977, allocations: 136.4 kB / 377.2 MB, free: 18.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.2978, allocations: 71.23 kB / 377.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.684e-05/0.2979, allocations: 354.6 kB / 377.7 MB, free: 18.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000935/0.2989, allocations: 299.4 kB / 377.9 MB, free: 18.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009305/0.2998, allocations: 341.7 kB / 378.3 MB, free: 18.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001788/0.3016, allocations: 0.5994 MB / 378.9 MB, free: 17.83 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3016, allocations: 1.281 kB / 378.9 MB, free: 17.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003603/0.3052, allocations: 0.9936 MB / 379.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.839e-05/0.3053, allocations: 37 kB / 379.9 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.3053, allocations: 1.312 kB / 379.9 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/0.3066, allocations: 433 kB / 380.3 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004938/0.3071, allocations: 97.38 kB / 380.4 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008233/0.3154, allocations: 3.821 MB / 384.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007566/0.3162, allocations: 96.91 kB / 384.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/0.3162, allocations: 11.36 kB / 384.4 MB, free: 14.88 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.0002339/0.3165, allocations: 171.3 kB / 384.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.877e-05/0.3165, allocations: 49.53 kB / 384.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001138/0.3167, allocations: 58.67 kB / 384.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.3167, allocations: 3.188 kB / 384.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3167, allocations: 1.156 kB / 384.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.3167, allocations: 6.656 kB / 384.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006392/0.3173, allocations: 0.6136 MB / 385.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3174, allocations: 4.938 kB / 385.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004969/0.3179, allocations: 79.02 kB / 385.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.319, allocations: 431.7 kB / 385.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.108e-05/0.3191, allocations: 14.75 kB / 385.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007618/0.3267, allocations: 3.818 MB / 389.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3267, allocations: 4 kB / 389.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005759/0.3325, allocations: 1.496 MB / 391.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00024/0.3328, allocations: 185.1 kB / 391.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.338e-05/0.3328, allocations: 8.141 kB / 391.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005629/0.3334, allocations: 77.06 kB / 391.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.3336, allocations: 48.2 kB / 391.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.685e-05/0.3336, allocations: 11.62 kB / 391.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003039/0.3339, allocations: 295.8 kB / 391.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.334, allocations: 3.719 kB / 391.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006448/0.3346, allocations: 174.1 kB / 391.9 MB, free: 10.21 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.0001397/0.3348, allocations: 110.7 kB / 392 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002625/0.3374, allocations: 0.9868 MB / 393 MB, free: 9.531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3374, allocations: 0 / 393 MB, free: 9.531 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001504/0.3389, allocations: 0.5868 MB / 393.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005037/0.3394, allocations: 83.61 kB / 393.6 MB, free: 9.133 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003142/0.3426, allocations: 1.303 MB / 394.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.3428, allocations: 0.8369 MB / 395.8 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.343, allocations: 34 kB / 395.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.343, allocations: 4 kB / 395.8 MB, free: 7.539 MB / 302.1 MB Notification: Performance of Templates: time 0.01111/0.3541, allocations: 9.966 MB / 405.8 MB, free: 14.93 MB / 318.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches