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.001309/0.001309, allocations: 121.7 kB / 17.83 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, allocations: 205.2 kB / 18.79 MB, free: 4.102 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.529/1.529, allocations: 230.4 MB / 250 MB, free: 8.977 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.001909/0.001909, allocations: 71.83 kB / 367.4 MB, free: 6.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2875, allocations: 53.31 MB / 420.7 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00536/0.2929, allocations: 4.116 MB / 424.8 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001878/0.2948, allocations: 1.063 MB / 425.8 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001886/0.295, allocations: 8 kB / 425.9 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.2952, allocations: 83.14 kB / 425.9 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003118/0.2955, allocations: 194.4 kB / 426.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004755/0.296, allocations: 227.6 kB / 426.4 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008446/0.2968, allocations: 0.8134 MB / 427.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003124/0.2971, allocations: 120.9 kB / 427.3 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004455/0.2976, allocations: 326.9 kB / 427.6 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000448/0.298, allocations: 354.6 kB / 427.9 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.2981, allocations: 84 kB / 428 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002239/0.2984, allocations: 95.98 kB / 428.1 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.2985, allocations: 163.4 kB / 428.3 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003294/0.2988, allocations: 334.5 kB / 428.6 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009017/0.2997, allocations: 0.8563 MB / 429.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2997, allocations: 3.938 kB / 429.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2997, allocations: 4 kB / 429.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.896e-06/0.2997, allocations: 0 / 429.5 MB, free: 15.62 MB / 350.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.002667/0.3024, allocations: 1.06 MB / 430.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.3024, allocations: 8.031 kB / 430.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002383/0.3027, allocations: 72.55 kB / 430.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006894/0.3034, allocations: 430.2 kB / 431 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.283e-05/0.3034, allocations: 33.38 kB / 431.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-05/0.3035, allocations: 36.38 kB / 431.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.305, allocations: 0.6031 MB / 431.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.305, allocations: 4 kB / 431.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.074e-05/0.305, allocations: 16 kB / 431.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.305, allocations: 8 kB / 431.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/0.3069, allocations: 0.6401 MB / 432.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003736/0.3107, allocations: 2.161 MB / 434.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003884/0.3145, allocations: 0.8315 MB / 435.4 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001181/0.3157, allocations: 370.6 kB / 435.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.63e-05/0.3158, allocations: 12.31 kB / 435.7 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001209/0.317, allocations: 430.7 kB / 436.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.184e-06/0.317, allocations: 3.938 kB / 436.2 MB, free: 8.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01477/0.3318, allocations: 2.387 MB / 438.5 MB, free: 6.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.602e-05/0.3319, allocations: 81.11 kB / 438.6 MB, free: 6.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006535/0.3325, allocations: 417.9 kB / 439 MB, free: 5.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.344e-05/0.3326, allocations: 33.7 kB / 439.1 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002164/0.3328, allocations: 236.9 kB / 439.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.3329, allocations: 134.8 kB / 439.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001976/0.3331, allocations: 78.05 kB / 439.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3333, allocations: 358.7 kB / 439.9 MB, free: 4.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008983/0.3342, allocations: 296.6 kB / 440.1 MB, free: 4.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009489/0.3352, allocations: 342.1 kB / 440.5 MB, free: 4.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001727/0.3369, allocations: 0.599 MB / 441.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3369, allocations: 0 / 441.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003604/0.3405, allocations: 0.998 MB / 442.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.61e-05/0.3405, allocations: 29.7 kB / 442.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.555e-06/0.3406, allocations: 0 / 442.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001336/0.3419, allocations: 443.1 kB / 442.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000495/0.3424, allocations: 83.86 kB / 442.6 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008908/0.3513, allocations: 3.824 MB / 446.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007711/0.3521, allocations: 91.67 kB / 446.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-05/0.3521, allocations: 20 kB / 446.6 MB, free: 14.04 MB / 366.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.0003139/0.3524, allocations: 177.8 kB / 446.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.616e-05/0.3525, allocations: 47.67 kB / 446.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001276/0.3526, allocations: 56.62 kB / 446.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.397e-06/0.3527, allocations: 7.984 kB / 446.8 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3527, allocations: 0 / 446.8 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.3527, allocations: 3.984 kB / 446.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008218/0.3535, allocations: 0.63 MB / 447.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3535, allocations: 3.938 kB / 447.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004868/0.354, allocations: 75.92 kB / 447.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001206/0.3552, allocations: 432.4 kB / 448 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.569e-05/0.3552, allocations: 11.98 kB / 448 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009043/0.3643, allocations: 3.791 MB / 451.8 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.3643, allocations: 7.938 kB / 451.8 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00608/0.3704, allocations: 1.497 MB / 453.3 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003338/0.3707, allocations: 180.7 kB / 453.5 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.427e-05/0.3708, allocations: 19.88 kB / 453.5 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005595/0.3713, allocations: 75.91 kB / 453.6 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.3715, allocations: 47.92 kB / 453.6 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.065e-05/0.3715, allocations: 12 kB / 453.6 MB, free: 6.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003673/0.3719, allocations: 295.1 kB / 453.9 MB, free: 6.445 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3719, allocations: 0 / 453.9 MB, free: 6.445 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006447/0.3726, allocations: 183.8 kB / 454.1 MB, free: 6.266 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.0001775/0.3727, allocations: 107.5 kB / 454.2 MB, free: 6.152 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002832/0.3756, allocations: 0.9464 MB / 455.1 MB, free: 5.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3756, allocations: 0 / 455.1 MB, free: 5.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.3771, allocations: 0.5762 MB / 455.7 MB, free: 4.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.3775, allocations: 92.77 kB / 455.8 MB, free: 4.496 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003338/0.3809, allocations: 1.277 MB / 457.1 MB, free: 3.195 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005376/0.3814, allocations: 0.8394 MB / 457.9 MB, free: 2.328 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00021/0.3816, allocations: 43.39 kB / 458 MB, free: 2.281 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.3817, allocations: 35.38 kB / 458 MB, free: 2.246 MB / 366.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3817, allocations: 7.938 kB / 458 MB, free: 2.238 MB / 366.1 MB Notification: Performance of Templates: time 0.02421/0.406, allocations: 14.11 MB / 472.1 MB, free: 4.207 MB / 382.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/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