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.001219/0.001219, allocations: 110.2 kB / 18.25 MB, free: 4.898 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: 195.3 kB / 19.18 MB, free: 3.977 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.507/1.507, allocations: 205.1 MB / 225.1 MB, free: 12.29 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.001465/0.001466, allocations: 48.31 kB / 281.3 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1174, allocations: 46.63 MB / 328 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005137/0.1226, allocations: 3.899 MB / 331.9 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.1245, allocations: 1.018 MB / 332.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002207/0.1247, allocations: 11.94 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002486/0.125, allocations: 87.08 kB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003266/0.1254, allocations: 170.5 kB / 333.1 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004917/0.1259, allocations: 207.6 kB / 333.3 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007857/0.1267, allocations: 0.7512 MB / 334.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003222/0.127, allocations: 165.2 kB / 334.2 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003679/0.1274, allocations: 303 kB / 334.5 MB, free: 13.83 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004236/0.1278, allocations: 334.7 kB / 334.9 MB, free: 13.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.1279, allocations: 76 kB / 334.9 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.1281, allocations: 76 kB / 335 MB, free: 13.35 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001564/0.1282, allocations: 151.5 kB / 335.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003374/0.1286, allocations: 314.6 kB / 335.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008311/0.1294, allocations: 0.7905 MB / 336.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.1295, allocations: 0 / 336.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1295, allocations: 0 / 336.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.1295, allocations: 0 / 336.3 MB, free: 12.1 MB / 286.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.002505/0.132, allocations: 0.9797 MB / 337.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.132, allocations: 8.031 kB / 337.3 MB, free: 11.06 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001241/0.1322, allocations: 60.28 kB / 337.3 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005047/0.1327, allocations: 394 kB / 337.7 MB, free: 10.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.817e-05/0.1327, allocations: 29.38 kB / 337.7 MB, free: 10.55 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.064e-05/0.1328, allocations: 40.12 kB / 337.8 MB, free: 10.51 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.1342, allocations: 0.5669 MB / 338.3 MB, free: 9.914 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.1342, allocations: 0 / 338.3 MB, free: 9.914 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.118e-05/0.1342, allocations: 12 kB / 338.3 MB, free: 9.902 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.902e-05/0.1343, allocations: 19.98 kB / 338.4 MB, free: 9.883 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001686/0.136, allocations: 0.5738 MB / 338.9 MB, free: 9.312 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003605/0.1396, allocations: 2.008 MB / 340.9 MB, free: 7.207 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003678/0.1433, allocations: 0.7993 MB / 341.7 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009528/0.1443, allocations: 361.3 kB / 342.1 MB, free: 6.043 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.987e-05/0.1443, allocations: 4 kB / 342.1 MB, free: 6.039 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001117/0.1454, allocations: 403.4 kB / 342.5 MB, free: 5.629 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 3.657e-06/0.1454, allocations: 4 kB / 342.5 MB, free: 5.625 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.009391/0.1548, allocations: 1.79 MB / 344.3 MB, free: 3.805 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.849e-05/0.155, allocations: 89.11 kB / 344.4 MB, free: 3.699 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004843/0.1554, allocations: 385.6 kB / 344.8 MB, free: 3.316 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.705e-05/0.1555, allocations: 37.7 kB / 344.8 MB, free: 3.273 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.1557, allocations: 220.6 kB / 345 MB, free: 3.051 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.1558, allocations: 130.1 kB / 345.1 MB, free: 2.922 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000164/0.156, allocations: 70.06 kB / 345.2 MB, free: 2.844 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1561, allocations: 350.8 kB / 345.5 MB, free: 2.492 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008371/0.157, allocations: 272.6 kB / 345.8 MB, free: 2.227 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008435/0.1578, allocations: 309.9 kB / 346.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00158/0.1594, allocations: 0.5484 MB / 346.7 MB, free: 1.352 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1594, allocations: 0 / 346.7 MB, free: 1.352 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004506/0.164, allocations: 1.056 MB / 347.7 MB, free: 288 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.092e-05/0.164, allocations: 37.69 kB / 347.8 MB, free: 244 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.164, allocations: 0 / 347.8 MB, free: 244 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/0.1653, allocations: 393.9 kB / 348.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004519/0.1658, allocations: 83.86 kB / 348.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008338/0.1741, allocations: 3.668 MB / 351.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006863/0.1748, allocations: 83.66 kB / 352 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.432e-05/0.1749, allocations: 16 kB / 352 MB, free: 11.86 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 (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.0002571/0.1751, allocations: 167.1 kB / 352.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.877e-05/0.1752, allocations: 51.38 kB / 352.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.1754, allocations: 56.45 kB / 352.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1754, allocations: 7.938 kB / 352.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1754, allocations: 4 kB / 352.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.423e-06/0.1754, allocations: 3.984 kB / 352.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006351/0.176, allocations: 0.5834 MB / 352.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.176, allocations: 3.938 kB / 352.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000431/0.1765, allocations: 75.88 kB / 352.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001102/0.1776, allocations: 392.5 kB / 353.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.223e-05/0.1776, allocations: 16 kB / 353.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007975/0.1856, allocations: 3.662 MB / 357 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1857, allocations: 0 / 357 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004449/0.1901, allocations: 1.262 MB / 358.3 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/0.1904, allocations: 176.5 kB / 358.4 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.053e-05/0.1905, allocations: 11.94 kB / 358.4 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005735/0.1911, allocations: 67.92 kB / 358.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/0.1913, allocations: 39.94 kB / 358.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.025e-05/0.1913, allocations: 15.98 kB / 358.6 MB, free: 5.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003289/0.1917, allocations: 275.2 kB / 358.8 MB, free: 4.777 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1917, allocations: 0 / 358.8 MB, free: 4.777 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006988/0.1924, allocations: 163.8 kB / 359 MB, free: 4.617 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,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.0002045/0.1926, allocations: 118.3 kB / 359.1 MB, free: 4.492 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002711/0.1953, allocations: 0.8918 MB / 360 MB, free: 3.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.1953, allocations: 0 / 360 MB, free: 3.574 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00147/0.1968, allocations: 0.5372 MB / 360.5 MB, free: 3.023 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005293/0.1973, allocations: 89.45 kB / 360.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003301/0.2007, allocations: 1.201 MB / 361.8 MB, free: 1.703 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004389/0.2011, allocations: 0.8239 MB / 362.6 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.2013, allocations: 31.44 kB / 362.7 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2013, allocations: 0 / 362.7 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of Templates: time 0.01289/0.2142, allocations: 9.33 MB / 372 MB, free: 7.484 MB / 318.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/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