Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 105.2 kB / 17.73 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 187.1 kB / 18.66 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.677/1.677, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 47.94 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.121, allocations: 46.61 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005317/0.1264, allocations: 3.887 MB / 379 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.277/0.4034, allocations: 1.025 MB / 380.1 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000518/0.404, allocations: 9.75 kB / 380.1 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003192/0.4044, allocations: 87.66 kB / 380.2 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003896/0.4048, allocations: 168.1 kB / 380.3 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006233/0.4054, allocations: 208.2 kB / 380.5 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008718/0.4063, allocations: 0.764 MB / 381.3 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003527/0.4067, allocations: 175 kB / 381.5 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004387/0.4071, allocations: 296.9 kB / 381.7 MB, free: 9.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000493/0.4076, allocations: 333.1 kB / 382.1 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001632/0.4078, allocations: 77.75 kB / 382.1 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.408, allocations: 76.19 kB / 382.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.4081, allocations: 154.7 kB / 382.4 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004221/0.4086, allocations: 316.8 kB / 382.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001126/0.4097, allocations: 0.7969 MB / 383.5 MB, free: 9.117 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.4097, allocations: 1.125 kB / 383.5 MB, free: 9.117 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4097, allocations: 0 / 383.5 MB, free: 9.117 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.781e-05/0.4097, allocations: 0 / 383.5 MB, free: 9.117 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002687/0.4124, allocations: 0.9805 MB / 384.5 MB, free: 8.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.4125, allocations: 9.469 kB / 384.5 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.4126, allocations: 61.61 kB / 384.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005614/0.4132, allocations: 399.8 kB / 384.9 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.769e-05/0.4133, allocations: 33.41 kB / 385 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.172e-05/0.4134, allocations: 37.59 kB / 385 MB, free: 8.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.4148, allocations: 0.5608 MB / 385.5 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.4148, allocations: 2.062 kB / 385.6 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.947e-05/0.4149, allocations: 14 kB / 385.6 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.4149, allocations: 9.344 kB / 385.6 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001746/0.4167, allocations: 0.5787 MB / 386.2 MB, free: 7.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003547/0.4202, allocations: 2.005 MB / 388.2 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003899/0.4241, allocations: 0.8012 MB / 389 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.4252, allocations: 360.8 kB / 389.3 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.594e-05/0.4252, allocations: 7.953 kB / 389.3 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00116/0.4264, allocations: 403.3 kB / 389.7 MB, free: 5.812 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 3.386e-06/0.4264, allocations: 4 kB / 389.7 MB, free: 5.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.009807/0.4362, allocations: 1.782 MB / 391.5 MB, free: 5.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.768e-05/0.4363, allocations: 86.58 kB / 391.6 MB, free: 5.242 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00059/0.4369, allocations: 386.6 kB / 392 MB, free: 5.047 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.784e-05/0.437, allocations: 32.36 kB / 392 MB, free: 5.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.4372, allocations: 230.4 kB / 392.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.4373, allocations: 131.3 kB / 392.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.4375, allocations: 68.72 kB / 392.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.4376, allocations: 354.1 kB / 392.8 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008998/0.4385, allocations: 271.5 kB / 393 MB, free: 4.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009232/0.4394, allocations: 309 kB / 393.3 MB, free: 4.152 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001713/0.4412, allocations: 0.5375 MB / 393.9 MB, free: 3.941 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4412, allocations: 0 / 393.9 MB, free: 3.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004776/0.446, allocations: 1.056 MB / 394.9 MB, free: 3.602 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.734e-05/0.446, allocations: 32.33 kB / 394.9 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.446, allocations: 1.375 kB / 395 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.4473, allocations: 401.5 kB / 395.3 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004296/0.4478, allocations: 84.56 kB / 395.4 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008284/0.456, allocations: 3.674 MB / 399.1 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008252/0.4569, allocations: 80.44 kB / 399.2 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.047e-05/0.457, allocations: 20.83 kB / 399.2 MB, free: 0.9453 MB / 318.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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.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.00033/0.4573, allocations: 172.6 kB / 399.4 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.978e-05/0.4574, allocations: 48.59 kB / 399.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.4575, allocations: 53.28 kB / 399.5 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.4575, allocations: 4.625 kB / 399.5 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.4576, allocations: 0 / 399.5 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.4576, allocations: 3.984 kB / 399.5 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006875/0.4583, allocations: 0.5982 MB / 400.1 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.4583, allocations: 0 / 400.1 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004476/0.4587, allocations: 74.44 kB / 400.1 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001144/0.4599, allocations: 400.9 kB / 400.5 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.322e-05/0.46, allocations: 10.8 kB / 400.5 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008946/0.4689, allocations: 3.652 MB / 404.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.469, allocations: 1.625 kB / 404.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004799/0.4738, allocations: 1.256 MB / 405.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003397/0.4741, allocations: 167.6 kB / 405.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.663e-05/0.4742, allocations: 15.62 kB / 405.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005594/0.4748, allocations: 59.08 kB / 405.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.475, allocations: 47.16 kB / 405.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-05/0.4751, allocations: 20.45 kB / 405.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004205/0.4755, allocations: 280 kB / 406 MB, free: 12.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4755, allocations: 0 / 406 MB, free: 12.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008207/0.4763, allocations: 169.8 kB / 406.2 MB, free: 12.09 MB / 334.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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.0002331/0.4766, allocations: 114.4 kB / 406.3 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002874/0.4794, allocations: 0.8779 MB / 407.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.4795, allocations: 0 / 407.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.481, allocations: 0.5347 MB / 407.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005196/0.4816, allocations: 83.8 kB / 407.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.4852, allocations: 1.148 MB / 409 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006882/0.4859, allocations: 0.8294 MB / 409.8 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002594/0.4862, allocations: 42.23 kB / 409.8 MB, free: 9.578 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.4863, allocations: 32.03 kB / 409.9 MB, free: 9.566 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4863, allocations: 0 / 409.9 MB, free: 9.566 MB / 334.1 MB Notification: Performance of Templates: time 0.02312/0.5094, allocations: 13.27 MB / 423.1 MB, free: 13.72 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches