Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 114.5 kB / 17.28 MB, free: 6.215 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.001288/0.001289, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.769/1.769, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001303/0.001303, allocations: 48.3 kB / 280.1 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1684/0.1697, allocations: 46.63 MB / 326.8 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00591/0.1757, allocations: 2.928 MB / 329.7 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.1774, allocations: 0.7527 MB / 330.5 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.1776, allocations: 4 kB / 330.5 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002461/0.1779, allocations: 43.7 kB / 330.5 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002081/0.1781, allocations: 83.3 kB / 330.6 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003771/0.1785, allocations: 95.86 kB / 330.7 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004952/0.179, allocations: 402.3 kB / 331.1 MB, free: 488 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003534/0.1794, allocations: 135.2 kB / 331.2 MB, free: 356 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.1796, allocations: 147.5 kB / 331.3 MB, free: 208 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.1799, allocations: 163.3 kB / 331.5 MB, free: 44 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.456e-05/0.18, allocations: 40 kB / 331.5 MB, free: 4 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.103e-05/0.1801, allocations: 36.05 kB / 331.6 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.944e-05/0.1802, allocations: 83.64 kB / 331.7 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001958/0.1804, allocations: 175.1 kB / 331.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004919/0.1809, allocations: 430.8 kB / 332.3 MB, free: 15.29 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.138e-06/0.1809, allocations: 0 / 332.3 MB, free: 15.29 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.1809, allocations: 0 / 332.3 MB, free: 15.29 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.1809, allocations: 0 / 332.3 MB, free: 15.29 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001342/0.1823, allocations: 0.6129 MB / 332.9 MB, free: 14.63 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.917e-05/0.1823, allocations: 12.03 kB / 332.9 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.1824, allocations: 36.55 kB / 332.9 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004678/0.1829, allocations: 291.5 kB / 333.2 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.183, allocations: 20.94 kB / 333.2 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.856e-05/0.183, allocations: 24.38 kB / 333.2 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000587/0.1836, allocations: 288.9 kB / 333.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.1836, allocations: 0 / 333.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.136e-05/0.1837, allocations: 12 kB / 333.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.1837, allocations: 8 kB / 333.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004129/0.1841, allocations: 206.1 kB / 333.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.1862, allocations: 1.152 MB / 334.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006672/0.1868, allocations: 226.5 kB / 335.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003588/0.1872, allocations: 140.8 kB / 335.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.1873, allocations: 8 kB / 335.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005433/0.1878, allocations: 166.7 kB / 335.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.302e-06/0.1878, allocations: 0 / 335.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001659/0.1895, allocations: 0.5073 MB / 335.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00015/0.1897, allocations: 136.5 kB / 336.1 MB, free: 11.2 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003338/0.19, allocations: 240.9 kB / 336.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.469e-05/0.1901, allocations: 37.73 kB / 336.3 MB, free: 10.91 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.1903, allocations: 168.4 kB / 336.5 MB, free: 10.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.766e-05/0.1904, allocations: 67 kB / 336.6 MB, free: 10.68 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.1905, allocations: 53.69 kB / 336.6 MB, free: 10.62 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.1907, allocations: 330.8 kB / 336.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.1909, allocations: 75.91 kB / 337 MB, free: 10.21 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002619/0.1912, allocations: 125.1 kB / 337.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004183/0.1916, allocations: 171.3 kB / 337.3 MB, free: 9.895 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.1917, allocations: 0 / 337.3 MB, free: 9.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005405/0.1922, allocations: 290.1 kB / 337.6 MB, free: 9.602 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.1923, allocations: 8 kB / 337.6 MB, free: 9.594 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.1923, allocations: 0 / 337.6 MB, free: 9.594 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004357/0.1927, allocations: 100.7 kB / 337.7 MB, free: 9.492 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.1929, allocations: 27.92 kB / 337.7 MB, free: 9.465 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002728/0.1956, allocations: 2.138 MB / 339.9 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.1958, allocations: 39.78 kB / 339.9 MB, free: 7.145 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.1959, allocations: 8.062 kB / 339.9 MB, free: 7.137 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002292/0.1961, allocations: 153.8 kB / 340.1 MB, free: 6.977 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.078e-05/0.1962, allocations: 27.66 kB / 340.1 MB, free: 6.949 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.036e-05/0.1962, allocations: 34.17 kB / 340.1 MB, free: 6.914 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.1962, allocations: 0 / 340.1 MB, free: 6.914 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1962, allocations: 4 kB / 340.1 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1963, allocations: 0 / 340.1 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.1974, allocations: 0.7843 MB / 340.9 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1974, allocations: 0 / 340.9 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.1975, allocations: 19.98 kB / 340.9 MB, free: 6.043 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002561/0.1978, allocations: 80.81 kB / 341 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/0.1978, allocations: 11.98 kB / 341 MB, free: 5.949 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002564/0.2004, allocations: 2.135 MB / 343.2 MB, free: 3.68 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.2004, allocations: 0 / 343.2 MB, free: 3.68 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007399/0.2012, allocations: 464.9 kB / 343.6 MB, free: 3.203 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.2013, allocations: 116.8 kB / 343.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.888e-05/0.2013, allocations: 8 kB / 343.7 MB, free: 3.062 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.2015, allocations: 12.05 kB / 343.7 MB, free: 3.051 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.2017, allocations: 39.95 kB / 343.8 MB, free: 3.012 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.2017, allocations: 7.984 kB / 343.8 MB, free: 3.004 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001758/0.2019, allocations: 176.5 kB / 344 MB, free: 2.832 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2019, allocations: 0 / 344 MB, free: 2.832 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005122/0.2024, allocations: 95.69 kB / 344.1 MB, free: 2.738 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00021/0.2026, allocations: 111.1 kB / 344.2 MB, free: 2.617 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008653/0.2035, allocations: 362.4 kB / 344.5 MB, free: 2.25 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.2035, allocations: 0 / 344.5 MB, free: 2.25 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004613/0.204, allocations: 266.4 kB / 344.8 MB, free: 1.977 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005122/0.2045, allocations: 64.62 kB / 344.8 MB, free: 1.914 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001514/0.206, allocations: 0.7118 MB / 345.6 MB, free: 1.172 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.2065, allocations: 0.7675 MB / 346.3 MB, free: 388 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.2066, allocations: 22.28 kB / 346.3 MB, free: 368 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.368e-05/0.2067, allocations: 19.44 kB / 346.4 MB, free: 348 kB / 286.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2067, allocations: 0 / 346.4 MB, free: 348 kB / 286.1 MB Notification: Performance of Templates: time 0.01051/0.2172, allocations: 4.724 MB / 351.1 MB, free: 11.62 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches